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

CreatureEvent [TFS 1.1] onAdvance reward

In the part of the Vocs. If the player is promoted, is rewarded also? Or I have to put 1,5 for MS?
Yes, even if they are promoted it will reward them also. :)

Explanation:
The line below returns all players base vocation id:
Code:
local voc = player:getVocation():getBase():getId()

So all MS will become 1, all ED 2, all RP 3, and all EK 4, you don't have to make any {1,5} etc. :D
 
If the player is promoted, is rewarded also?
getVocation():getBase()
this redirects to fromvoc so if you have something like "second promotion" you may need to use getBase twice
 
was thinking instead of player:addItem use player:addOutfitAddon
but its just an idea need some tests =)
 
got an insane error after use the script, now when i say trade npcs just awser "Of course just browse through my wares "

--i'm a dumb really sorry your script is perfect sorry bro
 
Last edited:
idk maybe the storage i used never seen it before

--i'm a dumb really sorry your script is perfect sorry bro
 
Last edited:
Back
Top