Realms of Despair Autoroller

From Gwen Morse's Wiki
Jump to: navigation, search

This is a simple but effective Autoroller for Realms of Despair. You'll need to edit the rod_foo /let statements to the minimal values of the stats you want.

;ROD Reroller
;
; Written by Gwen Morse with help from the Tinyfuge Mailing list. 
; 
; Re-roll text as displayed on the screen.
; start the rerolling by manually inputting reroll and getting the reroll screen.

/def -p100 -Tdiku -abB -mregexp -t"^(Strength|Dexterity|Intelligence|Wisdom|Charisma|Constitution|Luck) \\s\\s\\s\\s ( +) ([0-9]?[0-9]) (.*)" rod_roller = \
  /let rod_str=18%;\
  /let rod_dex=14%;\
  /let rod_int=9%;\
  /let rod_wis=16%;\
  /let rod_cha=9%;\
  /let rod_con=12%;\
  /let rod_lck=13%;\
; /echo TFRC: Suggested autorolling stats for a Paladin configured above this line. %;\
  /let rodrollstat=%P1%;\
  /let rodrollval=%P3%;\
  /let rodroll_%rodrollstat=%rodrollval%;\
  /if (strlen(rodrollstat) & rodrollstat !~ "Luck") \
;   /echo TFRC: RODROLL Still processing. Shouldn't match %;\
  /elseif (strlen(rodrollstat) & rodrollstat =~ "Luck") \
;   /echo TFRC: RODROLL Done processing. Should match. Start match logic %;\
       /if (rodroll_Strength < rod_str \
          | rodroll_Dexterity < rod_dex \
          | rodroll_Intelligence < rod_int \
          | rodroll_Wisdom < rod_wis \
          | rodroll_Charisma < rod_cha \
          | rodroll_Constitution < rod_con \
          | rodroll_Luck < rod_lck ) \
;     /echo -aBCRed TFRC: Bad Stats. Reroll. %;\
      /send -w reroll %;\
;     /echo TFRC: score helps keep the connection from being booted for spamming commands. %;\ 
      /send -w score %;\
    /else \
      /echo -aBCGreen TFRC: Good stats. This set is a keeper. %;\
    /endif %;\
  /else \
    /echo TRFC: RODROLL Broken! %;\
  /endif