• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Captain npc not working TFS 1.2

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
Well i decided to use a default travel NPC that tfs 1.2 has, Dimral, but it doesnt work, when i say to the npc the citty where i want to go, it doesnt do anything.

Any Thoughts??
heres the script

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Captain Dimral" script="default.lua" walkinterval="0" skull="green" floorchange="0">
    <health now="150" max="150"/>
    <look type="129" head="114" body="119" legs="114" feet="114" corpse="2212"/>
    <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="Valhedge,431,420,6,30;Sonoba,400,481,6,30;Freljord,394,196,6,140;Avalon,518,401,6,80;Candima,815,499,6,70;Obre,433,606,6,70;Al'Ahad,875,1070,6,140;Lacandona,1088,996,6,140;"/>
    </parameters>
</npc>
 
no errors on console

this is default.lua, nothing wrong there
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
function onThink()
    npcHandler:onThink()
end

npcHandler:addModule(FocusModule:new())
 
Back
Top