Aardwolf GMCP Timer Controller

Posted by Manacle on Wed 05 Jan 2011 03:04 AM — 2 posts, 13,422 views.

#0
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
Australia Forum Administrator #1
You can now make longer posts, so you can put it up here if you like. Make sure you convert for forum codes.

Template:codetag
To make your code more readable please use [code] tags as described here.