PDA

View Full Version : Alternate Orc Chasm Quest script.



Presto Ragu
03-28-2006, 04:55 AM
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.


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]);
}
}
}

macman104
03-30-2006, 05:40 AM
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.
I was just going to ask about this, how does that work, I haven't heard of this ability.

Presto Ragu
03-30-2006, 06:42 AM
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:


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.

Presto Ragu
04-04-2006, 04:47 AM
Bleh... The adventure conditionals do not work as I would like them to...

So here are the two parts of the script.


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:


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]);
}