I just upgraded to 9.2, and my script is broken...
One of my multis is in a clan that has a TPS in the stash, with the policy of immediately putting it back in after using it. So I use this script to get it....
In mafia 8.7, if the TPS was not in the stash, the script said "transfer may have failed for item tiny plastic sword" and retried for 5 times. Now it doesn't work even if the TPS actually is in the stash, it keeps waiting and saying "request completed". Tips?
One of my multis is in a clan that has a TPS in the stash, with the policy of immediately putting it back in after using it. So I use this script to get it....
Code:
// Fetches the TPS from the clan stash.
void getTPS()
{
int iterations;
if (item_amount($item[tiny plastic sword]) == 0)
{
iterations = 0;
take_stash(1, $item[tiny plastic sword]);
while (item_amount($item[tiny plastic sword]) == 0)
{
cli_execute("wait 30");
take_stash(1, $item[tiny plastic sword]);
iterations = (iterations + 1);
if (iterations == 5)
{
break;
}
}
}
}
In mafia 8.7, if the TPS was not in the stash, the script said "transfer may have failed for item tiny plastic sword" and retried for 5 times. Now it doesn't work even if the TPS actually is in the stash, it keeps waiting and saying "request completed". Tips?