boolean GatherMeat(int MeatNeeded)
{
if(in_muscle_sign())
{
while(my_meat() < MeatNeeded && my_adventures() > 0)
{
adventure(1, $location[Outskirts of The Knob]);
}
}
else
{
while(my_meat() < MeatNeeded && my_adventures() > 0)
{
adventure(1, $location[Degrassi Knoll]);
}
}
if(my_meat() >= MeatNeeded)
{
return true;
}
else
{
return false;
}
}
void GetMeatCar()
{
if(item_amount($item[bitchin' meatcar]) > 0)
{
print("Whaddya doing, you've already got a meatcar!");
cli_execute("abort");
}
boolean conditionsmet;
conditionsmet = false;
if(in_muscle_sign())
{
if(my_meat() >= 108)
{
buy(1, $item[spring]);
buy(1, $item[sprocket]);
buy(1, $item[cog]);
buy(1, $item[empty meat tank]);
buy(1, $item[tires]);
}
else
{
while(my_meat() < 108 && my_adventures() > 0)
{
conditionsmet = GatherMeat(108);
}
if(conditionsmet == true)
{
buy(1, $item[spring]);
buy(1, $item[sprocket]);
buy(1, $item[cog]);
buy(1, $item[empty meat tank]);
buy(1, $item[tires]);
conditionsmet = false;
}
}
}
else
{
int ToolboxCount;
while(item_amount($item[spring]) == 0 || item_amount($item[sprocket]) == 0 || item_amount($item[cog]) == 0 || item_amount($item[empty meat tank]) == 0 || item_amount($item[tires]) == 0 && my_adventures() > 0)
{
adventure(1, $location[Degrassi Knoll]);
while(item_amount($item[Gnollish toolbox]) > 0)
{
use(1, $item[Gnollish toolbox]);
}
}
}
while(item_amount($item[worthless gewgaw]) + item_amount($item[worthless knick-knack]) + item_amount($item[worthless trinket]) < 1 && my_adventures() > 0)
{
if(my_meat() >= 30)
{
conditionsmet = true;
}
else
{
conditionsmet = GatherMeat(30);
}
if(item_amount($item[chewing gum on a string]) < 1 && my_meat() >= 30 && conditionsmet == true && my_adventures() > 0)
{
buy(1, $item[chewing gum on a string]);
adventure(1, $location[Unlucky Sewer] );
conditionsmet = false;
}
}
conditionsmet = false;
if(item_amount($item[worthless gewgaw]) + item_amount($item[worthless knick-knack]) + item_amount($item[worthless trinket]) > 0)
{
if(my_meat() >= 100)
{
conditionsmet = true;
}
else
{
conditionsmet = GatherMeat(100);
}
}
if(conditionsmet == true)
{
trade_hermit(1, $item[sweet rims]);
conditionsmet = false;
}
if(in_muscle_sign())
{
create(1, $item[bitchin' meatcar]);
}
else
{
if(my_meat() >= 160)
{
create(1, $item[bitchin' meatcar]);
}
else
{
conditionsmet = GatherMeat(160);
}
if(conditionsmet == true)
{
create(1, $item[bitchin' meatcar]);
}
else
{
print("Failed to create a bitchin' meatcar for ya, looks like you ran outta adventures :( Try again tommorrow.");
}
}
}
void main()
{
if(!contains_text(visit_url("main.php"),"beach.php")) {
GetMeatCar();
visit_url("guild.php?place=paco");
}
if(contains_text(visit_url("main.php"),"beach.php")) {
if(item_amount($item[bitchin' meatcar]) > 0) {
cli_execute("untinker bitchin' meatcar");
print("You've already unlocked the beach! Your meatcar has been untinkered.");
}
else {
print("You've already unlocked the beach! You have no meatcar to untinker.");
}
}
}