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
➜ Aardwolf GMCP Timer Controller
Aardwolf GMCP Timer Controller
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Manacle
(28 posts) Bio
|
Date
| Wed 05 Jan 2011 03:04 AM (UTC) |
Message
| I found a reasonable workaround to access world timers from a plugin's scope. I understand that that's not exactly the intended purpose of a plugin, however this one doesn't actually depend upon (or care about) any particular timer being in the global list, so hopefully it doesn't violate the spirit of that encapsulation too badly.
All this plugin does is enable a list of timers when you enter certain rooms and disables them when you leave them.
The only thing I have it do is toggle my spellup training timer when I'm in my typical resting spot. Yes, I know I could do that with triggers and a script function call.
I'm sure that I could add some logic to support global scripting languages other than Lua, but that really doesn't apply to my particular case and it doesn't seem very interesting to build that match table.
Again, I type too much, so it's too big to post here.
https://docs.google.com/leaf?id=0BzepDUveDH20ZWRkN2M1YjgtZDczYi00Mzg2LWIyN2YtNjk4ZTY1OTQzZjcx | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 05 Jan 2011 03:16 AM (UTC) |
Message
| You can now make longer posts, so you can put it up here if you like. Make sure you convert for forum codes.
|
To make your code more readable please use [code] tags as described here.
|
|
- 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.
10,286 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top