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

Messages according to vocation

Demonatti

Member
Joined
May 13, 2010
Messages
89
Solutions
1
Reaction score
14
As the title says, I would like to know if somebody has an idea on how to do this : I have altered some vocations attributes and I would like to let the players know what they can or cant do with a message everytime they log in.
Obviously I know how to display a message but im still a neewbie and cant figure out how to write correcly the if statements. Im using TFS 0.4 .3777
Thanks in advance :)
 
You Can always try to add this to your script
Lua:
IF (getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5) then
-- Code for sorc only stuff here
Elseif (getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6) then
-- Code for druid only stuff here
End
1 = sorcerer and 5 = master sorcerer
2 = druid and 6= elder druid
0 = no vocation

Edit: find your vocation ids inside vocations.xml
 
Last edited:
Back
Top