#nop ################################################## #nop Script generation and execution: do not edit unless you are sure what you are doing. Even then, keep a backup copy just in case. #nop 'begin' - Starts script. #nop 'end' - Ends script. #nop 'setatt ' - Sets default attack. #nop 'showearnings' - Shows your current earnings in the main window. #nop 'outearnings' - Outputs your current earnings in the output box. #nop 'pause' - Pauses the script. #nop 'unpause' - Unpauses the script. #loop {1,$$mobnum}{#var mob$0 0; #action {$$mob$$0s}{#var mob$$0 1}{script}; #action {$$mob$$0p}{#var mob$$0 {$$1}}{script}} #unac {NULL} #var found 1 #var searching 0 #var move 1000 #var attack kill #ac {[ exits: %1]}{#var searching 1}{script} #ac {^[Exits:%1]}{#var searching 1}{script} #ac {^[Lag: %1] [Reply: %2]}{#if {$$searching=1}{cycle}}{script} #ac {^You lack the means to go there.}{$move}{script} #ac {^You land [ %1 of %2 ] attacks on}{#var searching 1}{script} #ac {^You miss [ %1 ] attacks on}{#var searching 1}{script} #ac {^They aren't here.}{#var searching 1}{script} #ac {^There is no one here by that name.}{#var searching 1}{script} #al {mobhit}{#if {$found=0}{#var target $$mob$$0n;mobatk;#var found 1;#math {mob$$$0}{$mob$$$0-1}}}{script} #al {move}{#status 1 Move: $move;$move} #al {cycle}{#var found 0;#loop {1,$$mobnum}{#if {$mob$$0>0}{mobhit $$0}};#if {$found=0}{#math {move}{$move+1};#var mobs 1;move};#var searching 0}{script} #al {begin}{look;#gr enable script} #al {end}{rem_script;#out {white}{$curgold gold earned in $ticks minute(s).};#out {white}{$gpm average gold per minute.};#out {white}{$curxp exp earned in $ticks minute(s).};#out {white}{$xpm average exp per minute.}}{script} #al {outearnings}{#out {white}{$curgold gold earned in $ticks minute(s).};#out {white}{$gpm average gold per minute.};#out {white}{$curxp exp earned in $ticks minute(s).};#out {white}{$xpm average exp per minute.}}{script} #al {showearnings}{#show {white}{$curgold gold earned in $ticks minute(s).};#show {white}{$gpm average gold per minute.};#show {white}{$curxp exp earned in $ticks minute(s).};#show {white}{$xpm average exp per minute.}}{script} #al {mobatk}{$attack $target}{script} #al {setatt}{#var attack} #al {rem_script}{#group delete script;#group delete tickcount} #al {pause}{#group disable script} #al {unpause}{#group enable script;#cr;#var searching 1} #nop ################################################## #nop ################################################## #nop --- TICKS, GPM, and XPM counter --- #nop Type '#group disable tickcount' to disable while a script is running, or cut this out. Type 'spliton' to turn splitting on, and 'splitoff' to turn it back off. #var ticks 0 #ac {#TICK}{tickinc;#math {gpm}{$curgold/$ticks};statgpm;#math {xpm}{$curxp/$ticks};statxp}{tickcount} #alias {tickinc}{#math ticks {$ticks+1}} #var curgold 0 #var gpm 0 #var pgold 0 #var split 0 #ac {^You get a pile of %3,%2,%1 gold.}{#math {pgold}{$1+(1000*$2)+(1000000*$3)};addgold $pgold}{tickcount} #ac {^You get a pile of %2,%1 gold.}{#math {pgold}{$1+(1000*$2)};addgold $pgold}{tickcount} #ac {^You get a pile of %1 gold.}{#math {pgold}{$1};addgold $pgold}{tickcount} #alias {addgold}{#math {curgold}{$curgold+$1};#if {$ticks>0}{#math {gpm}{$curgold/$ticks}};statgpm;#if {$$split=1}{splitcode $$1}}{tickcount} #alias {statxp}{#nop}{tickcount} #alias {splitcode}{split %1}{tickcount} #alias {spliton}{#var split 1}{tickcount} #alias {splitoff}{#var split 0}{tickcount} #var curxp 0 #var xpm 0 #var pxp 0 #ac {^You receive %3,%2,%1 (%5,%4 learn curve%0) exp}{#math {pxp}{$1+(1000*$2)+(1000000*$3)+$4+(1000*$51)};addxp $pxp;#var searching 1}{tickcount}{4} #ac {^You receive %2,%1 (%5,%4 learn curve%0) exp}{#math {pxp}{$1+(1000*$2)+$4+(1000*$5)};addxp $pxp;#var searching 1}{tickcount}{4} #ac {^You receive %1 (%5,%4 learn curve%0) exp}{#math {pxp}{$1+$4+(1000*$5)};addxp $pxp;#var searching 1}{tickcount}{4} #ac {^You receive %3,%2,%1 (%4 learn curve%0) exp}{#math {pxp}{$1+(1000*$2)+(1000000*$3)+$4};addxp $pxp;#var searching 1}{tickcount}{4} #ac {^You receive %2,%1 (%4 learn curve%0) exp}{#math {pxp}{$1+(1000*$2)+$4};addxp $pxp;#var searching 1}{tickcount}{4} #ac {^You receive %1 (%4 learn curve%0) exp}{#math {pxp}{$1+$4};addxp $pxp;#var searching 1}{tickcount}{4} #alias {addxp}{#math {curxp}{$curxp+$1};#if {$ticks>0}{#math {xpm}{$curxp/$ticks}};statxp}{tickcount}{4} #alias {statgpm}{#nop}{tickcount} #nop ################################################## #nop ################################################## #nop This section puts your GPM and XPM into your status boxes. Remove to disable. #status 1 GPM: 0 #status 2 XPM: 0 #alias {statgpm}{#status 2 GPM: $gpm}{tickcount} #alias {statxp}{#status 3 XPM: $xpm}{tickcount} #nop ################################################## #gr disable script