player:setPromotionLevel(2)
if player:getVocation():getId() == 5 then
player:setVocation(9)
elseif player:getVocation():getId() == 6 then
player:setVocation(10)
elseif player:getVocation():getId() == 7 then
player:setVocation(11)
elseif player:getVocation():getId() == 8 then
player:setVocation(12)
end
how would this set the promotion?player:setPromotionLevel(2)
Don't you know how to use tables? all of "your" code is so excessive...orCode:player:setPromotionLevel(2)
Code:if player:getVocation():getId() == 5 then player:setVocation(9) elseif player:getVocation():getId() == 6 then player:setVocation(10) elseif player:getVocation():getId() == 7 then player:setVocation(11) elseif player:getVocation():getId() == 8 then player:setVocation(12) end
local vocations = {
[5] = {id = 9},
[6] = {id = 10},
[7] = {id = 11},
[8] = {id = 12}
}
QT = vocations[player:getVocation():getId()]
if not QT then return false end
player:setVocation(QT.id)
function getNewVocation(id)
local vocations = {
[{1, 5}] = 9,
[{2, 6}] = 10,
[{3, 7}] = 11,
[{4, 8}] = 12
}
for oldVocation, newVocation in pairs(vocations) do
if isInArray(oldVocation, id) then
return newVocation
end
end
return id
end
No, because it is not dynamic.Code:local vocations = { [5] = {id = 9}, [6] = {id = 10}, [7] = {id = 11}, [8] = {id = 12} } QT = vocations[player:getVocation():getId()] if not QT then return false end player:setVocation(QT.id)
Happy?
This too uses promotions
https://otland.net/threads/super-vocation-transformation-ring-for-1-0-1-1-1-2.242243/
That is because you are a copy and paste kind of guy/galCould not get this to work, period.
What are you blind? have you not seen the video..when given a specific script to "copy & paste", then yes.. Face it, your script did not work, as stated to do so.
do not be mad cus of ur stupidness, im sure that the code works flawless also because of your attitude I hope that the code do not work for youdon't be angry because of us "developers" are not on your level of Elitist Dick. See past your over inflated ego for 5 seconds and actually listen to what others are saying to you. Clearly, you have zero people skills, which in itself speaks volumes of your "skills". If this is what it takes to be a "developer" count me out.