GMCP events

Post Reply
User avatar
Calixa
Posts: 25
Joined: Sat Nov 20, 2010 5:51 pm
Location: Lusternia

GMCP events

Post by Calixa »

Is there a reference somewhere when which GMCP information is received? Since stuff like "gmcp.Char.Skills.List" is being used as an event handler it would be handy to know how often to expect that refreshing.

Also I assume all code in a script registered to an event handler is executed every time that event fires? Because I don't want to be executing a huge complicated block of code every few seconds because that is how often the event fires :D

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: GMCP events

Post by demonnic »

I don't believe there is a document showing when the various GMCP events arrive... that's controlled by the MUD. Except for when you specifically request something from the MUD over GMCP.

And yes, every time the event fires the code inside the event handler is executed. If you wish to minimize the effect of this, add a flag and check it at the top of the event handler, issuing a return whenever you don't want the rest of the code to run.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP events

Post by Vadi »

Just put an echo for when you're doing the processing, run around and play, and you'll know...

Post Reply