This is a standalone plugin that lets you display pure text in small boxes, with an optional cooldown timeout.
Save the files Cooldown_Text.xml and Cooldown_Text.lua in your MUSHclient plugins directory (usually (install location)/worlds/plugins )
You can have a text box with or without a timeout. Each text box has a name (it can be anything, eg. "fireball") and then the text you want in the box (that you see). If you use the same name twice it will replace the previous box, if you use a different name then you will get extra boxes (one per name).
You add boxes to the screen with CallPlugin like this:
CallPlugin ("2f103c42b3356ee1bcac384b" , "MakeWindow" , "fireball", "Fireball Spell", 30 )What that does is call MakeWindow inside the plugin, creates a box name "fireball" and puts the text "Fireball Spell" into the box. It has a timeout of 30 seconds in this example. It will automatically count down every second.
What you see is:
Fireball Spell (wait) 30s
Each second the time on the right counts down. If it is longer than a minute then the time is shown in minutes (eg. 25m) or hours, days, or weeks even.
When the 30 seconds are up the window changes to:
Fireball Spell (ready)
Another example:
CallPlugin ("2f103c42b3356ee1bcac384b" , "MakeWindow" , "rez", "Resurrection", 30 * 60 )That would show "Resurrection" counting down for 30 minutes (30 times 60 seconds).
You can have a box without a timeout:
CallPlugin ("2f103c42b3356ee1bcac384b" , "MakeWindow" , "quest", "You have active quests")You can remove a box:
CallPlugin ("2f103c42b3356ee1bcac384b" , "RemoveWindow" , "quest")
It's up to you to activate these windows by detecting game events with triggers or aliases.
("2f103c42b3356ee1bcac384b" is the plugin ID of the plugin, see Cooldown_Text.xml).