Obrigado mais uma vez.
Para que o Script funcionasse dando exatamente o que eu precisava, tive que deixar "rateSkill = 1.0" e "rateMagic = 1.0" no config.lua. Além disso, tive que colocar 8 linhas de +1 skill para dar 8 skills, dessa forma:
function onUse(cid, item)
if item.uid == 32114 then
if getPlayerStorageValue(cid, 32114) <= 0 then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerAddMagLevel(cid, 1)
doPlayerSendCancel(cid, "You have found a +8 ML.")
setPlayerStorageValue(cid, 32114, 1)
elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerAddSkill(cid,4,1)
doPlayerSendCancel(cid, "You have found +8 of Distance Skills.")
setPlayerStorageValue(cid, 32114, 1)
else
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,0,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,1,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,2,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,3,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerAddSkill(cid,5,1)
doPlayerSendCancel(cid, "You have found +8 of some Skills.")
setPlayerStorageValue(cid, 32114, 1)
end
else
return doPlayerSendCancel(cid, "This is empty.")
end
end
end
Ficou extenso, mas funcionou perfeitamente.
Obrigado a todos pela ajuda. (y)