Check if you have a particular skill using GMCP
Re: Check if you have a particular skill using GMCP
It's just a tester function, half written. I fire it off several times inbetween mud output to see if it's refreshing anything with the sendGMCP calls.
Re: Check if you have a particular skill using GMCP
This is an Achaea bug with GMCP sending. It only sent all events once I requested output from the MUD as well...
So as a temporary workaround, do send("\n") after you send the GMCP requests and it should be more or less OK.
So as a temporary workaround, do send("\n") after you send the GMCP requests and it should be more or less OK.
Re: Check if you have a particular skill using GMCP
This is what I'm currently using to basically check if I have a skill, but I'm more passing it the required rank/percent for the skill, and only using the Groups table. Also, I know I kinda need to redo it to actually trigger off of the event, but this works for now!
Re: Check if you have a particular skill using GMCP
There's no way that this can work reliably. To begin with, you need to request a skills data set from the server. The server will answer this request asynchronously i.e. you need to hook up an event handler that parses the skill data set *when it gets delivered*.
Re: Check if you have a particular skill using GMCP
It works, but its because I request the skills, send a blank line, then run this when I log in. The data is still in gmcp.Char.Skills.Groups, it just wont keep updated, so it currently doesn't really work in real time this way. This is why it needs to be hooked to the event handler.Heiko wrote:There's no way that this can work reliably. To begin with, you need to request a skills data set from the server. The server will answer this request asynchronously i.e. you need to hook up an event handler that parses the skill data set *when it gets delivered*.
Re: Check if you have a particular skill using GMCP
By the way, this bug is so because MCCP is enabled and Rapture doesn't flush data properly. I've reminded them of this again today - perhaps this might get a fix after years.