Difference between pages "KoLmafia Guide: Commonly Used ASH Commands" and "Money Making Game"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
m
 
imported>StDoodle
m
 
Line 1: Line 1:
Note that you can type 'ashref' into the CLI for a COMPLETE list of all ash script commands! It is kind of cumbersome to dig through the list though. You can narrow it down by asking about a particular command. i.e. 'ashref fullness' would list all functions (like my_fullness) that match 'fullness'.
+
{{Flink|int|mmg_bet_amount|int}}
 
+
{{Flink|string|mmg_bet_owner|int}}
a) use_familiar(familiar);
+
{{Flink|int|mmg_bet_owner_id|int}}
This one is tricky! The function takes a 'Familiar' type, and will error when you feed it a string. Therefore you must combine the to_familiar with this one. It looks like this:
+
{{Flink|string|mmg_bet_taker}}
use_familiar(to_familiar("leprechaun"));
+
{{Flink|string|mmg_bet_taker_id}}
Be sure to use the RACE of the familiar, not your name for it.
+
{{Flink|int|mmg_bet_winnings}}
 
+
{{Flink|int|mmg_make_bet|int|boolean}}
b) my_fullness()
+
{{Flink|int [int]|mmg_my_bets}}
my_inebriety()
+
{{Flink|int [int]|mmg_offered_bets}}
These return your fullness and drunkenness as 'int's.
+
{{Flink|boolean|mmg_retract_bet|int}}
 
+
{{Flink|void|mmg_search|int|int}}
c) my_basestat($stat[Moxie])
+
{{Flink|int|mmg_take_bet|int|boolean}}
Returns your Moxie stat as an 'int'.
+
{{Flink|void|mmg_visit}}
Replace with Muscle or Mysticality as needed.
+
{{Flink|int|mmg_wait_event|int}}
 
+
{{RFI|Help me obi-wan Veracity, you're my only hope.|Seriously, does anyone else know how all of these work?}}
d) equip(item);
 
Another tricky function in that it only takes an "Item". Syntax is:
 
equip(to_item("nameOfItem"));
 
 
 
e) mall_price($item[bottle of Pete's Sake]);
 
Returns the mall price as an 'int'.
 
NOTE!!! Returns the FIFTH LOWEST PRICE, not the lowest.
 
When you buy, it uses the lowest. However, KoLmafia returns the 5th lowest for analysis to deter mallbot behavior.
 
 
 
f) have_skill( $skill[ Summon Candy Heart ] );
 
Return true or false if you have skill.
 
 
 
g) set_property( "customCombatScript" , "YourScriptNameHere");
 
Lets you set a particular custom combat script. Great for setting up stasis-lock (where you delay combat so your familiar can act during combat).
 
 
 
h) TODO: Figure out a general purpose method on how to do non-combat location visiting with the mini-browser and determining your URL. i.e.:
 
visit_url("monkeycastle.php?pwd&action=buyitem&whi chitem=3997&quantity=1");
 
 
 
 
 
Continue to [[KoLmafia Guide: In Closing|In Closing]]
 
 
 
[[Category:KoLmafia Guide]][[Category:New User Help]]
 

Revision as of 15:31, 12 March 2010

int mmg_bet_amount( int )

string mmg_bet_owner( int )

int mmg_bet_owner_id( int )

string mmg_bet_taker()

string mmg_bet_taker_id()

int mmg_bet_winnings()

int mmg_make_bet( int, boolean )

int [int] mmg_my_bets()

int [int] mmg_offered_bets()

boolean mmg_retract_bet( int )

void mmg_search( int, int )

int mmg_take_bet( int, boolean )

void mmg_visit()

int mmg_wait_event( int )

Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific questions have been raised:

  • Help me obi-wan Veracity, you're my only hope.
  • Seriously, does anyone else know how all of these work?