• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Set back vocations tfs 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi folks!

I got stucked in a part of the code that I'm trying to do, it is to set back vocations..
What I mean is if you are vocation id 5 then set back to 1, if you are vocation 6 then set to 2, etc, etc.

Also, it must be in table..


Thanks.
 
Edit..

@Codex NG
Code:
local promotion = player:getVocation():getPromotion()
        if promotion then
            player:setVocation(player:getVocation():getDemotion())
        end

Seems it is not working.
 
Last edited:

Similar threads

Back
Top