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
ON=@Destroy for Chars Buggy?
Author Message
admin phoenix
Master
**

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



Post: #1
ON=@Destroy for Chars Buggy?
Hi Folks,

haven´t the script here yet but the code is very simpel. I use it for my summon npcs and there are two problem. When I set the uid to the ref1 object it works but the trigger fires twice and in the second round I don´t have a uid so the console set me an error that it can´t find the ref1.tag0.summon.
I put this code to my e_allnpc event so that every npc got this event.


Code:
ON=@Destroy
IF (<flags>&statf_conjured)
      ref1=<findlayer(41).link>
      ref1.tag0.summon -=1
      ref1.smsg You summon creature has gone.
ENDIF

The fix around is

Code:
ON=@Destroy
IF (<flags>&statf_conjured)
  IF (<dvar0.summon_bug> == 1)
      local.uid=<findlayer(41).link>
      ref1=<local.uid>
      ref1.tag0.summon -=1
      ref1.smsg You summon creature has gone.
      var0.summon_bug=
   ELSE
      var0.summon_bug=1
ENDIF
ENDIF

Anyone can confirm this one?

gr

Phoenix

[Edit] I fixed it with another workaround with removing the memory item from the npc. This works now but it is also a bug.
(This post was last modified: 09-07-2012 12:03 AM by admin phoenix.)
08-24-2012 05:08 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
ON=@Destroy for Chars Buggy? - admin phoenix - 08-24-2012 05:08 PM
RE: ON=@Destroy for Chars Buggy? - Extreme - 08-24-2012, 10:07 PM
RE: ON=@Destroy for Chars Buggy? - Ben - 09-11-2012, 01:07 PM
RE: ON=@Destroy for Chars Buggy? - Ben - 09-16-2012, 12:29 AM
RE: ON=@Destroy for Chars Buggy? - Ben - 09-17-2012, 02:06 AM

Forum Jump:


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