function doPlayerAddSkills(cid, skill, amount, round)
local str = "Doing doPlayerAddSkill(cid, "..skill..", "..amount..")/n"
local amount = amount or 1
if(skill == SKILL__LEVEL) then
return doPlayerAddLevel(cid, amount, round)
elseif(skill == SKILL__MAGLEVEL) then
return doPlayerAddMagLevel(cid, amount)
end
str = str.."Starting Skill Level: "..getPlayerSkillLevel(cid, skill)..""
for i = 1, amount do
local currentSkill = getPlayerSkillLevel(cid, skill)
local nextSkill = currentSkill+1
local requiredTries = getPlayerRequiredSkillTries(cid, skill, nextSkill)
local currentTries = getPlayerSkillTries(cid, skill)
local neededTries = requiredTries - currentTries
str = str.."/nAdding "..neededTries.." skill tries to "..currentTries.." current tries..."
doPlayerAddSkillTry(cid, skill, neededTries, false)
if getPlayerSkillLevel(cid, skill) == nextSkill then
str = str.."SUCCESS!"
else
str = str.."FAILURE! Player Skill: "..getPlayerSkillLevel(cid, skill)..""
end
end
return true
end