ziz
Member
Raw code block for those without diff/patch utilities convenient:
Code:
// ID bang potions: always ID multiples, ID singles only if mafia's autoPotionID
if (my_level() > 5 && intheclear() && vprint("Checking for unidentified potions...",9)) {
int firstpotion = 0; int secondpotion = 0;
for i from 819 to 827
if (get_property("lastBangPotion"+i) == "" && item_amount(to_item(i)) > to_int(get_property("autoPotionID") == "false"))
{
vprint(to_string(to_item(i)) + " unidentified", 11);
if (firstpotion == 0)
{
vprint("planning to throw " + to_string(to_item(i)), 10);
firstpotion = i;
}
else if (secondpotion == 0)
{
vprint("planning to throw " + to_string(to_item(i)), 10);
secondpotion = i;
}
}
if (firstpotion != 0 && secondpotion != 0 && have_skill($skill[ambidextrous funkslinging])) {
vprint("throwing " + to_string(to_item(firstpotion)) + " and " + to_string(to_item(secondpotion)), 6);
page = act(throw_items(to_item(firstpotion), to_item(secondpotion)));
}
else if (firstpotion != 0) {
vprint("throwing " + to_string(to_item(firstpotion)), 6);
page = act(throw_item(to_item(firstpotion)));
}
}
// ID spheres transparent with mafia's autoSphereID