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

make npc talk to specific vocation only

otuserbyme

New Member
Joined
Nov 10, 2011
Messages
54
Reaction score
1
I haven't found it yet
using TFS 1.1
Can someone show me what to add to my npc lua file to make npc only talk to sorc druid or pally and not talk to noob or knight?
This would really be helpful to me
Thanks in advance
 
Code:
function greetCallback(cid)
    return isInArray({1, 2, 3}, getPlayerVocation(cid))
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
 
Back
Top