function adjustSpeed(cid) --put it in the lib, or not, your choose ;p
local skillID = x --change this
local speedPerLvl = xxx --change this
if not isPlayer(cid) then return end
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, getPlayerSkillLevel(cid, skillID)*speedPerLvl)
end
function onLogin(cid)
adjustSpeed(cid)
return true
end
function onAdvance(cid, skill, oldLevel, newLevel)
adjustSpeed(cid)
return true
end