FlashGordon
New member
Code:
void acquire(int n, item it){
int x = 0;
buy(n,it);
}
if (can_eat()){
acquire(1, $item[milk of magnesium]);
use(1,$item[milk of magnesium]);
}
if (can_drink()){
acquire(5, $item[salty dog]);
acquire(3, $item[bottle of rum]);
acquire(3, $item[bottle of whiskey]);
}
Here's part of my breakfast script that I use upon login, butchered from other scripts here & there. It buys & consumes a MoM and buys from Boozerbear and DocHolliday's. Problem is, if I were to log in again, it'll buy all that again. I don't want that. Therefore, I need a bit of help to tweak this. Maybe a price added to the drinks and/or something to say, if consumption limit reached, don't buy & consume. Is this possible?
I guess the price part would make it more of a mallbot, but really, I just plan to stock up on booze.