Access for the memory the Summon Monster get - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Access for the memory the Summon Monster get (/Thread-Access-for-the-memory-the-Summon-Monster-get) |
Access for the memory the Summon Monster get - admin phoenix - 05-05-2012 05:20 PM is their a trick how to get access to the memory item the summoned monster got after you called a summon spell? I want to give this memory a new event. For example on=@timer link.tag0.summon_monster_number -=1 RETURN 1 I donĀ“t want so softcoded the summon function complete. Hope, someone can help me Thanks gr Phoenix RE: Access for the memory the Summon Monster get - admin phoenix - 05-05-2012 11:04 PM ok, found a solution using ON=@SpellCast IF (<serv.spell.<argn1>.flags>&SPELLFLAG_SUMMON) local.maxfollower=<eval <magery>/250> IF (<tag0.summon_monster_number > >= <dlocal.maxfollower>) smsg @0,3 YOu cannot summon any Monster now. RETURN 1 ELSE tag0.summon_monster_number += 1 ENDIF ENDIF every npc has an event for example e_npc also an summoned npc. there I can use on=@death IF (<flags>&statf_conjured) ref1=<findlayer(41).link> ref1.tag0.summon_monster_number -=1 ENDIF |