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
Script help
Author Message
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: Script help
Lots of things in that code do not make sense... even for v51a

@Damage is a trigger that gets fired when a item is damaged... in @Damage trigger, SRC is a reference to the source of the damage.

1. "IF X==0" is going to test that the X coordinate of the item taking damage is zero... that makes no sense.
2. "<SRC.npc> == 1 || <SRC.npc> == 2 ..." is not valid syntax unless it is in an IF condition, which it is not.
3. "SRC.SOUND" is pointless if the entity causing damage is not a player (items and npc's don't hear sounds)..
4. "<SRC.npc>==0" You cannot change the brain of a player, nor can you change the brain of a NPC to make it a player... makes no sense.
5. "SRC.str= (<SRC.str>-1)" if the source of the damage is an item, this doesn't make sense because items don't have strength.
6. "src.sleep" does not make sense if the source of the damage was an item.

Regardless of all that, none of this code will ever be executed by the server because of #1... since an item's X position can never be zero. That is maybe why the server does not complain about it
09-06-2013 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Script help - TigerBlitz - 09-06-2013, 05:21 AM
RE: Script help - darksun84 - 09-06-2013, 06:07 AM
RE: Script help - TigerBlitz - 09-06-2013, 06:19 AM
RE: Script help - RanXerox - 09-06-2013 06:46 AM
RE: Script help - TigerBlitz - 09-06-2013, 06:57 AM
RE: Script help - Mordaunt - 09-06-2013, 08:35 AM
RE: Script help - evening - 09-06-2013, 01:44 PM
RE: Script help - amonvangrell - 09-06-2013, 06:00 PM
RE: Script help - Rattlehead - 09-06-2013, 06:26 PM
RE: Script help - Adidas-=420=- - 09-23-2013, 02:55 AM
RE: Script help - jdchixin - 10-08-2013, 12:57 PM

Forum Jump:


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