Looking for a plugin that shows if I have an affect on or off.

Posted by Lumikant on Sun 08 Jul 2007 05:56 AM — 2 posts, 11,818 views.

#0
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.
Amended on Sun 08 Jul 2007 06:04 AM by Lumikant
Australia Forum Administrator #1
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>