Winterbay
Active member
I'm currently trying to use the following as a logout script:
Molman is my farming multi and Winterbay is my main account. I start the day by logging in to Winterbay and play those turns and then to Molman to automate some farming. With this in mind I thought that I should get the script to login Molman if Winterbay was logged in and closet any meat over 100k for Molman when that is logged out (to stop me from accidentally buying something I do not want to buy).
The problem is that when mafia logs Molman in it is with the current state of Winterbay and with no items at all. Is there a way to avoid this?
PHP:
# Logout script for Molman and Winterbay
if(my_name() == "molman") {
int closet_meat = my_meat() - 100000;
if(closet_meat > 0) {
put_closet(closet_meat);
}
else
{
closet_meat = 0;
}
print("Closeted " + to_string(closet_meat) + " meat. Quitting");
}
else if(my_name() == "winterbay") {
print("Changing account to Molman");
cli_execute("login molman");
}
Molman is my farming multi and Winterbay is my main account. I start the day by logging in to Winterbay and play those turns and then to Molman to automate some farming. With this in mind I thought that I should get the script to login Molman if Winterbay was logged in and closet any meat over 100k for Molman when that is logged out (to stop me from accidentally buying something I do not want to buy).
The problem is that when mafia logs Molman in it is with the current state of Winterbay and with no items at all. Is there a way to avoid this?