local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function greetCallback(cid) Topic[cid] = 0 return true end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false elseif msgcontains(msg, 'yes') then npcHandler:say("Well I know that Tutori is held somewhere in the deep caves wich is ruled by the giant Behemoths.. He is also standing by 1 piece of required item that you will need for this quest. So if I where you I would go to the behemoths cave!", cid) Topic[cid] = 1 elseif msgcontains(msg, 'brothers') and Topic[cid] == 1 then npcHandler:say("Well I know that Tutori is held somewhere in the deep caves wich is ruled by the giant Behemoths.. He is also standing by 1 piece of required item that you will need for this quest. So if I where you I would go to the behemoths cave!", cid) Topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())