Jump to content

Tick Timer Reset & Time Color


Magick

Recommended Posts

My prompt is setup to show the time (in the format ##00) between gold and being mounted status.  Adjust accordingly.

7fke2T.jpg

<class name="TickTimer" id="30">
  <trigger priority="22040" prompt="true" id="2204">
    <pattern>&lt;%d{g|exp}&gt; (%d) {D|M}</pattern>
    <value>$TIME = %1
#SWITCH ($TIME)
 (000) {#PCOL #4444444 %x1}
 (100) {#PCOL 0008 %x1}
 (200) {#PCOL 0008 %x1}
 (300) {#PCOL 0008 %x1}
 (400) {#PCOL 0008 %x1}
 (500) {#PCOL 0008 %x1}
 (600) {#PCOL 0004 %x1}
 (700) {#PCOL 0006 %x1}
 (800) {#PCOL 0006 %x1}
 (900) {#PCOL 0006 %x1}
 (1000) {#PCOL 0006 %x1}
 (1100) {#PCOL 0014 %x1}
 (1200) {#PCOL 0015 %x1}
 (1300) {#PCOL 0014 %x1}
 (1400) {#PCOL 0006 %x1}
 (1500) {#PCOL 0006 %x1}
 (1600) {#PCOL 0006 %x1}
 (1700) {#PCOL 0006 %x1}
 (1800) {#PCOL 0004 %x1}
 (1900) {#PCOL 0008 %x1}
 (2000) {#PCOL 0008 %x1}
 (2100) {#PCOL 0008 %x1}
 (2200) {#PCOL 0008 %x1}
 (2300) {#PCOL 0008 %x1}
#IF ($TIME != @TIME) {#echo "":#TS 30:#VAR time %1} {}</value>
  </trigger>
  <var name="TIME" id="2205">000</var>
</class>

 

Edited by Magick
Link to comment
Share on other sites

  • 1 year later...
  • 3 weeks later...

Yes, you should be able to make a new class and in the XML section, paste it in there.  Do not forget to change the pattern of the trigger (this in green: <%d{g|exp}> (%d) {D|M}) to match your prompt and the switch block to match that.

Example:
Your prompt looks like this: <123/123hp 123/123m 123/123mv><0h><1234g>
You need to make the trigger pattern look like this: <%dh>
And the switch block from:
#SWITCH ($TIME)
 (000) {#PCOL #4444444 %x1}
 (100) {#PCOL 0008 %x1}
 (200) {#PCOL 0008 %x1}
.... and so on.

To:
#SWITCH ($TIME)
 (0) {#PCOL #4444444 %x1}
 (1) {#PCOL 0008 %x1}
 (2) {#PCOL 0008 %x1}
.... and so on.

If your prompt does something like <123/123hp 123/123m 123/123mv><0:00h><1234g>, you'll need to replace the %d (number matching) to * (general wild card) and the switch block to match.

<*h>

#SWITCH ($TIME)
 (0:00) {#PCOL #4444444 %x1}
 (1:00) {#PCOL 0008 %x1}
 (2:00) {#PCOL 0008 %x1}
.... and so on.

Link to comment
Share on other sites

×
×
  • Create New...