Add in 050-function.lua
How to use
Code:
function doPlayerAddSkillLevel(cid, skill, amount)
for i = 1, amount do
doPlayerAddSkillTry(cid, skill, (getPlayerRequiredSkillTries(cid, skill, getPlayerSkillLevel(cid, skill) + 1) - getPlayerSkillTries(cid, skill)), false)
end
return true
end
Code:
doPlayerAddSkillLevel(cid, SKILL_SWORD, 2)
The third parameter is the value it should set, so it gets the current value + 1, this way it counts.Code:setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1)
a bit more explain cause it's 6:56 AM