dterphraud
New member
A few years ago I wrote my first and only cli script and recently I wrote my first Ash script (or should I say took some snipets mostly from Bale - thanks). I had to break out this part of the script and run it separately because it usually "times out" leaving adventures left to play. Not a big problem, I just restart the script, but, I would like it to be more reliable and play all the available adventures. Then, I can reconnect it with my login and logout scripts.
Here is the code:
adventure(my_adventures(), $location[Giant's Castle]);
batch_open(); // This tells mafia that there will be a lot of autoselling, malling or other batch activity, //so it should save them up.
int saleprice = 0;
foreach it in $items[heavy D, Original G, disturbing fanfic, furry fur, wolf mask, awful poetry journal, thin black candle, chaos butterfly, plot hole, probability potion, procrastination potion, angry farmer candy, giant needle, Mick's IcyVapoHotness Rub, rave whistle]
{
autosell(item_amount(it), it);
saleprice = item_amount(it) * autosell_price(it) + saleprice;
}
batch_close(); // Now it executes all recorded batch ativitites in groups of 11 at a time.
print("autosold trash for "+ saleprice +" meat.", "blue");
use(item_amount($item[Warm Subject gift certificate]), $item[Warm Subject gift certificate]);
I would enjoy your comments and suggestions.
Here is the code:
adventure(my_adventures(), $location[Giant's Castle]);
batch_open(); // This tells mafia that there will be a lot of autoselling, malling or other batch activity, //so it should save them up.
int saleprice = 0;
foreach it in $items[heavy D, Original G, disturbing fanfic, furry fur, wolf mask, awful poetry journal, thin black candle, chaos butterfly, plot hole, probability potion, procrastination potion, angry farmer candy, giant needle, Mick's IcyVapoHotness Rub, rave whistle]
{
autosell(item_amount(it), it);
saleprice = item_amount(it) * autosell_price(it) + saleprice;
}
batch_close(); // Now it executes all recorded batch ativitites in groups of 11 at a time.
print("autosold trash for "+ saleprice +" meat.", "blue");
use(item_amount($item[Warm Subject gift certificate]), $item[Warm Subject gift certificate]);
I would enjoy your comments and suggestions.