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

Lua Vocations Help

Crip Killa

♪Chasm Dev♪
Joined
Oct 19, 2008
Messages
515
Reaction score
44
Hello I need help with this how do I make it so that when a player chooses a certain vocation they don't lose levels when they die i'm using TFS 0.3.6
 
Maybe I'm mistaken but should be in config.lua
Try finding this:
LUA:
deathLostPercent = 10
And change it to:
LUA:
deathLostPercent = 0

I am not sure tho, might be in sources aswell, but try what I said first
 
Add to login.lua;

LUA:
if (getPlayerVocation(cid) == 1) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end

(change '1' to the desired vocation id)
 
Every time I die my vocation gets switched to a paladin and I lose all my exp and my level gets set back to 1 I did just as TGYoshi instructed me to do
 
Last edited:
You need to insert the numbers of ALL YOUR VOCATIONS...than it should work^^

I tried that i went to MYSQL changed a characters vocation to the voc that is not supposed to lose exp and he still loses exp and his vocation gets switched to paladin
 
Make sure you don't have any blessings on that character, because if it add -% on a nill value it'll become zero, thus making the player lvl 1.
 
Back
Top