This:
while ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
completely locks up mafia and eats about 50% of my CPU. I have to kill mafia in task manager when this happens. It happens every single time without fail for me. I have the latest mafia and updated java this morning. It's not new to the latest builds though. I also got the same issue while running
while coffee pixie stick < 3; acquire coffee pixie stick
from a cli script. Because of this I'm guessing that it has to do with a while statement & the ticket counter in combination. The while at least begins to work as it sees that I have less than 3 of them and trades for the first one, then it locks up before ever getting the 2nd.
BTW this:
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
works just fine to pick up all 3 sticks.
while ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
completely locks up mafia and eats about 50% of my CPU. I have to kill mafia in task manager when this happens. It happens every single time without fail for me. I have the latest mafia and updated java this morning. It's not new to the latest builds though. I also got the same issue while running
while coffee pixie stick < 3; acquire coffee pixie stick
from a cli script. Because of this I'm guessing that it has to do with a while statement & the ticket counter in combination. The while at least begins to work as it sees that I have less than 3 of them and trades for the first one, then it locks up before ever getting the 2nd.
BTW this:
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
if ( item_amount( $item[coffee pixie stick] ) <3)
cli_execute("acquire coffee pixie stick");
works just fine to pick up all 3 sticks.