• 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 script with storage value using

Lordfire

Intermediate OT User
TFS Developer
Joined
Jul 16, 2008
Messages
251
Solutions
3
Reaction score
139
GitHub
ranisalt
I want to make traveling to an island only if the player has certain storage value set (the value itself doesn't matter). Is it possible to use with simple NPC system (that is, without specific scripting)? Like this:

local travelNode = keywordHandler:addKeyword({'farmine'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to go to Farmine? It will cost 340 gold, and you need to be level 50.'})
travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 50, cost = 340, storage = 1310, destination = {x=179, y=1556, z=10} })
travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then not.'})

Will it work, or is there some way to make it work?
 
Back
Top