Slime
Active Member
- Joined
- Jan 25, 2014
- Messages
- 115
- Reaction score
- 32
For some reason it doesn't work, you can spam yes and npc will spam his answers.
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg)
if(msg == "yes") then
selfSay("That which you see rising up on that island is the Tower of Najima.", cid)
npcHandler:releaseFocus(cid)
else
if(msg == "no") then
selfSay("You should see it as soon as you go outside.", cid)
npcHandler:releaseFocus(cid)
end
end
end
function onThink() npcHandler:onThink() end
npcHandler:addModule(FocusModule:new())
Last edited: