[Mudlet] Click to bet at humgii races

One single trigger. Allows you to click on a bet instead of typing RACETRACK BET 1 TICKET ON <humgii> TO <win|place|show>


Regex: ^(.+?)\s{2,}.+?\((\w+cr)\)?\s+(?:[0-9:\.]+)\s\((\w+cr)\)\s+(?:[0-9:\.]+)\s\((\w+cr)\)



--body
selectCaptureGroup(3)
setUnderline(true)
setFgColor(255,228,181)
setLink([[send("racetrack bet 1 ticket on ]]..matches[2]..[[ to win")]], "Bet to win")
resetFormat()

selectCaptureGroup(4)
setUnderline(true)
setFgColor(255,228,181)
setLink([[send("racetrack bet 1 ticket on ]]..matches[2]..[[ to place")]], "Bet to place")
resetFormat()

selectCaptureGroup(5)
setUnderline(true)
setFgColor(255,228,181)
setLink([[send("racetrack bet 1 ticket on ]]..matches[2]..[[ to show")]], "Bet to show")
resetFormat()




Comments

  • KresslackKresslack Florida, United States

    Amazing. Now I can expedite my losses. Thank you.



  • KresslackKresslack Florida, United States

    Doesn't seem to be catching everything, not sure if it's because of line break or not. My lines wrap at 100. Other than that, works great. Would be neat to see this integrated by default.





  • ^(.+?)\s{2,}.+?\((\w+c?r?)\)?\s+(?:[0-9:\.]+)\s\((\w+c?r?)\)\s+(?:[0-9:\.]+)\s\((\w+c?r?)\)

    That should fix it. It was because 1st place didn't have the "r)" at the end of (1500cr)

Sign In or Register to comment.