As funções usadas não fazem sentido em relação ao propósito, sugiro que troque-as por essas:
function doPlayerAddSkill(cid, skill, level)
local newLevel = getPlayerSkillLevel(cid, skill) + level
doPlayerAddSkillTry(cid, skill, getPlayerRequiredSkillTries(cid, skill, newLevel) - getPlayerSkillTries(cid, skill))
return true
end
function doPlayerAddMagicLevel(cid, level)
local newLevel = getPlayerMagicLevel(cid, level) + level
doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, newLevel) - getPlayerSpentMana(cid))
return true
end
depois isso:
doPlayerSetSkill(cid, SKILL_SWORD, getPlayerSkillLevel(cid, SKILL_SWORD)+12)
doPlayerSetSkill(cid, SKILL_AXE, getPlayerSkillLevel(cid, SKILL_AXE)+12)
por isso:
doPlayerAddSkill(cid, SKILL_SWORD, getPlayerSkillLevel(cid, SKILL_SWORD) + 12)
doPlayerAddSkill(cid, SKILL_AXE, getPlayerSkillLevel(cid, SKILL_AXE) + 12)