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
Nasty Bug Fix I just read.
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #1
Nasty Bug Fix I just read.
Maxcomplexity Player Damage Bug

Okay, this is nasty and I already forsee the issues with this. Til this is fixed in the core, please use this code I am about to give. It seems like the crafting of several items to fill pack and those on ground reaching maxcomplexity limits is causing equips of the item and setting the amounts to increase. With this increase, it is multiplying the damage according to this post by what seems to be the <amount>. Anyone with a brain player wise is going to craft 1,000 or more of the same item to get their damage to do (<damage>*<amount>). So instead of fixing the damage code, we are going to stop this in their first hit sequence.

I can think of several places to check for this. It should be checked in your crafting though, but I am not posting code for that since a lot of people use varying crafting systems. That would be your responsibility to run checks there.

Code:
on=@HitTry
if (<src.findlayer.layer_hand1.uid.amount> > 1)
src.findlayer.layer_hand1.uid.amount=1
endif
02-18-2016 07:20 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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