Pazleysox
Member
I wrote a free fights script long ago, but it gets stuck in the red zeppelin. Can someone point me in the direction of what I might have missed/mixed up here?
Code:
string zep = visit_url("place.php?whichplace=zeppelin");
if (zep.contains_text("The Red Zeppelin"))
{
if ($item[Red Zeppelin ticket].to_int() < 1)
{
retrieve_item(1, $item[Red Zeppelin ticket]);
}
if (get_property("_glarkCableUses").to_int() < 5)
{
void get_it (item thing, int amount)
{
int have = item_amount(thing);
int need = max(0, amount-have);
if (need == 0)
{
return;
}
cli_execute("find "+amount+" "+thing);
}
get_it($item[glark cable], 5);
}
while (get_property("_glarkCableUses").to_int() < 5)
{
adv1($location[The Red Zeppelin], -1, "");
}
}
if (get_property("_lynyrdSnareUses").to_int() < 3)
{
void get_it (item thing, int amount)
{
int have = item_amount(thing);
int need = max(0, amount-have);
if (need == 0)
{
return;
}
cli_execute("find "+amount+" "+thing);
}
get_it($item[lynyrd snare], 3);
}
while (get_property("_lynyrdSnareUses").to_int() <3)
{
cli_execute("use lynyrd snare");
run_combat();
}