Auto Dungeoneering Kit Grabber

For script writing
Post Reply
User avatar
wyli romesco
Spy vs. Pie
Posts: 81
Joined: Wed May 07, 2014 6:39 am

Auto Dungeoneering Kit Grabber

Post by wyli romesco » Thu Jul 24, 2014 11:20 pm

Just posting a very short and simple script that automates grabbing a dungeoneering kit if you have a GameInformPowerDailyPro magazine in your inventory. You can set it as a custom daily deed to avoid some tedious repetition :)

Code: Select all


void getkit()
{
	cli_execute("inv refresh");
	if (item_amount( $item[GameInformPowerDailyPro magazine] ) == 1)
	{
		visit_url("inv_use.php?pwd&whichitem=6174&confirm=Yep.");
		cli_execute("inv refresh");
		adv1($location[Video Game Level 1], -1, "");
        	use( 1, $item[Dungeoneering kit] );
	}
	
}

void main()
{
	getkit();
}
So yeah, save it as an .ash file in your script folder (use notepad to avoid formatting weirdness) and you're good to go :)
Last edited by wyli romesco on Fri Jul 25, 2014 11:23 pm, edited 1 time in total.

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Re: Auto Dungeoneering Kit Grabber

Post by lostcalpolydude » Fri Jul 25, 2014 1:05 am

There's no need to import zlib, since you aren't using anything from it.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
wyli romesco
Spy vs. Pie
Posts: 81
Joined: Wed May 07, 2014 6:39 am

Re: Auto Dungeoneering Kit Grabber

Post by wyli romesco » Fri Jul 25, 2014 11:27 pm

Okay, so I've updated the code, as the adventure() function was causing it to spend two turns in the Level 1 dungeon (as the first turn, which gives you the kit, is a free turn and adventure() doesn't count it). Switched to the adv1() function and now it works just fine :)

User avatar
harumph
My Pie Blown Sky High
Posts: 576
Joined: Mon Nov 12, 2012 7:25 pm

Re: Auto Dungeoneering Kit Grabber

Post by harumph » Sun Sep 07, 2014 1:02 am

thanks! very sueful for me. lag for manually doing it just sucks

Post Reply