mmg_wait_event()

From KoLMafia
Jump to: navigation, search
needs(code_samples);

Function Syntax

int mmg_wait_event(int delay )

  • delay is the number of milliseconds to wait

Waits for delay milliseconds for KoL to report on an outstanding bet being taken. Returns the bet ID # of the taken bet.

Special

Returns 0 if KoL does not report a bet taken in the time specified.