• 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 this npc only talk to a certain vocation

Code:
local function greetCallback(cid)
    if not isInArray({1, 5}, Player(cid):getVocation():getId()) then
        npcHandler:say("You have not required vocation.", cid)
        return false
    end

    npcHandler:setMessage(MESSAGE_GREET, "Welcome, ready for a task?")
    return true
end

npcHandler:setCallback(CALLBACK_GREET, greetCallback)
 
Back
Top