Jump to content

Issue removing an item from trade


Alakazizam

Recommended Posts

I'm working on a part of a muling script that's giving me issues. Basically, the bot offers its cash stack, the mule calculates how much the bot needs to get to a certain point and offers that up, then the bot is supposed to remove it's cash stack from trade but I'm getting hung up on this step. Any help would be appreciated.

 

I am receiving the log message but it hangs up right there and keeps looping "Trying to remove gp" in the log

Am I using removeAll() incorrectly?

 

the Coins variable is just a String set to "Coins"

 

if (getTrade().getTheirOffers().contains(Coins) && getTrade().getOurOffers().contains(Coins)) {
                    log("Trying to remove gp");
                    getTrade().removeAll(Coins);
}
  

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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