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
Shop Sell Function problem
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
Shop Sell Function problem
I'm using the shop sell function made by skull (you can find in the download section).
It works great until I try to sell more than one type of item in my bag.

For example if i store only iron ingot (can be 1 or more) and try to sell everything it works perfecly.
But if i store ingot (or other different items) unpiled like this:

[Image: sell10.png]

the client stuck/freezes and i have to close the client

where is the problem?
04-11-2015 02:32 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Shop Sell Function problem
It may be caused (very sure of it) because of sending 2 instances of the same id.

BTW: The point of using this script is to modify the cost of items 'in the fly' with a different prize per player/event/etc, right?
04-11-2015 04:44 PM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: Shop Sell Function problem
Yes, that is the point: set the price i want.
It happens anyway if i have in tha backpack, for example, a i_axe and a i_dagger.
To work you need to have only one sellable item in your backpack.

In my opinion will be better re-add "sellvalue" and "buyvalue"
04-11-2015 08:07 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: Shop Sell Function problem
What client version and build are you using? It may be caused because of updated packets too not being updated in that script.
04-11-2015 08:39 PM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #5
RE: Shop Sell Function problem
My sphere build is actually #2056 (I tried with #2252 and i got the same problem) and my client is 7.18.
04-11-2015 10:45 PM
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)