hello again! i got a 7.4 avesta server and i want a boat npc.
i got one but don't works look the script:
captain achu.xml
And script:
All works fine but when i say: edron or training zone at momment to say "yes" the don't teleport me!... an error appear at console look it:
Any can help me?
i got one but don't works look the script:
captain achu.xml
Code:
<?xml version="1.0"?>
<npc name="Captain Achu" script="boat.lua" access="3" lookdir="2">
<mana now="800" max="800"/>
<health now="200" max="200"/>
<look type="129" head="114" body="119" legs="114" feet="114"/>
<parameters>
<parameter key="module_travel" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|. If you don't know where to flow, say {travel}."/>
<parameter key="travel_destinations" value="training zone,358,274,6,0;edron,104,196,6,0" />
</parameters>
</npc>
And script:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
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
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
All works fine but when i say: edron or training zone at momment to say "yes" the don't teleport me!... an error appear at console look it:
Code:
Lua script error: [NPC interface]
data/npc/scripts/boat.lua:OnCreatureSay
LuaScriptInterface::luaDoTeleportThing<>. Can not teleport thing.
Any can help me?