Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access for the memory the Summon Monster get
Author Message
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #1
Access for the memory the Summon Monster get
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
05-05-2012 05:20 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #2
RE: Access for the memory the Summon Monster get
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
(This post was last modified: 05-05-2012 11:07 PM by admin phoenix.)
05-05-2012 11:04 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)