- 6.2K All Categories
- 3.1K Everything Achaea
- 1.5K North of Thera
- 26 Archives of the Terraformer
- 255 The Matsuhama Arena
- 884 The Golden Dais of Creation
- 293 The Scarlattan Theatre
- 149 The Blank Canvas
- 2K Getting Help
- 407 General Questions
- 258 Quick Class Questions
- 1.3K Tech Support
- 311 Client Help
- 483 Curing Systems and Scripts
- 841 Off-Topic
- 255 The Wander Inn
- 586 The Universal Membrane
- 296 Class Discussions
- 296 Individual Class Sections
- 20 Alchemist
- 9 Apostate
- 29 Blademaster
- 9 Depthswalker
- 14 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 34 Monk
- 11 Occultist
- 8 Paladin
- 7 Priest
- 28 Runewarden
- 18 Sentinel
- 26 Serpent
- 20 Shaman
- 9 Sylvan

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 rstat {#LOOPDB @RouletteStats {#IF ("%1"="full" OR %isnumber( %key)=0) {#SHOW {%ansi( 7)%key:%repeat( " ", %eval( 6-%len( %key)))%val%repeat( " ", %eval( 4-%len( %val)))~(%eval( %val*100/@RouletteCounter)~%~)};#IF (%key="Green" OR %key="T3" OR %key="Q4" OR %key=36) {#SHOW {}}}};#SHOW {%ansi( 6)Total spins tracked: @RouletteCounter};#SHOW {%ansi( 6)Overall %if( @RouletteProfits<0, loss, winnings): %abs( @RouletteProfits) gold.}}

#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

0

## Comments