TamGarTrinKi
New member
Making some adjustments for "the feast" (and in future "el dia...")
This is the straight out farming script. But it is having issues.
Any time it fights a boris monster, it does successfully kill it with the alternative method (this being weapon of the pastalord) but then it gets caught in the while loop (highlighted in red) and never gets out. (I did some printing to the graphical cli to test this, it is getting stuck in there) I can't see why, it appears to be the same loop for the regular giant adventures (green).
This is the straight out farming script. But it is having issues.
Any time it fights a boris monster, it does successfully kill it with the alternative method (this being weapon of the pastalord) but then it gets caught in the while loop (highlighted in red) and never gets out. (I did some printing to the graphical cli to test this, it is getting stuck in there) I can't see why, it appears to be the same loop for the regular giant adventures (green).
Code:
void MMJTop()
{
if(item_amount($item[magical mystery juice])<3)
{
buy(20,$item[magical mystery juice]);
}
use(3,$item[magical mystery juice]);
}
void main()
{
string CastlePage;
int startAdventures = my_adventures();
boolean stolen = false;
boolean goth = false;
boolean holiday = false;
int startMeat;
while(my_adventures() > 0)
{
print("Adventure " + (startAdventures-my_adventures()+1) + " of " + startAdventures + " adventures.", "blue");
CastlePage = visit_url("adventure.php?snarfblat=82");
if(contains_text(CastlePage, "You're fighting"))
{
stolen = false;
goth = false;
holiday = false;
int round = 1;
if(contains_text(CastlePage, "Goth Giant"))
{
goth = true;
}
if((contains_text(CastlePage, "Candied Yam Golem"))||
(contains_text(CastlePage, "Malevolent Tofurkey"))||
(contains_text(CastlePage, "Possessed Can of Cranberry Sauce"))||
(contains_text(CastlePage, "Stuffing Golem"))||
(contains_text(CastlePage, "El Novio"))||
(contains_text(CastlePage, "El Padre"))||
(contains_text(CastlePage, "La Novia"))||
(contains_text(CastlePage, "La Persona")))
{
holiday = true;
}
if(!holiday)
{
startMeat = my_meat();
stolen = false;
[COLOR="Green"]while(!contains_text(CastlePage,"You win the fight"))
{[/COLOR]
if(round == 1)
{
if(goth)
{
if(have_effect($effect[On the Trail])==0)
{
CastlePage = use_skill(1,$skill[olfaction]);
}
else
{
CastlePage = throw_item($item[spices]);
}
}
else
{
CastlePage = throw_item($item[spices]);
}
if(my_meat()>startMeat)
{
stolen = true;
}
}
else if(!stolen)
{
CastlePage = throw_item($item[spices]);
if(my_meat()>startMeat)
{
stolen = true;
}
}
else
{
CastlePage = attack();
}
round = round + 1;
[COLOR="Green"]}[/COLOR]
}
else
{
[COLOR="Red"]while(!contains_text(CastlePage,"You win the fight"))
{
CastlePage = use_skill(1,$skill[Weapon of the]);
}[/COLOR]
}
}
else if(contains_text(CastlePage,"choice.php"))
{
int numStart = index_of(CastlePage,"whichchoice value=")+18;
int numEnd = index_of(CastlePage,"><input",numStart);
string adventureNum = substring(CastlePage,numStart,numEnd);
CastlePage = visit_url("choice.php?pwd&whichchoice=" + adventureNum + "&option=3");
}
if(my_mp()<200)
{
MMJTop();
}
}
outfit("up to");
}