Alternate Friars Script

Again, and alternate to cjswimmers.

And as well, not fully tested after the change to the boolean return of adventure commands.

WARNING: This script doesn't function properly. Look at the nest post for the usable one. WARNING


if( my_level() >= 6)
{
if( adventure( 1, $location[friar ceremony location])
{
while( item_amount( $item[dodecagram]) < 1 && my_adventures() > 0)
{
adventure( 1, $location[dark neck of the woods]);
}
while( item_amount( $item[box of birthday candles]) < 1 && my_adventures() > 0)
{
adventure( 1, $location[dark heart of the woods]);
}
while( item_amount( $item[eldritch butterknife]) < 1 && my_adventures() > 0)
{
adventure( 1, $location[dark elbow of the woods]);
}
if( my_adventures() > 0)
{
adventure( 1, $location[friar ceremony location]);
}
}
}
 

Attachments

  • FriarsQuestASH.ash
    610 bytes · Views: 330
I just tested it, and the original still doesn't work right. I get the message that I can not perform the ritual, and the script stops dead.

Sooo.... Here is the usable script:

Code:
if( my_level() >= 6)
{
	while( item_amount( $item[dodecagram]) < 1 && my_adventures() > 0)
	{
		adventure( 1, $location[dark neck of the woods]);
	}
	while( item_amount( $item[box of birthday candles]) < 1 && my_adventures() > 0)
	{
		adventure( 1, $location[dark heart of the woods]);
	}
	while( item_amount( $item[eldritch butterknife]) < 1 && my_adventures() > 0)
	{
		adventure( 1, $location[dark elbow of the woods]);
	}
	if( my_adventures() > 0)
	{
		adventure( 1, $location[friar ceremony location]);
	}
}
 

Attachments

  • FriarsQuestASH.ash
    530 bytes · Views: 106

Tirian

Member
Visiting the ceremony location doesn't actually take an adventure, so you wouldn't want to keep yourself from finishing the quest even if you picked up the last item with your "final adventure" (since finishing will give you more fullness to get more adventures today).

cli_execute("friars.php?pwd&action=ritual");

will do the visit without having to check your adventures, since there is no risk of combat from that location.
 
Top