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
local travelNode = keywordHandler:addKeyword({'[COLOR="#FF0000"][SIZE=5][B]YOUR TOWN NAME[/B][/SIZE][/COLOR]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = '[COLOR="#FF0000"][B][SIZE=5]ANSWER:[/SIZE] Yee, do you want to go to BLASONASPFA[/B][/COLOR]'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, [COLOR="#FF0000"][SIZE=5][B]cost = 0[/B][/SIZE][/COLOR], [SIZE=5][COLOR="#FF0000"][B]destination = {x=31942, y=31043, z=6} })[/B][/COLOR][/SIZE]
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then not!'})
[COLOR="#008080"][I] local travelNode = keywordHandler:addKeyword({'[COLOR="#FF0000"][SIZE=5][B]YOUR TOWN NAME #2[/B][/SIZE][/COLOR]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = '[COLOR="#FF0000"][B][SIZE=5]ANSWER:[/SIZE]Yee, do you want to go to BLASONASPFA?[/B][/COLOR]'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, [COLOR="#FF0000"][SIZE=5][B]cost = 0[/B][/SIZE][/COLOR], [SIZE=5][COLOR="#FF0000"][B]destination = {x=31942, y=31043, z=6}[/B][/COLOR][/SIZE] })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then not!'})
[/I][/COLOR]
[B][SIZE=3]--If you need more destinations only copi and paste the text with [I][COLOR="#008080"]blue color[/COLOR][/I] and change the destinations, the names and the cost here.[/SIZE][/B]
npcHandler:addModule(FocusModule:new())