SphereCommunity
Shop Sell Function problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Shop Sell Function problem (/Thread-Shop-Sell-Function-problem)



Shop Sell Function problem - Rizz - 04-11-2015 02:32 AM

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?


RE: Shop Sell Function problem - XuN - 04-11-2015 04:44 PM

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?


RE: Shop Sell Function problem - Rizz - 04-11-2015 08:07 PM

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"


RE: Shop Sell Function problem - XuN - 04-11-2015 08:39 PM

What client version and build are you using? It may be caused because of updated packets too not being updated in that script.


RE: Shop Sell Function problem - Rizz - 04-11-2015 10:45 PM

My sphere build is actually #2056 (I tried with #2252 and i got the same problem) and my client is 7.18.