Difference between revisions of "Mmg take bet"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{ #vardefine:name|mmg_take_bet}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function_category=Money Making Game| function1={{Function| name={{#var:name…')
 
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Money Making Game|
 
  
 
function1={{Function|
 
function1={{Function|
Line 23: Line 22:
  
 
}}
 
}}
 +
 +
[[Category:Money Making Game]]

Revision as of 05:19, 22 May 2010

needs(code_samples);

Function Syntax

int mmg_take_bet(int bet_id ,boolean storage )

  • bet_id is the bet ID # to take
  • storage is true if using meat from Hagnk's storage or false to use meat from inventory

Accepts the bet with the specified bet_id, using meat from inventory if storage is false or from Hagnk's storage if it is true. Returns the bet amount (as a negative number) if you lose the bet, and the bet amount minus the house cut (as a positive number) if you win.