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, 'firecrafter') then npcHandler:say("Oh well as I figured.. Anyways I know that the firecrafter has been taken by the almighty dragon family.. I think he is located under the Amazon's camp, the one near the bandits camp.. I think its west from this place actually.. Look underground and You might find him.", cid) Topic[cid] = 1 elseif msgcontains(msg, 'keeeek') and Topic[cid] == 1 then npcHandler:say("The last thing I heard was that he had been taken by the bandits in Enigma city.. They are located a south from the broken bridge where the amazon's and valkyries are.. Look around and you will find him", cid) Topic[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())