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
--Na Facc
local travelNode = keywordHandler:addKeyword({'nazwa planety...'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Beginner Island for free, are you sure ?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 1, cost = 0, destination = {x=979, y=728, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
--Skrypt na Pacc
local travelNode = keywordHandler:addKeyword({'nazwa gdzie tepa'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to M2 for 200 zeni, are you sure ?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 20, cost = 200, destination = {x=1170, y=1164, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})
keywordHandler:addKeyword({'free'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety,nazwa planety2 Planet for 200 zeni anywhere !'})
keywordHandler:addKeyword({'pacc'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety pacc,nazwa planetypacc2 for 200 zeni anywhere !'})
npcHandler:addModule(FocusModule:new())