| Rayvolution  Journeyman
 
  
   Posts: 135
 Likes Given: 0
 Likes Received: 2 in 2 posts
 Joined: Jul 2012
 Reputation: 1
 
 Aetharia
 
  
 | 
			| RE: Totally stumped on the "New" spells. 
 
				I eventually ended up writing my own script (before I realized you gave me a darned good example to go by! lol) It looks like we used similar methods, but yours looks a lot more complicated (in a good way) than mine. 
My script is actually very basic, but the potion effects I'm trying to emulate are pretty straightforward, I mainly was just looking for direct control over the potions and *not* have them tied to the normal spells at all.
 
I'm actually completely rewriting the entire alchemy skill tree, once I'm done i'll probably share it with the community    
But here's a small sample of a few of the potions; more for anyone else who needs/wants help. Disregard the Alchy/Mats requirements, I haven't balanced those yet.
 
Code:
 [ITEMDEF i_potion_minor_agility]ID=i_bottle_small_full
 NAME=Minor Agility Potion
 TYPE=T_POTION
 TDATA1=i_bottle_small_empty
 
 RESOURCES=i_reag_blood_moss, i_bottle_small_water
 SKILLMAKE=ALCHEMY 15.1
 
 ON=@Create
 COLOR=046
 MORE1=s_Agility_potion
 MORE2=10
 
 CATEGORY=Infinity Items
 SUBSECTION=Potions
 DESCRIPTION=Minor Agility Potion
 
 [ITEMDEF i_potion_moderate_agility]
 ID=i_bottle_medium_full
 NAME=Moderate Agility Potion
 TYPE=T_POTION
 TDATA1=i_bottle_medium_empty
 
 RESOURCES=i_reag_blood_moss, i_bottle_medium_water
 SKILLMAKE=ALCHEMY 15.1
 
 ON=@Create
 COLOR=046
 MORE1=s_Agility_potion
 MORE2=15
 
 CATEGORY=Infinity Items
 SUBSECTION=Potions
 DESCRIPTION=Moderate Agility Potion
 
 [ITEMDEF i__potion_major_agility]
 ID=i_bottle_large_full
 TYPE=T_POTION
 NAME=Major Agility Potion
 TDATA1=i_bottle_large_empty
 
 RESOURCES=i_reag_blood_moss 3, i_bottle_large_water
 SKILLMAKE=ALCHEMY 35.1
 
 ON=@Create
 COLOR=046
 MORE1=s_Agility_potion
 MORE2=20
 
 CATEGORY=Infinity Items
 SUBSECTION=Potions
 DESCRIPTION=Major Agility Potion
 
 [Spell 90]
 DEFNAME=s_Agility_Potion
 NAME=Agility
 FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM| SPELLFLAG_HARM | SPELLFLAG_FX_TARG |
 
 SPELLFLAG_PLAYERONLY
 RUNE_ITEM=i_RUNE_ALCHEM_3
 DURATION=2*60.0,4*60.0
 ON=@Effect
 IF (<SRC.RESTEST i_mem_agility_potion>)
 SRC.CONSUME i_mem_agility_potion
 ENDIF
 SERV.NEWITEM i_mem_agility_potion
 NEW.MORE2=<ACT.MORE2>
 SRC.EQUIP <NEW>
 NEW.TIMER=300
 
 [ITEMDEF i_mem_agility_potion]
 ID=i_memory
 NAME=agility
 TYPE=t_eq_script
 ON=@Equip
 SRC.SYSMESSAGE You feel very quick on your feet...
 SOUND 503
 EFFECT 3,i_fx_heal_effect,1,17,0
 SRC.DEX=<SRC.DEX> +<MORE2>
 ON=@UnEquip
 SRC.SYSMESSAGE The effects seem to dissipate.
 SOUND 503
 EFFECT 3,i_fx_heal_effect,1,17,0
 SRC.DEX=<SRC.DEX> +-<MORE2>
 ON=@Timer
 REMOVE
 RETURN 1
 
Code:
 [ITEMDEF i_potion_hallucination]ID=i_bottle_small_full
 NAME=Hallucination Potion
 TYPE=t_potion
 TDATA1=i_bottle_small_empty
 RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_reag_mandrake_root, i_reag_blackmoor,
 
 i_bottle_small_water
 SKILLMAKE=ALCHEMY 15.1
 
 ON=@Create
 COLOR=07f1
 MORE1=s_Hallucination_Potion
 MORE2=100.0
 
 CATEGORY=Infinity Items
 SUBSECTION=Potions
 DESCRIPTION=Hallucination Potion
 
 [Spell 89]
 DEFNAME=s_Hallucination_Potion
 NAME=Hallucination
 FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM| SPELLFLAG_HARM | SPELLFLAG_FX_TARG |
 
 SPELLFLAG_PLAYERONLY
 RUNE_ITEM=i_RUNE_ALCHEM_3
 DURATION=2*60.0,4*60.0
 ON=@Effect
 IF (<SRC.RESTEST i_mem_hallucination_potion>)
 SRC.CONSUME i_mem_hallucination_potion
 ENDIF
 SERV.NEWITEM i_mem_hallucination_potion
 SRC.EQUIP <NEW>
 NEW.TIMER=60
 
 [ITEMDEF i_mem_hallucination_potion]
 ID=i_memory
 NAME=hallucination
 TYPE=t_eq_script
 ON=@Equip
 SRC.SYSMESSAGE You feel very strange...
 SOUND snd_Z_END_MYSTERY1
 EFFECT 3,i_fx_bless_effect,1,17,0
 SRC.FLAGS -statf_hallucinating
 ON=@UnEquip
 SRC.SYSMESSAGE The effects seem to dissipate.
 SOUND snd_Z_END_MYSTERY1
 EFFECT 3,i_fx_bless_effect,1,17,0
 SRC.FLAGS +statf_hallucinating
 SRC.FIX
 ON=@Timer
 REMOVE
 RETURN 1
 
Code:
 [ITEMDEF i_potion_resurrection]ID=i_bottle_medium_full
 NAME=Resurrection
 TYPE=T_normal
 TDATA1=i_bottle_medium_empty
 RESOURCES=i_reag_blood_vial 25, i_bottle_medium_water
 SKILLMAKE=ALCHEMY 95.0
 
 ON=@Create
 COLOR=079a
 
 ON=@DCLICK
 Target Who would you like to revive?
 Return 1
 
 On=@targon_item
 SRC.MESSAGE That is not a character!
 RETURN 1
 
 On=@targon_ground
 SRC.MESSAGE That is not a character!
 RETURN 1
 
 On=@targon_char
 IF (<SRC.TARG.UID>==<SRC.UID>)
 SRC.MESSAGE You can't use that on yourself!
 ELSE
 IF <SRC.TARG.DISTANCE>>1
 SRC.MESSAGE You are too far away!
 ELSE
 SRC.TARG.SPELLEFFECT s_resurrection 100.0
 SRC.EMOTE sprinkle the resurrection potion on <SRC.TARG.NAME>
 SRC.NEWITEM i_bottle_empty
 SRC.ACT.BOUNCE
 REMOVE
 RETURN 1
 ENDIF
 
 CATEGORY=Infinity Items
 SUBSECTION=Potions
 DESCRIPTION=Resurrection Potion
 ![[Image: 4_Logo.png]](http://aetharia.com/public/style_images/4_Logo.png) 
An MMORPG based on the Ultima Online engine. 
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more. 
http://aetharia.com  - Home of Ambition!  |  | 
	| 07-21-2012 03:15 PM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 |