Hi, i need help with writing script which will be max level only if person doesnt have storage or vocation.
thank you
or if someone can help me rewrite that script from 0.3.6 to 1.3
.
thank you
or if someone can help me rewrite that script from 0.3.6 to 1.3
LUA:
function onAdvance(cid)
if getPlayerVocation(cid) == 1or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
if getPlayerLevel(cid) >= xx then
doPlayerAddExperience(cid, (getExperienceForLevel(xx) - getPlayerExperience(cid)))
end
return true
end
end
Post automatically merged:
.