Page 1 of 1

Quick & Dirty Crimbonium Mining Automation

Posted: Tue Dec 09, 2014 10:41 am
by wyli romesco
So, with 500+ turns of Oily Legs to use up, I figured some automation of Crimbonium mining was in order.

This script will continue to run so long as you have turns of Oily Legs available, moving from one mine to the next. It is a blunt instrument - it doesn't cleverly target likely deposits of ore, it simply tunnels up the right-hand side of each mine and then strips out the back two rows, where decent amounts of ore are likely to be found.

It heals with cannelloni cocoon so you won't get ko'd by cave-ins. If you run out of mp it will probably explode (but you really shouldn't).

You need your mining duds on and to chug down some mining oil.

Code: Select all

void main ()
{
	while (have_effect($effect[Oily Legs]) > 0)
	{
		visit_url("mining.php?mine=5&&reset=1&pwd");
		foreach mineSquare in $ints[54,46,38,30,22,14,13,12,11,10,9,17,18,19,20,21]
		{	
			if (my_hp() < my_maxhp())
			{
				use_skill($skill[Cannelloni Cocoon]);
				restore_mp(my_mp()+20);
			}
			visit_url("mining.php?mine=5&which="+mineSquare+"&pwd");
		}
	}
	print ("You no longer have Oily Legs.","red");
	print ("Crimbonium nuggets in inventory: "+item_amount($item[nugget of Crimbonium]),"blue");
}