IRE GMCP Skill Parsing

Share your scripts and packages with other Mudlet users.
Post Reply
kaeus
Posts: 50
Joined: Thu Dec 31, 2009 4:33 pm

IRE GMCP Skill Parsing

Post by kaeus » Tue Sep 07, 2010 2:33 pm

Nifty function to parse the wonky skill tables...being that each group is a string and all.
Code: [show] | [select all] lua
function parseSkills()
	skills = {}

	for i,v in pairs(gmcp.Char.Skills.Groups) do
		local skill = yajl.to_value(gmcp.Char.Skills.Groups[i])
		skills[skill.name] = {skill.rank, tonumber(skill.percent)}
	end
end

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests