calum69
New Member
hello im needing a script that is something like this
but works with maximum skills of 100 also.
so if a player goes below skill 70 he will get 70 skills again voc
and if he goes above 100 skills he will be reset to skill level 100
i also need to do this for magic level if magic level drops below 50 it will restore to 50 and if it goes above 100 it will be reset to 100 (voc 1, 2, 5, 6)
thanks
Lua:
function onLogin(cid)
if getPlayerVocation(cid) == 4 and getPlayerSkill(cid, SKILL_SWORD) < 68 then
for i = 1, -getPlayerSkillLevel(cid, SKILL_SWORD)+70 do doPlayerAddSkill(cid, SKILL_SWORD, 1) end
end
return true
end
so if a player goes below skill 70 he will get 70 skills again voc
and if he goes above 100 skills he will be reset to skill level 100
i also need to do this for magic level if magic level drops below 50 it will restore to 50 and if it goes above 100 it will be reset to 100 (voc 1, 2, 5, 6)
thanks