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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing Summoned NPC
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Removing Summoned NPC
I'm having trouble figuring this out. I have everything else working fine but I just cant seem to have the animal that is summoned be removed when the timer hits 0.


[FUNCTION frostelf_avatarofice]
IF ((<src.tag.frost_elf>)=0)
SRC.SYSMESSAGE You are not of that race
RETURN 1
ELSEIF (<SRC.FINDID.i_avatarofice_timer>==0)
src.newitem=i_avatarofice_timer
SRC.new.TIMER=1
src.act.equip
SRC.ACT.CONT=<SRC.UID>
serv.newnpc c_horse_tan
new.MakeMyPet
return 1
else
src.sysmessage You must gather your strength...
endif
endif

[function MakeMyPet]
serv.newitem=i_memory
new.color=memory_ipet
new.link=<src>
new.cont=<uid>


I've tried setting a timer on i_memory and using on=@timer to remove it but it gives me nothing so im sure I'm missing something here.
02-03-2015 06:41 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Removing Summoned NPC - Leonidas - 02-03-2015 06:41 PM
RE: Removing Summoned NPC - XuN - 02-03-2015, 11:38 PM
RE: Removing Summoned NPC - Leonidas - 02-04-2015, 09:06 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)