tintin++ autoroller

Scripts and support for your favorite MUD client.
Kindi
Sojourner
Posts: 405
Joined: Mon Nov 09, 2009 12:42 am

tintin++ autoroller

Postby Kindi » Mon Jun 07, 2010 8:59 pm

Compatible with tt++ 2.00.1. turn off any tick timers. change the number where noted to change rolling hits. when it finds a good number of high responses, it stops rolling - at this point you should shuffle things around manually (send 'perfects' to the right stats, etc) and then apply bonuses manually. the number 95 is a good target when looking for 4 perfects after manual adjustment.

Code: Select all

#forall {good;mighty;heroic;perfect;count;average;total} {#var &0 0};


#act {Strength:        %w%sPower:           %w%s} {#var str %1;#var pow %3}
#act {Dexterity:       %w%sIntelligence:    %w%s} {#var dex %1;#var int %3}
#act {Agility:         %w%sWisdom:          %w%s} {#var agi %1;#var wis %3}
#act {Constitution:    %w%sCharisma:        %w%s} {#var con %1;#var cha %3}
#alias {addcount} {#math {count} {$count + 1}}


#act {To swap stats: enter the first stat name folowed by the second stat}
{
   #forall {$str;$pow;$dex;$int;$agi;$wis;$con;$cha}
   {
      #if {"&0" == "good"} {#math {good} {$good + 1};addcount};
      #if {"&0" == "mighty"} {#math {mighty} {$mighty + 1};addcount};
      #if {"&0" == "heroic"} {#math {heroic} {$heroic + 1};addcount};
      #if {"&0" == "perfect"} {#math {perfect} {$perfect + 1};addcount};
   };
   #math {good} {$good * 82};
   #math {mighty} {$mighty * 88};
   #math {heroic} {$heroic * 94};
   #math {perfect} {$perfect * 100};
   #math {total} {$good + $mighty + $heroic + $perfect};
   #math {average} {$total / $count};
   #show Count: $count   Total: $total   Average: $average;
   #nop change the number below to 94 for a lot more hits (few dozen minutes instead of hours);
   #nop should also change the response (#system afplay) to whatever makes a sound or notifies you on your system;
   #if {$count >= 4 && $average >= 95} {#system afplay $dir/chat.wav &} {#cr};
   #forall {good;mighty;heroic;perfect;count;average;total} {#var &0 0};
}

#alias {login}
{
   #act {Please enter your term type}
   {
      #cr;y;
      #unact {Please enter your term type};
   };
   #session Roller torilmud.org 9999;
   #split {0} {0};
}

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 3 guests