Jump to content

Store#sell() hanging when selling items x1


Recommended Posts

Posted (edited)

In my script I sell a variety of items to a store, sometimes its 5 exactly, but if not then the script will sell until store stock is 5. 

 

It does fine usually until it hits a random bump in the road. It seems that sometimes (usually when having to sell x4 items) it'll hang after selling 2-3 and just sit there. I don't think there is anything crazy about the code, but if anyone has suggestions, please lmk. I need this help 

 

http://i.imgur.com/w4hHj9c.png

 

Edit: Image link since embed didn't work.

 

w4hHj9c.png

w4hHj9c.png

Edited by Polymorphism
Image embedding isn't working???
Posted
1 hour ago, Tom said:

Any errors in the log?

If it stops selling items, this snippet isn't going to give enough information to dissect the issue. I can't see anything wrong with the logic at first glance.

Thats the thing, no errors, no visible issues in the code. It just stops in the middle of the selling process. Which should be on the api side since store.sell("item", 4) is whats hanging.

Posted
22 minutes ago, Polymorphism said:

Thats the thing, no errors, no visible issues in the code. It just stops in the middle of the selling process. Which should be on the api side since store.sell("item", 4) is whats hanging.

You need to do some debugging to see at which point it is actually hanging. Print out some lines

Posted
26 minutes ago, Tom said:

You need to do some debugging to see at which point it is actually hanging. Print out some lines

Im thinking its the api itself.

Got stuck buying item3 with 1 left to sell

http://i.imgur.com/eIXQ9mC.png

 

[INFO][Bot #1][03/17 12:33:22 PM]: Selling 5x item1
[INFO][Bot #1][03/17 12:33:23 PM]: Done sleeping..
[INFO][Bot #1][03/17 12:33:23 PM]: Out of contains
[INFO][Bot #1][03/17 12:33:23 PM]: Selling 3x item2
[INFO][Bot #1][03/17 12:33:26 PM]: Done sleeping..
[INFO][Bot #1][03/17 12:33:26 PM]: Out of contains
[INFO][Bot #1][03/17 12:33:26 PM]: Selling 3x item3

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...