skip navigation

Welcome, Guest [log in · register]
Cwn Annwn
Search
Page 1 of 1 1
Tamlin ADDED RESET
FIXED PROBLEM WITH SPACES


<class name="daily_rewards" id="1">
<trigger priority="16000" regex="true" id="2">
<pattern>^A representative from the (.+) Tourism Board gives you (.+).$</pattern>
<value>daily_item = %replace(%2, ",", "")
daily_item = %replace(@daily_item, " ","_")
daily.@daily_item = @daily.@daily_item +1
#SHOW @daily.@daily_item
#if (%1 = Tellerium) {dailyr.tellerium = %time(aaa~ hh:nn)}
#if (%1 = New Rigel) {dailyr.rigel = %time(aaa~ hh:nn)}
#if (%1 = Xaventry) {dailyr.xaventry = %time(aaa~ hh:nn)}
#if (%1 = Sigil) {dailyr.sigil = %time(aaa~ hh:nn)}</value>
</trigger>
<alias name="dr" id="3">
<value>#SWITCH (%1="reset") {
daily = ""
} (%1="") {
#show ""
#show %ansi( 9, 0)Daily rewards totals:
#loopdb @daily {#show %ansi(9,0)Rewarded %ansi( 8, 0)%val %ansi( 9, 0)of %ansi( 8, 0)%replace(%key,"_"," ")%ansi( 9, 0)~.}
#cr
}</value>
</alias>
<var name="daily" type="Record" sorted="1" id="4">
<value>a_cackling_Baba_Yaga_plushie=1|a_bar_of_silver=1|a_non-existent_payroll_stub_with_a_scribbled_’300000’_at_the_bottom=1</value>
<json>{"a_cackling_Baba_Yaga_plushie":1,"a_non-existent_payroll_stub_with_a_scribbled_’300000’_at_the_bottom":1,"a_bar_of_silver":1}</json>
</var>
<var name="daily_item" id="5">a_non-existent_payroll_stub_with_a_scribbled_’300000’_at_the_bottom</var>
<alias name="drt" id="6">
<value>#show ""
#show %ansi( 9, 0)Daily rewards timers:
#loopdb @dailyr {#show %ansi(9,0)Rewarded at %ansi( 8, 0)%val %ansi( 9, 0)from %ansi( 8, 0)%key%ansi( 9, 0)~.}
#cr</value>
</alias>
<var name="dailyr" type="Record" sorted="1" id="7">
<value>rigel=Tue 02:38|sigil=Sat 18:13|tellerium=Tue 02:47|xaventry=Tue 03:48</value>
<json>{"rigel":"Tue 02:38","sigil":"Sat 18:13","tellerium":"Tue 02:47","xaventry":"Tue 03:48"}</json>
</var>
</class>
Lyneirari

A friend of mine was able to convert this script from CMUD to ZMUD for me to use, and I thought I was going to able copy/paste it too you all but nada sorry :(

Edited by Lyneirari on Sat, 11 Aug 2012 03:23:31 +0000

Page 1 of 1 1