Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel >= 100000 and getPlayerVocation(cid) == 6 then
if getPlayerStorageValue(cid, 88372) == -1 then
doPlayerSetVocation(cid, 10)
doPlayerSetStorageValue(cid, 88372, 1)
end
end
return true
end
in vocations.xml you can refer to which vocation the new one relates, e.g.: vocation 1 is sorcerer, vocation 5 is master sorcerer and has the attribute 1, which relates to the vocation it derived from.
Basically what you need to do is to create a new vocation in vocations.xml and then check where you get promoted (if you're running a real map server then check King Tibianus, he provides the option to get promoted), you can then either copypaste the same code and do the tweaks to get promoted once again if requirements are met or you can do a little research and add it on creaturescripts that when a player reaches the required level he automatically gets promoted.
in vocations.xml you can refer to which vocation the new one relates, e.g.: vocation 1 is sorcerer, vocation 5 is master sorcerer and has the attribute 1, which relates to the vocation it derived from.
Basically what you need to do is to create a new vocation in vocations.xml and then check where you get promoted (if you're running a real map server then check King Tibianus, he provides the option to get promoted), you can then either copypaste the same code and do the tweaks to get promoted once again if requirements are met or you can do a little research and add it on creaturescripts that when a player reaches the required level he automatically gets promoted.
Okey, now this script give one "ID" vocation for all players but how i can set vocation id 10 only for knights?
its good?:
if newLevel == 1000 & doPlayerGetVocation(cid, 4) then
function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel == 100000 and getPlayerVocation(cid) == 6 then
doPlayerSetVocation(cid, 10)
end
return true
end
But it not work ;/ If i get 100k level i will still be elder druid not legendary.
function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel >= 100000 and getPlayerVocation(cid) == 6 then
if getPlayerStorageValue(cid, 88372) == -1 then
doPlayerSetVocation(cid, 10)
doPlayerSetStorageValue(cid, 88372, 1)
end
end
return true
end
function onAdvance(cid, skill, oldLevel, newLevel)
if newLevel >= 100000 and getPlayerVocation(cid) == 6 then
if getPlayerStorageValue(cid, 88372) == -1 then
doPlayerSetVocation(cid, 10)
doPlayerSetStorageValue(cid, 88372, 1)
end
end
return true
end