Smash all Barrels

For script writing
Post Reply
User avatar
lotsofphil
Leader of rum ham
Posts: 4075
Joined: Mon Mar 01, 2010 3:56 pm

Smash all Barrels

Post by lotsofphil » Wed Sep 03, 2014 8:19 am

Script to smash the barrels for PvP. It will use your CCS to kill mimics and heal you with however you handle healing.
Save the code below as a .ash file.

Code: Select all

void main(int advs_to_use)
{
	if(advs_to_use > 36)
	{
		print("There are only 36 barrels. Smashing 36.", "red");
		advs_to_use = 36;
	}
	else if(advs_to_use < 0)
	{
		print("I assume you meant 36. Smashing 36.", "red");
		advs_to_use = 36;
	}
	else if(my_adventures() < advs_to_use)
	{
		print("You don't have that many adventures. Smashing as many as possible.", "red");
		advs_to_use = my_adventures();
	}
	for i from 1 upto advs_to_use
	{
		visit_url("barrel.php?smash="+i);
		run_combat();
	}
}

littlelolligagged
Leader of Heck
Posts: 677
Joined: Tue Aug 23, 2011 10:42 am

Re: Smash all Barrels

Post by littlelolligagged » Wed Sep 03, 2014 11:39 am

Thanks, Phil.

littlelolligagged
Leader of Heck
Posts: 677
Joined: Tue Aug 23, 2011 10:42 am

Re: Smash all Barrels

Post by littlelolligagged » Thu Sep 04, 2014 8:52 am

Okay, so it seems to not be doing anything at all.

Never mind, I'm an idiot, I didn't open my guild in run.

Post Reply