Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Looking for a plugin that shows if I have an affect on or off.
|
Looking for a plugin that shows if I have an affect on or off.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Lumikant
(1 post) Bio
|
| Date
| Sun 08 Jul 2007 05:56 AM (UTC) Amended on Sun 08 Jul 2007 06:04 AM (UTC) by Lumikant
|
| Message
| Basically, with a lot of characters I play on different muds, I run into the problem of having a half a dozen or so affects, spells etc active at any given time. While doing a lot of combat, or running etc, a lot of times it can be difficult to keep track of if my buffs or up or not.
What I'm looking for is something that would read for the activation and wearing off messages of different powers, and display a real time show of whats active and not.
Output something kind of like:
Sanc: Up
Shield: Up
Armor: down
Detect Invis: Up
Flight: down
And if i cast fly, and the message "You begin flying" is shown, it switches Flight to Up.
I searched for about half an hour, and couldn't find anything similar. Any help would be appreciated.
To clarify, I'd like this info either in another window, or the infobar. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 08 Jul 2007 06:57 AM (UTC) |
| Message
| I would make something like a timer that updates the info bar every second or so, like this (using Lua):
<timers>
<timer enabled="y" second="1.00" send_to="12"
>
<send>function cnv (what)
if what then
return "Up"
else
return "down"
end -- if
end -- cnv
infobar_text = string.format (
"Sanc: %s, Shield: %s, Armor: %s, Detect Invis: %s, Flight: %s",
cnv (sanc), cnv (shield), cnv (armor), cnv (invis), cnv (flight))
if infobar_text ~= old_infobar_text then
InfoClear()
Info (infobar_text)
old_infobar_text = infobar_text
end -- changed</send>
</timer>
</timers>
This shows "Up" or "down" depending on whether each flag is set.
Then make appropriate triggers to match the text that shows the status change, like this:
<triggers>
<trigger
enabled="y"
match="You begin flying"
send_to="12"
sequence="100"
>
<send>flight = true</send>
</trigger>
<trigger
enabled="y"
match="You stop flying"
send_to="12"
sequence="100"
>
<send>flight = false</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,304 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top