Magick Posted November 23, 2017 Report Share Posted November 23, 2017 (edited) My prompt is setup to show the time (in the format ##00) between gold and being mounted status. Adjust accordingly. <class name="TickTimer" id="30"> <trigger priority="22040" prompt="true" id="2204"> <pattern><%d{g|exp}> (%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 November 23, 2017 by Magick Link to comment Share on other sites More sharing options...
Imoutgoodbye Posted May 23, 2019 Report Share Posted May 23, 2019 Is this something that is just copy, pasted, and dropped in somewhere? Link to comment Share on other sites More sharing options...
Magick Posted June 9, 2019 Author Report Share Posted June 9, 2019 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 More sharing options...
Recommended Posts