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
Spell Summon Rune
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
Spell Summon Rune
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.
02-21-2013 04:22 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Spell Summon Rune
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
02-21-2013 04:27 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: Spell Summon Rune
ON=@DESTROY
IF (<link.isplayer>) && (<TOPOBJ.baseid> == c_daemon_summ)
link.curfollower -= 1
ENDIF


Works great! Thx!
02-21-2013 05:25 AM
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)