• 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!

Adding a new boat destination. rep+

ohman

Member
Joined
Oct 24, 2008
Messages
289
Reaction score
5
Location
Sweden
Hello, I got RL map and now im trying to add Oken, Pyre and Gengia. But I dont get the boat to work. I added it in all boat npc and added this text in Boat.lua

PHP:
---------------------------------------GENGIA CONFIG-------------------------------------------
local AnkPosition = {x=19270, y=19180, z=6}              ----> Destination from Gengia Boat <----
local AnkCost = 0	           	               ----> Cost to Travel for Gengia    <----
Ank = true		                               ----> TRUE:Working/FALSE:Not Working  <----
---------------------------------------END GENGIA CONFIG---------------------------------------

and ofc I changed it in every npc. But still dont work, I can tp to gengia etc and go to Thais etc with the captain on gengia etc.

I know that is one thing to change more, more down in boat.lua. I putted this text in:
PHP:
---Gengia-----------------------------------------------------------------------------------------------------------------------------------------
local GengiaText = 'Do you want to Travel to Gengia for 10 gold coins?'
local GengiaTextNo = 'Ok, come back when you want then!'
local NoTravel = 'Sorry, i do not travel to this city..'
local GengiaLvl = 8
local GengiaPremium = true --True/false

--Gengia--
if Gengia == true then
local travelNode = keywordHandler:addKeyword({'gengia'}, 
StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = GengiaText })
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = GengiaPremium, level = GengiaLvl, cost = GengiaCost, destination = GengiaPosition })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = AnkTextNo })
else
local travelNode = keywordHandler:addKeyword({'gengia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = NoTravel })
end
--End Gengia--


---------------------------------------------------------------------------------------------------------------------------------------------------

What is wrong?

thanks in adward.
 
Code:
---------------------------------------GENGIA CONFIG-------------------------------------------
local Gengia = {x=19270, y=19180, z=6}              ----> Destination from Gengia Boat <----
local GengiaCost = 0                                  ----> Cost to Travel for Gengia    <----
Gengia = true                                       ----> TRUE:Working/FALSE:Not Working  <----
---------------------------------------END GENGIA CONFIG---------------------------------------

Code:
---Gengia-----------------------------------------------------------------------------------------------------------------------------------------
local GengiaText = 'Do you want to Travel to Gengia for 10 gold coins?'
local GengiaTextNo = 'Ok, come back when you want then!'
local NoTravel = 'Sorry, i do not travel to this city..'
local GengiaLvl = 8
local GengiaPremium = true --True/false

--Gengia--
if Gengia == true then
local travelNode = keywordHandler:addKeyword({'gengia'}, 
StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = GengiaText })
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = GengiaPremium, level = GengiaLvl, cost = GengiaCost, destination = GengiaPosition })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = GengiaTextNo })
else
local travelNode = keywordHandler:addKeyword({'gengia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = NoTravel })
end
--End Gengia--


---------------------------------------------------------------------------------------------------------------------------------------------------
 
Back
Top