Prusias-kol / pLooper

MIT License
3 stars 2 forks source link

Use clockwork maid at end of day 2 #11

Closed gszliu closed 2 weeks ago

gszliu commented 2 months ago

Hi there,

Absolutely loving ploop. Saves me a ton of time when I'm busy. The only manual command I'm doing is using a clockwork maid at the end of fullday. Any chance that's something worth incorporating into ploop? Otherwise, happy to just do it manually since it's easy.

Thanks, gregmasta

Prusias-kol commented 2 weeks ago

@gszliu Here's the code for clockwork maid

if (!page.contains_text("Clockwork Maid") && !page.contains_text("Meat Butler") && !page.contains_text("Meat Maid")) {
        if (available_amount($item[Clockwork Maid]) > 0 || buy(1, $item[Clockwork Maid], (8 * get_property("valueOfAdventure").to_int()) - profitOffset) == 1) {
            use(1, $item[Clockwork Maid]);
            print("Installed Clockwork Maid", "green");
        } else if (available_amount($item[Meat Butler]) > 0 || buy(1, $item[Meat Butler], (4 * get_property("valueOfAdventure").to_int()) - profitOffset) == 1) {
            use(1, $item[Meat Butler]);
            print("Installed Meat Butler", "lime");
        } else if (available_amount($item[Meat Maid]) > 0 || buy(1, $item[Meat Maid], (4 * get_property("valueOfAdventure").to_int()) - profitOffset) == 1) {
            use(1, $item[Meat Maid]);
            print("Installed Meat Maid", "lime");
        } else {
            print("Clockwork Maid, Meat Butler, and Meat Maid both outside price range.", "red");
        }
    } else {
        print("We already have a Maid or Butler installed", "red");
    }

Either it's mall weirdness (blocked from the 1/day 25k clockwork shop or mall is out of stock) or ur VOA is too low