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:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC buy limit
Author Message
Khaos
Master
**

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



Post: #6
RE: NPC buy limit
Just test what I sent through. Trust me. It fixed it. Calling for the ddef was not even logical if your max limit was set by 100 in a local and serv was 5000.

The == line was also odd and unneeded. Several of us looked at the code and agreed something was off.

Your script is still missing the def for maxitems in the ddef.

I upgraded it even more on my end. I literally just about rewrote the entire thing, cut out that == check (which was a bad check) and added in checks for stolen items, new markup tags (custom mathematics to be a bit more accurate). removed nested IF's (which I showed above and is better to do in most cases).

Quote:@ItemSell
Description

This trigger fires when a character sells an item to a vendor. The trigger fires for each item that is sold in the transaction.

Has nothing to do with a vendor selling anything to a player. It works as the player is selling things to the vendor. Again... TRY my script. It will fix the issues which I laid out that you aren't understanding it seems.
(This post was last modified: 11-29-2013 08:04 AM by Khaos.)
11-29-2013 07:56 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC buy limit - Staff_Stanic - 11-28-2013, 01:27 AM
RE: NPC buy limit - amonvangrell - 11-28-2013, 05:22 AM
RE: NPC buy limit - XuN - 11-28-2013, 07:50 AM
RE: NPC buy limit - Khaos - 11-28-2013, 04:31 PM
RE: NPC buy limit - Staff_Stanic - 11-29-2013, 03:01 AM
RE: NPC buy limit - Khaos - 11-29-2013 07:56 AM
RE: NPC buy limit - Khaos - 11-30-2013, 12:26 PM
RE: NPC buy limit - amonvangrell - 01-19-2014, 10:23 AM
RE: NPC buy limit - kn4tseb - 09-19-2014, 04:27 AM
RE: NPC buy limit - Extreme - 09-19-2014, 06:34 AM
RE: NPC buy limit - kn4tseb - 09-19-2014, 08:19 AM
RE: NPC buy limit - Extreme - 09-19-2014, 08:38 AM
RE: NPC buy limit - kn4tseb - 09-19-2014, 08:41 AM
RE: NPC buy limit - chrono - 01-18-2022, 07:07 PM

Forum Jump:


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