Reacting to MMG bet outcomes

Trufflz Farmer

New member
Hey guys, I was wondering if someone could help me with my MMG scripting attempt. I was wondering if there was a way to react to the MMG bet outcome that shows up in chat. Like if it contains "win" do this else do this.

Thanks,
TF
 

Trufflz Farmer

New member
int wait_mmg_event()

- waits for the next MMG event and returns the bet number that is finally resolved.
- returns 0 if you have no outstanding bets, there is nothing on "resolved", and there is nothing on "events"
- otherwise, waits until something is added to "events" and pulls off the first one.

This is the only way something is removed from "events".

How can you tell if you won or lost?
 

slyz

Developer
I guess the best way to learn how to use it would be to look at Veracity's script. Or keep reading the thread I linked to. In post #6 Veracity explains what has actually been implemented, with examples.

Code:
int mmg_bet_winnings();

How much money you just won or lost according to that event.
( winnings - amount bet ) is the net change to your purse.
 
Last edited:
Top