Error: http://postimg.org/image/62z0wxlmp/
Script:
Script:
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) end
function onThink() npcHandler:onThink() end
function rank(cid, message, keywords, parameters, node)
doShowTextDialog(cid, 1981, getHighscoreString(SKILL__LEVEL))
return true
end
local node1 = keywordHandler:addKeyword({'bend over'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Very well! You want to know who are the best players?"})
node1:addChildKeyword({'yes'}, rank, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "...", reset = true})
npcHandler:addModule(FocusModule:new())
npcHandler:setMessage(MESSAGE_GREET, "Hello, {bend over} in front of me!")
Last edited:
