Alternate Orc Chasm Quest script.

I saw cjswimmers, and figured I would include mine as an alternate.

NOTE: I have not tested it fully since the report that the adventure command sending a boolean result would not cause mafia to abort out.

Code:
if( my_level() >= 9)
{
	if( adventure( 1, $location[the orc chasm]))
	{
		int drunklimit;
		drunklimit = 15;
		if( have_skill( $skill[liver of steel]))
		{
			drunklimit = 20;
		}
		if( item_amount( $item[bridge]) < 1)
		{
			if( item_amount( $item[abridged dictionary]) < 1 && my_adventures() > 0)
			{
				cli_execute( "outfit swashbuckling getup");
			}
			while( item_amount( $item[abridged dictionary]) < 1 && my_adventures() > 0 && my_inebriety() < drunklimit)
			{
				adventure( 1, $location[pirate cove]);
			}
			cli_execute( "outfit adventure");
			if( item_amount( $item[abridged dictionary]) > 0)
			{
				cli_execute( "untinker abridged dictionary");
			}
		}
		if( item_amount( $item[bridge]) > 0 && my_adventures() > 0)
		{
			adventure( 1, $location[the orc chasm]);
		}
	}
	if( adventure( 1, $location[valley beyond orc chasm])
	{
		while( item_amount( $item[334 scroll]) < 4 && my_adventures() > 0)
		{
			adventure( 1, $location[valley beyond orc chasm]);
		}
		while( item_amount( $item[30669 scroll]) < 2 && my_adventures() > 0)
		{
			adventure( 1, $location[valley beyond orc chasm]);
		}
		while( item_amount( $item[33398 scroll]) < 1 && my_adventures() > 0)
		{
			adventure( 1, $location[valley beyond orc chasm]);
		}
		if( item_amount( $item[334 scroll]) >= 4 && item_amount( $item[30669 scroll]) >= 2 && item_amount( $item[33398 scroll]) >= 1)
		{
			create( 1, $item[31337 scroll]);
			create( 1, $item[64735 scroll]);
			use( 1, $item[31337 scroll]);
			use( 1, $item[hermit script]);
			use( 1, $item[stat script]);
			use( 1, $item[64735 scroll]);
		}
	}
}
 

Attachments

  • OrcChasmASH.ash.txt
    1.6 KB · Views: 133

macman104

Member
[quote author=Presto Ragu link=topic=15.msg27#msg27 date=1143525303]
I saw cjswimmers, and figured I would include mine as an alternate.

NOTE: I have not tested it fully since the report that the adventure command sending a boolean result would not cause mafia to abort out.
[/quote]I was just going to ask about this, how does that work, I haven't heard of this ability.
 
Well...

The intent is to check if you need to get the bridge yet.

When I originally tried this script, mafia would abort telling me "Nothing more to do here." Or something like this.

When I posted a report in the Mafia thread, Holatuwol said it didn't make sense for the adventure function to return boolean if it error-ed/aborted out.

So, allegedly, now the adventure function actually returns a boolean responce.

Example:

Code:
if( adventure( 1, $location[the orc chasm])

should return a true value if you can adventure there, and a false if you can't. Ie, you do not have access to that adventure for some reason - like you are not high enough level, or you have already bridged it.
 
Bleh... The adventure conditionals do not work as I would like them to...

So here are the two parts of the script.

Code:
if( my_level() >= 9)
{
	int drunklimit;
	drunklimit = 15;
	if( have_skill( $skill[liver of steel]))
	{
		drunklimit = 20;
	}
	if( item_amount( $item[bridge]) < 1)
	{
		if( item_amount( $item[abridged dictionary]) < 1 && my_adventures() > 0)
		{
			cli_execute( "outfit swashbuckling getup");
		}
		while( item_amount( $item[abridged dictionary]) < 1 && my_adventures() > 0 && my_inebriety() < drunklimit)
		{
			adventure( 1, $location[pirate cove]);
		}
		cli_execute( "outfit adventure");
		if( item_amount( $item[abridged dictionary]) > 0)
		{
			cli_execute( "untinker abridged dictionary");
		}
	}
	if( item_amount( $item[bridge]) > 0 && my_adventures() > 0)
	{
		adventure( 1, $location[the orc chasm]);
	}
}

And:

Code:
while( item_amount( $item[334 scroll]) < 4 && my_adventures() > 0)
{
	adventure( 1, $location[valley beyond orc chasm]);
}
while( item_amount( $item[30669 scroll]) < 2 && my_adventures() > 0)
{
	adventure( 1, $location[valley beyond orc chasm]);
}
while( item_amount( $item[33398 scroll]) < 1 && my_adventures() > 0)
{
	adventure( 1, $location[valley beyond orc chasm]);
}
if( item_amount( $item[334 scroll]) >= 4 && item_amount( $item[30669 scroll]) >= 2 && item_amount( $item[33398 scroll]) >= 1)
{
	create( 1, $item[31337 scroll]);
	create( 1, $item[64735 scroll]);
	use( 1, $item[31337 scroll]);
	use( 1, $item[hermit script]);
	use( 1, $item[stat script]);
	use( 1, $item[64735 scroll]);
}
 

Attachments

  • BeginOrcChasmQuestASH.ash
    742 bytes · Views: 125
  • OrcChasmQuestASH.ash
    714 bytes · Views: 129
Top