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
Hmm. Issues with this script
Author Message
sayter
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2013
Reputation: 0



Post: #4
RE: Hmm. Issues with this script
Yea, it's a rather long script. I'm using an older version of sphere, and a client to suit that version. Offhand I cannot recall, but it worked without a hitch a long while back. I did a change shortly before I got involved in other stuff in life and didn't have time to do this stuff anymore... and then poof, broken.

Not sure what I last changed, though I am not seeing significant errors firing on the console. None related to this , at least, beyond a few missing functions I haven't written yet which are called.

As for the physicaldamage tag... yea, they all do. I've tested unarmed, armed, and magic etc. It's melee/unarmed causing the issue for certain. My custom magic works wonderfully. Aggravating when you find a bug like this.

Code:
IF (<DAM>)//or is it an NPC attacking>?
    LOCAL.DAMAGE=<EVAL RAND(<DAM>)>
    LOCAL.WRESTLINGBONUS=<Eval <wrestling>/200>
    IF (<wrestling>>=100.0)
    LOCAL.wrestling += 10
    ENDIF
    ELSE //or are we fighting with wrestling?
    LOCAL.WRESTLINGBONUS=<Eval <wrestling>/200>
    IF (<wrestling>>=100.0)
    LOCAL.wrestling += 10
    ENDIF

That's the bit for NPCs attacking (wrestling/unarmed) so that isn't the issue. Additionally , this affects players as well as NPCs, but it isn't as noticable. When 14 ogres gang up on a 0 stat noob and dont hurt it enough to kill it, that is indicative of a problem for sure Smile
(This post was last modified: 09-20-2013 09:58 AM by sayter.)
09-20-2013 09:53 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Hmm. Issues with this script - sayter - 09-09-2013, 04:50 AM
RE: Hmm. Issues with this script - sayter - 09-20-2013 09:53 AM

Forum Jump:


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