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-nmm6 (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-nmm6 (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-nmm6 (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
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)