Adventuring: Difference between revisions
Removed spam, restored data erased by spambot |
No edit summary |
||
Line 1: | Line 1: | ||
tatrocb | |||
== Part 5 - Adventuring == | == Part 5 - Adventuring == | ||
<p><em>Go get ‘em, tiger!</em></p> | <p><em>Go get ‘em, tiger!</em></p> |
Revision as of 05:35, 20 November 2007
tatrocb
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()
int 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 place )
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.
element monster_attack_element( monster )
element monster_defense_element( monster )
Returns the given monsters attack element and element which it can defend against.