Cmud Run Stats Counter
Jump to navigation
Jump to search
Copy the following code, save it as an .xml file and import into Cmud:
<class name="runcounter" id="20"> <trigger priority="1550" id="155"> <pattern>^You receive (%d) experience points.</pattern> <value>#ad exp %1;#ad netxp %1;#ad cnt 1</value> </trigger> <trigger priority="1560" id="156"> <pattern>^You attempt to bash</pattern> <value>#ad bash 1;stand</value> </trigger> <trigger priority="1570" id="157"> <pattern>^You bash into (%*) goes down!</pattern> <value>#ad bash 1;#ad sucbash 1</value> </trigger> <trigger priority="1580" id="158"> <pattern>^You toss (%*) to the ground!</pattern> <value>#ad toss 1;#ad suctoss 1;#hi</value> </trigger> <trigger priority="1590" id="159"> <pattern>^You trip (%*) goes down!</pattern> <value>#ad trip 1;#ad suctrip 1</value> </trigger> <trigger priority="1600" id="160"> <pattern>^You try to grab a hold, but miss!</pattern> <value>#ad toss 1</value> </trigger> <trigger priority="1610" id="161"> <pattern>^You successfully rescue</pattern> <value>#ad rescue 1;#ad sucrescue 1</value> </trigger> <trigger priority="1620" id="162"> <pattern>^You sweep, but they are just a little too quick for you.</pattern> <value>#ad trip 1</value> </trigger> <trigger priority="1630" id="163"> <pattern>^You fail to rescue</pattern> <value>#ad rescue 1</value> </trigger> <trigger priority="1640" id="164"> <pattern>^Your tail whacks (%*) in the head! They are stunned</pattern> <value>#ad tail 1</value> </trigger> <trigger priority="1650" id="165"> <pattern>^You attempt a critical golden strike!</pattern> <value>#ad gstrike 1</value> </trigger> <trigger priority="1660" id="166"> <pattern>^You attempt a golden strike!</pattern> <value>#ad gstrike 1</value> </trigger> <trigger priority="1670" id="167"> <pattern>^Death sucks (%*) experience points from you as payment for resurrection.</pattern> <value>#ad death 1;#ad deathloss %1;#ad netxp -%1</value> </trigger> <trigger priority="1680" id="168"> <pattern>^You flee (%*)! What a COWARD! You lose (%d) exps!</pattern> <value>#ad netxp -%2;#ad fleexp %2</value> </trigger> <trigger priority="1690" id="169"> <pattern>^You couldn't get away! You lose (%d) exps.</pattern> <value>#ad netxp -%1;#ad fleexp %1</value> </trigger> <trigger priority="1700" id="170"> <pattern>^You recall from combat! You lose (%d) exps.</pattern> <value>#ad netxp -%1;#ad fleexp %1</value> </trigger> <trigger priority="1710" id="171"> <pattern>^You failed! You lose (%d) exps.</pattern> <value>#ad netxp -%1;#ad fleexp %1</value> </trigger> <trigger priority="1720" id="172"> <pattern>^You are (%*) and a worshipper of (%x).</pattern> <value>#var worship %2</value> </trigger> <trigger priority="1730" id="173"> <pattern>^You are (%*) and a devoted worshipper of (%x).</pattern> <value>#var worship %2</value> </trigger> <trigger priority="1740" id="174"> <pattern>^Your gain is: (%d)/(%d) hp, (%d)/(%d) m, (%d)/(%d) mv (%d)/(%d) prac.</pattern> <value>#ad lev 1;emote increases in power!! |by|%1 |y|hps|n|, |br|%3 |r|mana|n|, |bw|%7 |w|practices|n|.</value> </trigger> <trigger priority="1750" id="175"> <pattern>^You raise a level!!(%*)Your gain is: (%d)/(%d) hp, (%d)/(%d) m, (%d)/(%d) mv (%d)/(%d) prac.</pattern> <value>#ad lev 1;emote increases in power!! |by|%2 |y|hps|n|, |br|%4 |r|mana|n|, |bw|%8 |w|practices|n|.</value> </trigger> </class> <alias name="runreport" autoappend="true" id="35"> <value>gtell This run, @worship gave me~: @exp xp, @cnt kills, @lev level%if(@lev=1,,s). %if(@death=0 && @fleexp=0,,gtell I've lost %if( @death!=0, @deathloss xp by @death death~(s~))%if( @death!=0 ~and @fleexp!=0, ~and )%if( @fleexp!=0, @fleexp xp from fleeing ~and~/~or recalling) so my net gain is @netxp xp.) stats </value> </alias> <alias name="stats" autoappend="true" id="36"> <value><![CDATA[%if(@bash=0 && @trip=0 && @toss=0 && @rescue=0 && @tail=0 && @gstrike=0,,gtell %if(@bash!=0," "Bashes~: @sucbash~/@bash)%if(@trip!=0," "Trips~: @suctrip~/@trip)%if(@toss!=0," "Tosses~: @suctoss~/@toss)%if(@rescue!=0," "Rescues~: @sucrescue~/@rescue)%if(@tail!=0," "Tails~: @tail)%if(@gstrike!=0," "Golden strikes~: @gstrike))]]></value> </alias> <alias name="resetrun" autoappend="true" id="37"> <value>#var exp 0;#var cnt 0;#var lev 0;#var bash 0;#var sucbash 0;#var trip 0;#var suctrip 0;#var toss 0;#var suctoss 0;#var rescue 0;#var sucrescue 0;#var death 0;#var deathloss 0;#var netxp 0;#var fleexp 0;#var tail 0;#var gstrike 0;#ec --- Resetting counters ---</value> </alias>
After importing the .xml file, use the resetrun alias to define the variables.
There are three different aliases:
runreport shows all run information like xp, kills, levels, and also executes the stats function.
stats shows the succes rate of your used skills like bash, rescue, golden strike, etc.
resetrun resets all variables to zero.