Jump to content

Issue removing an item from trade


Recommended Posts

Posted

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);
}
  

 

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...