• 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!

[TFS 1.0 Client 10.41] I need All players vocation promoted at first time login.

CesarZ

Well-Known Member
Joined
Sep 20, 2012
Messages
272
Solutions
4
Reaction score
66
i want them to login with all their promotion already set if y'all got it, drop it off i would appreciate. i have been searching for it and all i find is npc promotion problems :/
Give me the example on which lua to drop it. Thanks

Maybe i can do that in the webpage. i got [Znote ACC] either way would be cool.
 
You would need to make edits elsewhere though so this is a bit messy tbh:

Just do something like this:

LUA:
-- Promotion
local vocation = player:getVocation()
local promotion = vocation:getPromotion()
if player:isPremium() then
    if promotion then -- check if player is prompted already
        player:setVocation(promotion)
    else
        -- player is already promoted
    end
end
 
Last edited:
You need to elaborate.
Where did you put this code and what is the error etc.

This should be put in your login.lua
 
Back
Top