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

IF Vip then travel NPC

eSpox

Friendly Support
Joined
Aug 25, 2009
Messages
50
Reaction score
0
Hello,

we want edit the following script. We want that the NPC only let Player with VIP(access) to the townx and townx1. At the moment it only let Premium Players to the towns.


Script:

boat:

PHP:
local travelNode = keywordHandler:addKeyword({'town x'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you really want to go to town x?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 0, destination = {x=, y=, z=} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then stay here!'}) 
	
	local travelNode = keywordHandler:addKeyword({'town x1'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you really want to go to townx1?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 0, destination = {x=, y=, z=} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then stay here!'})

We're using tfs 0.3.4(pl).

We added a vip system.

http://otland.net/f81/release-vip-system-44986/

Info:

1.) The/a medal can bought at shop

2.) The medal gives Vip days

3.) The NPC only let player with VIP days to townx
 
Last edited:
Just make a door where ever you want the NPC, and make the door can only be passed by VIP PLAYERS, and make the npc, on the 2nd floor, example:
Thais boat, head to the east, you'll find a door, make it for VIP only, and make the NPC on 2nd floor which gets u to the vip area, REP ME! :)
 
Back
Top