Is there a way anyone could help me out if possible? I've been trying to convert Sena's old Zmud Roulette tracker to mudlet, willing to pay for this to be done if needed.
#CLASS {Roulette}
#ALIAS roulettereset {#VARIABLE RouletteCounter {0};#VARIABLE LastBet {0};#VARIABLE RouletteProfits {0};#LOOPDB
@RouletteStats {#ADDKEY RouletteStats {%key} {0}}}
#VAR RouletteCounter {0}
#VAR LastBet {0}
#VAR RouletteProfits {0}
#VAR RouletteStats {00000102030405060708090100110120130140150160170180190200210220230240250260270280290300310320330340350360red0black0Green0T10T20T30Q10Q20Q30Q40}
#REGEX {^The ball finally settles down on (\d+)(?: \((\w+)\))?\.$} {#ADDKEY RouletteStats {%1} {%eval( %db(
@RouletteStats, %1)+1)};#VARIABLE RouletteCounter {%eval(
@RouletteCounter+1)};#IF (%null( %2)) {#ADDKEY RouletteStats {Green} {%eval( %db(
@RouletteStats, Green)+1)}} {#ADDKEY RouletteStats {%2} {%eval( %db(
@RouletteStats, %2)+1)}};#IF (%1>=1 AND %1<=9) {#ADDKEY RouletteStats {T1} {%eval( %db(
@RouletteStats, T1)+1)};#ADDKEY RouletteStats {Q1} {%eval( %db(
@RouletteStats, Q1)+1)}};#IF (%1>=10 AND %1<=12) {#ADDKEY RouletteStats {T1} {%eval( %db(
@RouletteStats, T1)+1)};#ADDKEY RouletteStats {Q2} {%eval( %db(
@RouletteStats, Q2)+1)}};#IF (%1>=13 AND %1<=18) {#ADDKEY RouletteStats {T2} {%eval( %db(
@RouletteStats, T2)+1)};#ADDKEY RouletteStats {Q2} {%eval( %db(
@RouletteStats, Q2)+1)}};#IF (%1>=19 AND %1<=24) {#ADDKEY RouletteStats {T2} {%eval( %db(
@RouletteStats, T2)+1)};#ADDKEY RouletteStats {Q3} {%eval( %db(
@RouletteStats, Q3)+1)}};#IF (%1>=25 AND %1<=27) {#ADDKEY RouletteStats {T3} {%eval( %db(
@RouletteStats, T3)+1)};#ADDKEY RouletteStats {Q3} {%eval( %db(
@RouletteStats, Q3)+1)}};#IF (%1>=28 AND %1<=36) {#ADDKEY RouletteStats {T3} {%eval( %db(
@RouletteStats, T3)+1)};#ADDKEY RouletteStats {Q4} {%eval( %db(
@RouletteStats, Q4)+1)}}}
#REGEX {^You bet (\d+) sovereigns on [\w\d -]+, eliciting a wry grin and a wink from .+\.$} {#VARIABLE LastBet {%1};#VARIABLE RouletteProfits {%eval(
@RouletteProfits-%1)}}#REGEX {^.+ exclaims to you, ~"We have a winner! You've won (\d+) gold!~" (?:He|She) returns the stakes for your winning bets, and hands you your winnings\.$} {#VARIABLE RouletteProfits {%eval(
@RouletteProfits+%1+@LastBet)}}#REGEX {^Total spins tracked: \d+$} {#CR}
#CLASS 0
Comments