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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RES EVENT
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: RES EVENT
And you are mixing (default) with (src) in the function so if you type .xres ingame, the lines with SRC will be executed on you, as you are the source who is calling the function, instead of the player.

IF ((<SRC.BODY>==c_ghost_man) ||(<SRC.BODY>==c_ghost_woman)) -> IF (<FLAGS>&STATF_DEAD) // that will check for death status instead for an specific body values, so it will work for elfs and gargoyles too and with less checks.
SRC.NEWITEM -> SERV.NEWITEM
SRC.ACT.EQUIP -> EQUIP=<NEW>


ON=@Timer triggers doesn't have SRC, as the src would be the server itself calling the timer to expire out, if you want to refer to the player holding it you should use CONT and change a few SRC you have there.

Also, and very important, you must use REMOVE on the item after resurrecting the player or you will have a problem with tons of items on each player.
01-23-2014 06:08 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RES EVENT - dabritmusic - 01-23-2014, 09:56 AM
RE: RES EVENT - darksun84 - 01-23-2014, 10:06 AM
RE: RES EVENT - XuN - 01-23-2014 06:08 PM
RE: RES EVENT - Extreme - 01-23-2014, 10:23 PM

Forum Jump:


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