• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

boat npc help! rep++

Raiden

Developer
Joined
Sep 16, 2008
Messages
486
Reaction score
32
Location
Venezuela
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

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?
 
Wrong destination pos I guess?
Code:
training zone,358,274,6,0;edron,104,196,6,0
check where the positions are in RME,
x,y,z

Example: Training zone is set to x:358 y:274 z:6
 
Back
Top