The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regen Rings
Author Message
ISOcol
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2022
Reputation: 0



Post: #1
Regen Rings
// 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
08-28-2022 04:06 PM
Find all posts by this user Like Post Quote this message in a reply
Aris
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2022
Reputation: 0



Post: #2
RE: Regen Rings
Thanks
10-14-2022 04:34 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)