// Discord collection
// EFFECT [type], [item_id], [speed], [loop], [explode], [colour(hue)], [rendermode]
// (0 3) type (0 Standard flying object, The object will follow its target until it hits, and then explode if that flag is set)
// (1 Lightning effect , This is the only way to achieve the lightning effect in-game)
// (2 Ground-based effect , This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.
// (3 Character-based effect , This effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.)
//**************************************************************************************************************
//**Scripted By: Blizzard (
http://www.marchadium.com)**//**For Anthony (big_boy_uk89)(bennett_3001@hotmail.com**
//**************************************************************************************************************
[ITEMDEF i_ring_mana_regen]
DEFNAME=i_ring_mana_regen
ID=i_ring_gold
TYPE=t_jewelry
NAME=Mana Regeneration Ring
ON=@CREATE
MOREM={1 5}
COLOR=06
ON=@CLICK
IF (<EVAL <MOREM>>==1)
MESSAGE=a +1 <NAME>
ELSEIF (<EVAL <MOREM>>==2)
MESSAGE=a +2 <NAME>
ELSEIF (<EVAL <MOREM>>==3)
MESSAGE=a +3 <NAME>
ELSEIF (<EVAL <MOREM>>==4)
MESSAGE=a +4 <NAME>
ELSEIF (<EVAL <MOREM>>==5)
MESSAGE=a +5 <NAME>
ENDIF
RETURN 1
ON=@EQUIP
SRC.MESSAGE=Your ring gives mana.
TIMER=3
ON=@UNEQUIP
TIMER=-1
ON=@TIMER
IF (<TOPOBJ.MANA> < <TOPOBJ.INT>)
TOPOBJ.MANA=<TOPOBJ.MANA> +<EVAL <MOREM>>
TOPOBJ.SOUND=0f9
TOPOBJ.MESSAGE @72 +5 mp
ENDIF
TIMER=3
RETURN 1
[ITEMDEF i_ring_hits_regen]
DEFNAME=i_ring_hits_regen
ID=i_ring_gold
NAME=Hitpoints Regeneration Ring
TYPE=t_jewelry
ON=@CREATE
MOREM={1 5}
COLOR=025
ON=@CLICK
IF (<EVAL <MOREM>>==1)
MESSAGE=a +1 <NAME>
ELSEIF (<EVAL <MOREM>>==2)
MESSAGE=a +2 <NAME>
ELSEIF (<EVAL <MOREM>>==3)
MESSAGE=a +3 <NAME>
ELSEIF (<EVAL <MOREM>>==4)
MESSAGE=a +4 <NAME>
ELSEIF (<EVAL <MOREM>>==5)
MESSAGE=a +5 <NAME>
ENDIF
RETURN 1
ON=@EQUIP
SRC.MESSAGE=Your ring heals.
TIMER=3
ON=@UNEQUIP
TIMER=-1
ON=@TIMER
IF (<TOPOBJ.HITPOINTS> < <TOPOBJ.MAXHITS>)
TOPOBJ.HITPOINTS=<TOPOBJ.HITPOINTS> +<EVAL <MOREM>>
// TOPOBJ.SOUND=SND_SPELL_HEAL
TOPOBJ.effect 3,i_fx_sparkle_2,1,11,0,020
TOPOBJ.MESSAGE @72 +5 hp
ENDIF
TIMER=3
RETURN 1