Sometimes I have mafia open until after rollover. If I do then it will mess up my login script because it thinks that I still have a sphygmayomanometer from the mayo clinic in my inventory (or maybe on my person) even though it has melted. I don't know if this is a common problem to all melting equipment, or if the sphygmayomanometer is not listed as a melting item, but it would be nice if mafia realized, when resetting all the variables at rollover that this piece of equipment had melted and therefore is no longer in my inventory.
This is the script I am using..
item sphygmayo = $item[sphygmayomanometer];
boolean HaveEquipment(item itm) {
if ( itm.item_amount() > 0 || itm.have_equipped() )
return true;
return false;
}
if (!HaveEquipment(sphygmayo))
cli_execute("buy 1 " + sphygmayo.to_string());
This is the script I am using..
item sphygmayo = $item[sphygmayomanometer];
boolean HaveEquipment(item itm) {
if ( itm.item_amount() > 0 || itm.have_equipped() )
return true;
return false;
}
if (!HaveEquipment(sphygmayo))
cli_execute("buy 1 " + sphygmayo.to_string());