I have a very nice prompt, if I do say so myself. It's similar to Vax's so what I can share that adds to the conversation is the regex to have a client recognize it for monitoring critical variables (HP, etc).
Mercedes CE 192295 214/214 262/262 320/320 10pm ----WI---T-. *::* ))
It looks very nice in color:
- Code: Select all
prompt $kWcharactername $kW%a $ky%g $kR%h$kw/%H $kC%m$kw/%M $kG%v$kw/%V $kW%T $kC%s. $kR%c$kw::$kR%C $kW))
Here's the regex that I use for my client (Mudlet) to monitor:
- Code: Select all
^(\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)
^\[AFK\] (\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)
^\[MAIL\] (\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)
Since creating this trigger, I've learned how to manipulate regex so the . after the spell effects is no longer necessary but there's no need to go back and change everything. It works beautifully.
Now, while I'm sharing, my Prompt Reader triggers is:
- Code: Select all
--good place to put troubleshooting stuff
--echo()
--prompt reading follows
toon = matches[2]
if (matches[3] ~= toonalign) then
echo("\nWATCH OUT FOR ALIGNMENT CHANGE\n")
end
toonalign = matches[3]
if (toongold > tonumber(matches[4])) then
local toongoldloss = toongold - tonumber(matches[4])
echo("\nI lost "..toongoldloss.." gold.")
end
toongold = tonumber(matches[4])
if (toonhp > tonumber(matches[5])) then
local toonhploss = toonhp - tonumber(matches[5])
echo("\nI lost "..toonhploss.." hps.")
end
toonhp = tonumber(matches[5])
toonhpmax = tonumber(matches[6])
toonmana = tonumber(matches[7])
toonmanamax = tonumber(matches[8])
toonmov = tonumber(matches[9])
toonmovmax = tonumber(matches[10])
if (mudtime ~= tonumber(matches[11])) then
echo("\nTICK!")
if ticktimer then
killTimer(ticktimer)
end
ticktimer = tempTimer(55, [[echo("Tick in roughly 5 seconds.")]])
end
mudtime = tonumber(matches[11])
mudampm = matches[12]
if (matches[13] ~= buffs) then
if string.find(buffs, "D") then
echo ("")
end
if string.find(buffs, "A") then
echo ("")
end
if string.find(buffs, "S") then
echo ("")
end
if string.find(buffs, "M") then
echo ("")
end
if string.find(buffs, "W") then
echo ("")
end
if string.find(buffs, "I") then
echo ("")
end
if string.find(buffs, "B") then
echo ("")
end
if string.find(buffs, "C") then
echo ("")
end
if string.find(buffs, "F") then
echo ("")
end
if string.find(buffs, "T") then
echo ("")
end
if string.find(buffs, "Y") then
echo ("")
end
end
buffs = matches[13]
Hope that's useful to someone.