asturia
Minion
Is there a way I can simplify this script?:
Code:
void mayfly()
{
if ( get_property("mayfly_active") == "false")
{
if (equipped_item ($slot[acc1]) == $item[mayfly necklace])
{
cli_execute("remove mayfly bait necklace");
equip($slot[acc1],$item [natty blue ascot]);
}
if (equipped_item ($slot[acc2]) == $item[mayfly necklace])
{
cli_execute("remove mayfly bait necklace");
equip($slot[acc2],$item [natty blue ascot]);
}
if (equipped_item ($slot[acc3]) == $item[mayfly necklace])
{
cli_execute("remove mayfly bait necklace");
equip($slot[acc3],$item [natty blue ascot]);
}
}
}