Request: Sewer Tunnel Info Script

charred

Member
can someone take a shot at creating a script that would tell you how many of the items needed you have for the tunnel adventure in the sewers.

when you run it, it would display in the Cli:

You have X unfortunate dumplings
You have X sewer wads
You have X bottle of Ooze-O
You have X flasks of oil of oiliness
You have X gatorskin umbrellas

it would be alot easier than having to check my inventory to make sure i have enough of these items before doing the sewer
 

Sandiman

Member
Here you go. This only checks the user's inventory directly, it doesn't check things like closet or clan stash.
 

Attachments

  • sewerItemsCheck.ash
    856 bytes · Views: 82

Alhifar

Member
Just a small change to add in closet checking and stash checking. The amount in the stash is displayed separately from your personal supplies. If anyone actually wants it, support for the display case wouldn't be hard to add in, it just seems like something more negative, considering stuff in the display case is probably not to be used.

Code:
# ------------------------------------------------------
# sewerItemsCheck.ash
#
# Prints the number of clan sewer items currently in
# the player's inventory.
#
# Author: Sandiman
# with a very small modification by Alhifar
# ------------------------------------------------------
notify Sandiman;

void main()
{
	int dumplings = item_amount($item[unfortunate dumpling]) + closet_amount($item[unfortunate dumpling]);
	int wads = item_amount($item[sewer wad]) + closet_amount($item[sewer wad]);
	int bottles = item_amount($item[bottle of Ooze-o]) + closet_amount($item[bottle of Ooze-o]);
	int flasks = item_amount($item[oil of oiliness]) + closet_amount($item[oil of oiliness]);
	int umbrellas = item_amount($item[gatorskin umbrella]) + closet_amount($item[gatorskin umbrella]);
	
	print( "You have " + dumplings + " unfortunate dumpling(s)" );
	print( "You have " + wads + " sewer wad(s)" );
	print( "You have " + bottles + " bottle(s) of Ooze-o" );
	print( "You have " + flasks + " (flasks of) oil of oiliness" );
	print( "You have " + umbrellas + " gatorskin umbrella(s)" );
	print( "" );
	
	int c_dumplings = stash_amount($item[unfortunate dumpling]);
	int c_wads = stash_amount($item[sewer wad]);
	int c_bottles = stash_amount($item[bottle of Ooze-o]);
	int c_flasks = stash_amount($item[oil of oiliness]);
	int c_umbrellas = stash_amount($item[gatorskin umbrella]);
	
	print( "Your clan has " + c_dumplings + " unfortunate dumpling(s)" );
	print( "Your clan has " + c_wads + " sewer wad(s)" );
	print( "Your clan has " + c_bottles + " bottle(s) of Ooze-o" );
	print( "Your clan has " + c_flasks + " (flasks of) oil of oiliness" );
	print( "Your clan has " + c_umbrellas + " gatorskin umbrella(s)" );
}
 
Top