Difference between revisions of "User:Fewyn"

From Discworld MUD Wiki
Jump to: navigation, search
Line 20: Line 20:
 
| 10
 
| 10
 
|}
 
|}
 +
 +
== Useful CMud Triggers ==
 +
Note: Save as an XML file and import into CMud
 +
 +
=== Thieves' Guild Quota Tracker ===
 +
You will need to edit the Gauge and move it to where it'll work best for you.
 +
<pre>
 +
<?xml version="1.0" encoding="ISO-8859-1" ?>
 +
<cmud>
 +
  <class name="Quota">
 +
    <trigger priority="62292">
 +
      <pattern>^You still have (%d) hour{s|}, (%d) minute{s|}, (%d) second{s|} left this quota period.$</pattern>
 +
      <value>#VAR QuotaTime (%1*3600)+(%2*60)+(%3)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset
 +
} Quota</value>
 +
    </trigger>
 +
    <var name="QuotaTime">27204</var>
 +
    <stat name="Quota" showinbar="false" showinwindow="true" priority="62110" enabled="false">
 +
      <value><![CDATA[
 +
<color orange>Quota</color>%if((%alarm(Quota)/1000)<1800 AND @QuotaStatus!=Complete OR @QuotaStatus=Unchecked, <color red>, <color orange>)(@QuotaStatus)</color><color orange>:</color> <color lime>[</color><color yellow>$@CurrentQuota</color><color lime>/<color><color orange>$@MaxQuota</color><color lime>]</color><color lime>~(</color>%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),<color red>,<color orange>)%round(@CurrentQuota/%float(@MaxQuota)*100)~%</color><color lime>~)</color> <color darkred>{%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)/)$%format(2,%eval(@MaxQuota-@CurrentQuota))}</color> <color white>~[</color><color yellow>%mod( %alarm(Quota)/1000/3600, 24)h</color><color white>:</color><color yellow>%mod( %alarm(Quota)/1000/60, 60)m</color><color white>:</color><color yellow>%mod( %alarm(Quota)/1000, 60)s</color><color white>~]</color>]]></value>
 +
    </stat>
 +
    <var name="QuotaStatus">Complete</var>
 +
    <trigger priority="62130">
 +
      <pattern>^You haven't stolen enough to reach your quota yet.$</pattern>
 +
      <value>#VAR QuotaStatus Incomplete</value>
 +
    </trigger>
 +
    <trigger priority="62140">
 +
      <pattern>^You still have to pay the guild to reach your quota.$</pattern>
 +
      <value>#VAR QuotaStatus Partial</value>
 +
    </trigger>
 +
    <trigger priority="62141">
 +
      <pattern>^You have reached and paid your quota this period.$</pattern>
 +
      <value>#VAR QuotaStatus Complete</value>
 +
    </trigger>
 +
    <trigger priority="62293">
 +
      <pattern>^You still have (%d) hour{s|} left this quota period.$</pattern>
 +
      <value>#VAR QuotaTime (%1*3600)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset
 +
} Quota</value>
 +
    </trigger>
 +
    <event event="onConnect" priority="63060">
 +
      <value>#VAR QuotaStatus Unchecked</value>
 +
    </event>
 +
    <trigger priority="63390">
 +
      <pattern>^You still have (%d) minute{s|}, (%d) second{s|} left this quota period.$</pattern>
 +
      <value>#VAR QuotaTime (%1*60)+(%2)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset
 +
} Quota</value>
 +
    </trigger>
 +
    <trigger priority="64890">
 +
      <pattern>^You still have (%d) hour{s|}, (%d) second{s|} left this quota period.$</pattern>
 +
      <value>#VAR QuotaTime (%1*3600)+(%2)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset
 +
} Quota</value>
 +
    </trigger>
 +
    <trigger priority="67410">
 +
      <pattern>^A shadowy character sneaks up beside you, makes some marks in a leatherbound ledger, and slips silently away.$</pattern>
 +
      <value>#VAR QuotaTime (12*3600)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
} Quota
 +
#VAR QuotaStatus Incomplete
 +
#VAR CurrentQuota 0</value>
 +
    </trigger>
 +
    <trigger priority="64890">
 +
      <pattern>^You still have (%d) hour{s|}, (%d) minutes{s|} left this quota period.$</pattern>
 +
      <value>#VAR QuotaTime (%1*3600)+(%2*60)
 +
#ALARM "Quota" {+@QuotaTime} {
 +
#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset
 +
} Quota</value>
 +
    </trigger>
 +
    <trigger priority="84590">
 +
      <pattern>^People have brought receipts to the guild, with the following value:</pattern>
 +
      <trigger>
 +
        <pattern>A~$%1.</pattern>
 +
        <value>#VAR CurrentQuota %1</value>
 +
      </trigger>
 +
    </trigger>
 +
    <var name="CurrentQuota">343.76</var>
 +
    <var name="MaxQuota">345</var>
 +
    <trigger priority="86560">
 +
      <pattern>^Maximum Quota: A~$%1.</pattern>
 +
      <value>#VAR MaxQuota %1</value>
 +
    </trigger>
 +
    <trigger priority="62291">
 +
      <pattern>^You have reached and paid your minimum quota this period but still have some outstanding debt to settle.$</pattern>
 +
      <value>#VAR QuotaStatus Partial</value>
 +
    </trigger>
 +
    <trigger priority="104640">
 +
      <pattern>^Your current experience is %1 and you are level %2 in</pattern>
 +
      <value>#VAR MaxQuota (%2+100)</value>
 +
    </trigger>
 +
    <trigger priority="106190">
 +
      <pattern>^Artan whispers to you: Ok, looks like you've got enough to cover your debts for now.$</pattern>
 +
      <value>#IF (@QuotaStatus=Partial) {#VAR QuotaStatus Complete}</value>
 +
    </trigger>
 +
    <trigger priority="155910">
 +
      <pattern>^You have exceeded your quota. That wasn't a very wise decision, but you must have had your reasons.$</pattern>
 +
      <value>#VAR QuotaStatus Exceeded</value>
 +
    </trigger>
 +
    <button type="Gauge" autosize="false" width="1021" height="15" autopos="false" left="0" top="24" toolstyle="true" color="#12326D" textcolor="#5994FF" border="#5994FF" gaugelowcol="#FF6600" priority="135685">
 +
      <caption>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota&lt;((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]@QuotaTemp1@QuotaTemp2</caption>
 +
      <value>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota&lt;((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]</value>
 +
      <expr>@CurrentQuota</expr>
 +
      <gaugemax>@MaxQuota</gaugemax>
 +
      <gaugelow>@CurrentQuota</gaugelow>
 +
    </button>
 +
    <var name="QuotaTemp1" type="Literal"/>
 +
    <trigger priority="262930" newline="false" prompt="true">
 +
      <pattern>*</pattern>
 +
      <value>#IF (@QuotaTemp1="") {
 +
#VAR QuotaTemp1 " "
 +
#VAR QuotaTemp2 ""} {
 +
#VAR QuotaTemp1 ""
 +
#VAR QuotaTemp2 " "}</value>
 +
    </trigger>
 +
    <var name="QuotaTemp2" type="Literal"> </var>
 +
    <stat name="Quota No Colors" showinbar="false" showinwindow="true" priority="62110">
 +
      <value>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota&lt;((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]@QuotaTemp1@QuotaTemp2</value>
 +
    </stat>
 +
    <trigger name="Quota" type="Alarm" priority="29230">
 +
      <pattern>+@QuotaTime</pattern>
 +
      <value>#ECHO Quota is ready to reset!
 +
#VAR QuotaStatus Reset</value>
 +
    </trigger>
 +
  </class>
 +
</cmud>
 +
</pre>

Revision as of 11:49, 17 April 2016

Junkrat's Armour

You are unburdened (33%) by:
Holding : a darkened makhaira (left hand) and a darkened makhaira (right hand).
Wearing : a grey leather cloak, a black gold ring, a pair of brass alchemists' goggles and a pair of obsidian boots.
(under) : a rhino grey canvas sea bag, a pebble grey canvas duffel bag, a brown leather belt, a Thieves' Guild Licence, an imp-powered watch, a keyring necklace, a stone medallion, an emerald-studded sword
          belt, a blackened canteen, a pair of vampire fangs and a Philosophers' Society pin.
Your purse contains only moths.

Carrying Scrolls

Ma.sp.sp Bonus Scrolls
166 10

Useful CMud Triggers

Note: Save as an XML file and import into CMud

Thieves' Guild Quota Tracker

You will need to edit the Gauge and move it to where it'll work best for you.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <class name="Quota">
    <trigger priority="62292">
      <pattern>^You still have (%d) hour{s|}, (%d) minute{s|}, (%d) second{s|} left this quota period.$</pattern>
      <value>#VAR QuotaTime (%1*3600)+(%2*60)+(%3)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset
} Quota</value>
    </trigger>
    <var name="QuotaTime">27204</var>
    <stat name="Quota" showinbar="false" showinwindow="true" priority="62110" enabled="false">
      <value><![CDATA[
<color orange>Quota</color>%if((%alarm(Quota)/1000)<1800 AND @QuotaStatus!=Complete OR @QuotaStatus=Unchecked, <color red>, <color orange>)(@QuotaStatus)</color><color orange>:</color> <color lime>[</color><color yellow>$@CurrentQuota</color><color lime>/<color><color orange>$@MaxQuota</color><color lime>]</color><color lime>~(</color>%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),<color red>,<color orange>)%round(@CurrentQuota/%float(@MaxQuota)*100)~%</color><color lime>~)</color> <color darkred>{%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)/)$%format(2,%eval(@MaxQuota-@CurrentQuota))}</color> <color white>~[</color><color yellow>%mod( %alarm(Quota)/1000/3600, 24)h</color><color white>:</color><color yellow>%mod( %alarm(Quota)/1000/60, 60)m</color><color white>:</color><color yellow>%mod( %alarm(Quota)/1000, 60)s</color><color white>~]</color>]]></value>
    </stat>
    <var name="QuotaStatus">Complete</var>
    <trigger priority="62130">
      <pattern>^You haven't stolen enough to reach your quota yet.$</pattern>
      <value>#VAR QuotaStatus Incomplete</value>
    </trigger>
    <trigger priority="62140">
      <pattern>^You still have to pay the guild to reach your quota.$</pattern>
      <value>#VAR QuotaStatus Partial</value>
    </trigger>
    <trigger priority="62141">
      <pattern>^You have reached and paid your quota this period.$</pattern>
      <value>#VAR QuotaStatus Complete</value>
    </trigger>
    <trigger priority="62293">
      <pattern>^You still have (%d) hour{s|} left this quota period.$</pattern>
      <value>#VAR QuotaTime (%1*3600)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset
} Quota</value>
    </trigger>
    <event event="onConnect" priority="63060">
      <value>#VAR QuotaStatus Unchecked</value>
    </event>
    <trigger priority="63390">
      <pattern>^You still have (%d) minute{s|}, (%d) second{s|} left this quota period.$</pattern>
      <value>#VAR QuotaTime (%1*60)+(%2)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset
} Quota</value>
    </trigger>
    <trigger priority="64890">
      <pattern>^You still have (%d) hour{s|}, (%d) second{s|} left this quota period.$</pattern>
      <value>#VAR QuotaTime (%1*3600)+(%2)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset
} Quota</value>
    </trigger>
    <trigger priority="67410">
      <pattern>^A shadowy character sneaks up beside you, makes some marks in a leatherbound ledger, and slips silently away.$</pattern>
      <value>#VAR QuotaTime (12*3600)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
} Quota
#VAR QuotaStatus Incomplete
#VAR CurrentQuota 0</value>
    </trigger>
    <trigger priority="64890">
      <pattern>^You still have (%d) hour{s|}, (%d) minutes{s|} left this quota period.$</pattern>
      <value>#VAR QuotaTime (%1*3600)+(%2*60)
#ALARM "Quota" {+@QuotaTime} {
#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset
} Quota</value>
    </trigger>
    <trigger priority="84590">
      <pattern>^People have brought receipts to the guild, with the following value:</pattern>
      <trigger>
        <pattern>A~$%1.</pattern>
        <value>#VAR CurrentQuota %1</value>
      </trigger>
    </trigger>
    <var name="CurrentQuota">343.76</var>
    <var name="MaxQuota">345</var>
    <trigger priority="86560">
      <pattern>^Maximum Quota: A~$%1.</pattern>
      <value>#VAR MaxQuota %1</value>
    </trigger>
    <trigger priority="62291">
      <pattern>^You have reached and paid your minimum quota this period but still have some outstanding debt to settle.$</pattern>
      <value>#VAR QuotaStatus Partial</value>
    </trigger>
    <trigger priority="104640">
      <pattern>^Your current experience is %1 and you are level %2 in</pattern>
      <value>#VAR MaxQuota (%2+100)</value>
    </trigger>
    <trigger priority="106190">
      <pattern>^Artan whispers to you: Ok, looks like you've got enough to cover your debts for now.$</pattern>
      <value>#IF (@QuotaStatus=Partial) {#VAR QuotaStatus Complete}</value>
    </trigger>
    <trigger priority="155910">
      <pattern>^You have exceeded your quota. That wasn't a very wise decision, but you must have had your reasons.$</pattern>
      <value>#VAR QuotaStatus Exceeded</value>
    </trigger>
    <button type="Gauge" autosize="false" width="1021" height="15" autopos="false" left="0" top="24" toolstyle="true" color="#12326D" textcolor="#5994FF" border="#5994FF" gaugelowcol="#FF6600" priority="135685">
      <caption>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]@QuotaTemp1@QuotaTemp2</caption>
      <value>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]</value>
      <expr>@CurrentQuota</expr>
      <gaugemax>@MaxQuota</gaugemax>
      <gaugelow>@CurrentQuota</gaugelow>
    </button>
    <var name="QuotaTemp1" type="Literal"/>
    <trigger priority="262930" newline="false" prompt="true">
      <pattern>*</pattern>
      <value>#IF (@QuotaTemp1="") {
#VAR QuotaTemp1 " "
#VAR QuotaTemp2 ""} {
#VAR QuotaTemp1 ""
#VAR QuotaTemp2 " "}</value>
    </trigger>
    <var name="QuotaTemp2" type="Literal"> </var>
    <stat name="Quota No Colors" showinbar="false" showinwindow="true" priority="62110">
      <value>Quota: ~(@QuotaStatus~): [~$@CurrentQuota~/~$@MaxQuota]~(%round(@CurrentQuota/%float(@MaxQuota)*100)~%~) {%if(@CurrentQuota<((@MaxQuota-100)/%float(4)),~$%eval(((@MaxQuota-100)/%float(4))-@CurrentQuota)~/)~$%format(2,%eval(@MaxQuota-@CurrentQuota))} ~[%mod(%alarm(Quota)/1000/3600, 24)h:%mod(%alarm(Quota)/1000/60, 60)m:%mod(%alarm(Quota)/1000, 60)s~]@QuotaTemp1@QuotaTemp2</value>
    </stat>
    <trigger name="Quota" type="Alarm" priority="29230">
      <pattern>+@QuotaTime</pattern>
      <value>#ECHO Quota is ready to reset!
#VAR QuotaStatus Reset</value>
    </trigger>
  </class>
</cmud>