SphereCommunity
Spell Summon Rune - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Spell Summon Rune (/Thread-Spell-Summon-Rune)



Spell Summon Rune - Rizz - 02-21-2013 04:22 AM

PHP Code:
[ITEMDEF 020a7]
//Summon Creature
DEFNAME=i_rune_summon_creature
TYPE
=T_SPELLICON
CATEGORY
=Spell Icons
SUBSECTION
=Fifth Circle
NAME
=Summon Creature

ON
=@TIMER
serv
.b dfgf <TOPOBJ.baseid>
IF (<
link.isplayer>) && (<TOPOBJ.baseid> == c_daemon_summ)
    
link.curfollower -= 1
ENDIF

return 


If i place the rune on the ground, this works without any problem.
If i summon a daemon then .xedit and set the timer to 1... this does not work.


RE: Spell Summon Rune - Shaklaban - 02-21-2013 04:27 AM

you can try to use @destroy trigger for summoned char or try to use @timer on typedef like:

[typedef T_SPELLICON]
on=@timer
if <baseid> = i_rune_summon_creature
...
endif


RE: Spell Summon Rune - Rizz - 02-21-2013 05:25 AM

ON=@DESTROY
IF (<link.isplayer>) && (<TOPOBJ.baseid> == c_daemon_summ)
link.curfollower -= 1
ENDIF


Works great! Thx!