Adventuring

From Kolmafia
Revision as of 03:30, 9 January 2007 by imported>Efilnikufecin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Part 5 - Adventuring

Go get ‘em, tiger!

boolean adventure( int visits, location place ) Visits the desired place the number of times that you wish. Sample:Hedging

void add_item_condition( int quantity, item it ) Specifies adventuring conditions. With conditions in place, adventure(…) will successfully complete before using all the specified adventures if the conditions are all met. See the CLI manual for additional condition programming.

void council() Visits the Council of Loathing.

item guardians() Climbs the Naughty Sorceress’ Tower and passes the challenges that it can. If it completes the challenge, it returns $item[none]. Otherwise, it returns the item that is needed to pass the next stage.

boolean guild() boolean gourd() boolean tavern() boolean nemesis() boolean entryway() boolean hedgemaze() boolean chamber() Attempts to perform the associated tasks. The return value indicates the success. See the CLI manual for more details. Sample:Hedging

boolean train_familiar( int nGoal, string sGoal ) Trains your currently-equipped familiar. sGoal can be either “base”, “buffed”, or “turns”, and nGoal is either the target weight or desired number of battles.

location my_location() Returns the location where you last adventured.

void refresh_status() Grabs a fresh copy of your sidebar, so that information on your health, effects, and such will be guaranteed accurate. In theory, this is not necessary unless you are attempting to script your own custom combat function.

monster [int] get_monsters( location loc ) returns an integer indexed map of potential monsters in the given location.

int monster_base_attack( monster eek ) int monster_base_defense( monster eek ) int monster_base_hp( monster eek ) Returns the stats for the given monster.

spiceloop is a verified kolmafia ash function however the parameters and return type are speculation. This needs verified. void spiceloop( int count ) Executes kolmafia’s internal spiceloop for the specified number of adventures.