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
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #5
RE: NPC buy limit
(11-28-2013 04:31 PM)Khaos Wrote:  If argn1 > <VendorMaxSell> which you check for.. why are you testing if they are equal?
If <ARGN1> is > then <LOCAL.MaxAmount> this mean that the player is trying to buy more that the npc can sell.

The script have 3 situations (Consider "SERV.VendorMaxSell = 50", for example):
1. The player try to buy more than 50 items when the NPC is "restocked":
Code:
Sorry <NAME>, I don't want to buy all these items. Give me <SERV.VendorMaxSell> and we both will be satisfied!
2. The player try to buy more items then the npc can sell for him:
Code:
Sorry <NAME>, my stock of items is almost full and I can only carry with me more <dLOCAL.MaxAmount> items.
3. The npc can't sell more anything:
Code:
Sorry <NAME>, my stock of items is full and I can't take more anything with me.

The script simulates that the Vendor is heavy and can't hold more anything, so the tag relies on the sale of any item because this was the prupose of this script.

Tongue
(This post was last modified: 11-29-2013 03:01 AM by Staff_Stanic.)
11-29-2013 03:01 AM
Visit this user's website 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)