redbull915
I learn...
i have wrong in my script this view wrong in engin i use TFS 0.3b1pl2
and my script
sry for my english
Code:
[12/12/2008 19:06:52] [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/boat/Travel1.lua
[12/12/2008 19:06:52] data/npc/scripts/boat/Travel1.lua:10: '}' expected near 'eternitat'
PHP:
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({'l'eternitat'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wish to travel to
Derelin for 119 gold coins?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 119, destination = {x=1367, y=403, z=7}
})
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'})
local travelNode = keywordHandler:addKeyword({'bredan'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'It will cost you 230 gold, are
you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 40, cost = 230, destination = {x=981, y=980,
z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I guess your not ready for the
challange.'})
local travelNode = keywordHandler:addKeyword({'chicken itza'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'It will cost you 230 gold,
are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 40, cost = 230, destination = {x=1219,
y=1022, z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I guess your not ready for the
challange.'})
local travelNode = keywordHandler:addKeyword({'gurun stad'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'It will cost you 230 gold,
are you sure?'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 40, cost = 230, destination = {x=1379, y=717,
z=6} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I guess your not ready for the
challange.'})
keywordHandler:addKeyword({'travel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Gdzie chcesz po plynoc? Moge cie zabrac do tych
miast {L'eternitat}, {Chicken Itza}, {Gurun Stad} i {Bredan}.'})
npcHandler:addModule(FocusModule:new())
sry for my english