I'm pk and I can use the boat:
Please help-me...
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
---
npcHandler:setMessage(MESSAGE_GREET, 'Hello |PLAYERNAME|. Welcome to my Boat!')
function onThink() npcHandler:onThink() end
---
enable = TRUE
---
if enable == TRUE then
local eremborPos = {x=1682, y=1688, z=7}
local travelNode = keywordHandler:addKeyword({'erembor'},
StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to Travel to Erembor for 70 gold coins?' })
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = FALSE, level = 1, cost = 110, destination = eremborPos })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Ok, come back when you want then!' })
else
local travelNode = keywordHandler:addKeyword({'vengor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Sorry, I do not travel to this city..' })
end
---
keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to {Erembor}.' })
keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Im an Captain, and this is my Boat.' })
keywordHandler:addKeyword({'citys'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to {Erembor}.' })
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you need help? I can tell you some {destination}.' })
---
npcHandler:addModule(FocusModule:new())
Please help-me...