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:
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
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: