I'm having trouble fixing a tick timer so that it works with my prompt. I'm about to pull my hair out. :)
In addition, I want to try to tie that in with a spell I need to monitor. There's no warning when the spell drops (I can't simply trigger a color change for the text), so I have to constantly check my affects otherwise. I can only cast it again after it drops, but if I'm in PK lag, I can't cast it again until the PK lag wears off, so it's super important to know -before- it falls so I don't get into PK without it.
The tick timer code (someone else's) I'm working with is thus:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\<(\d+)\/(\d+)hp\, (\d+)\/(\d+)m\, (\d+)\/(\d+)mv\, (.*)\> (?<hour>\d+)\:(?<minute>\d+)(am|pm)\."
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>if %<hour> ~= old_hour or
%<minute> ~= old_minute then
old_hour = %<hour>
old_minute = %<minute>
DoAfterNote (34, "TICK IN 7 SECONDS!") -- 7 seconds warning
end -- if</send>
</trigger>
</triggers>
For the freaking life of me, I can't figure how how to make it work with MY prompt, which is:
<%h/%H %m/%M %v/%V %g %s %q> [%r|Exits: %e] [%S] %f %t %c
As far as the prayer thing, I have no idea how to even start figuring that part out. Here are the specs on the freshly cast spell:
Spell: prayer : modifies none by 0 for 20 cycles, (10 hours)
In addition, I want to try to tie that in with a spell I need to monitor. There's no warning when the spell drops (I can't simply trigger a color change for the text), so I have to constantly check my affects otherwise. I can only cast it again after it drops, but if I'm in PK lag, I can't cast it again until the PK lag wears off, so it's super important to know -before- it falls so I don't get into PK without it.
The tick timer code (someone else's) I'm working with is thus:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\<(\d+)\/(\d+)hp\, (\d+)\/(\d+)m\, (\d+)\/(\d+)mv\, (.*)\> (?<hour>\d+)\:(?<minute>\d+)(am|pm)\."
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>if %<hour> ~= old_hour or
%<minute> ~= old_minute then
old_hour = %<hour>
old_minute = %<minute>
DoAfterNote (34, "TICK IN 7 SECONDS!") -- 7 seconds warning
end -- if</send>
</trigger>
</triggers>
For the freaking life of me, I can't figure how how to make it work with MY prompt, which is:
<%h/%H %m/%M %v/%V %g %s %q> [%r|Exits: %e] [%S] %f %t %c
As far as the prayer thing, I have no idea how to even start figuring that part out. Here are the specs on the freshly cast spell:
Spell: prayer : modifies none by 0 for 20 cycles, (10 hours)