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

PLz HElp me whitd VIP

Rexido

New Member
Joined
Jun 10, 2008
Messages
27
Reaction score
0
Location
sweden
How to make VIP island so only pepole how paye can walk in + if the buy auto items bu "page" the get it atomatik i juse dayplay!!!!!!!!!!! Plz Help !:confused:
 
You can make it Easy..just make a Room like a house with an Teleporter and add all player names who made Donator xD
 
You can make it Easy..just make a Room like a house with an Teleporter and add all player names who made Donator xD

Yhee i have that on one server buy litel "hard" mutch job to do i have seen on ader server like a "RL TIBA Premium prids in rookgard" i whant somfing like that.
 
u need 3 things.

1. Shop system on website. (geisor shop or TFS CMS "pre-release" or what i should call it)

2. "VIP-ticket", an item that you use, and get the storage id you need to open door.

3. Script that you need a certain storage id to open door, (automaticly closes after, like lvl door)

Result: 1=Buy ticket, 2=Use ticket, 3= enter door.


VIP.lua VIP ticked (id) = 9117
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 9117 then
if getGlobalStorageValue(99987) == -1 then
setGlobalStorageValue(99987, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are now VIP.")
doRemoveItem(item.uid, 1)
elseif getGlobalStorageValue(99987) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are already VIP.")
end
end
return 1
end
Add to actions.xml: <action itemid="9117" script="v.i.p.lua"/>
 
Last edited:
How to make VIP island so only pepole how paye can walk in + if the buy auto items bu "page" the get it atomatik i juse dayplay!!!!!!!!!!! Plz Help !:confused:

Add a Captain instead like this:
Code:
<npc name="[COLOR="Red"]Captain Narkia[/COLOR]" script="[COLOR="Red"]data/npc/scripts/[COLOR="Red"]theboat.lua[/COLOR][/COLOR]" walkinterval="0" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
       	<look type="129" head="116" body="114" legs="89" feet="95" corpse="1313"/>
  corpse="2212"/>
	<parameters>
		<parameter key="module_travel" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I can take you to: [COLOR="Red"]{Thais}[/COLOR], [COLOR="Red"]{Venore}[/COLOR], [COLOR="Red"]{Carlin}[/COLOR], [COLOR="Red"]{Edron}[/COLOR], [COLOR="Red"]{Ankrahmun}[/COLOR],[COLOR="Red"]{ Ab dendriel}[/COLOR], [COLOR="Red"]{Port hope}[/COLOR], [COLOR="Red"]{Darashia}[/COLOR], [COLOR="Red"]{Yalahar}[/COLOR], [COLOR="Red"]{Svargrond}[/COLOR], [COLOR="Red"]{Goroma}[/COLOR], [COLOR="Red"]{Oken}[/COLOR], [COLOR="Red"]{Gengia}[/COLOR] and [COLOR="Red"]{Pyre}[/COLOR] for free." />
		<parameter key="travel_destinations" value="[COLOR="Red"]liberty bay,32285,32890,6,0;thais,32311,32210,6,0;venore,32954,32022,6,0;carlin,32388,31821,6,0;ab dendriel,32733,31669,6,0;ankrahmun,33092,32883,6,0;darashia,33288,32482,6,0;edron,33176,31765,6,0;port hope,32528,32784,6,0;goroma,31994,32565,6,0;svargrond,32343,31106[/COLOR][COLOR="Red"],6,0;yalahar,1345,1170,6,0;[/COLOR]" />
	</parameters>
</npc>

Then you go into your script folder and create a new .lua file called "theboat.lua". Inside add this code:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

	local travelNode = keywordHandler:addKeyword({'[COLOR="Red"]gengia[/COLOR]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Gengia is only accesable for donators (check donate page at narkia.servegame.org if not), are you a donator?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 0, destination = {[COLOR="Red"]x=34472, y=32697, z=6[/COLOR]} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then stay here!'}) 
	
	local travelNode = keywordHandler:addKeyword({'[COLOR="Red"]pyre[/COLOR]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Pyre is only accesable for donators (check donate page at narkia.servegame.org if not), are you a donator?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 0, destination = {[COLOR="Red"]x=33623, y=4003, z=6[/COLOR]} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then stay here!'}) 

	local travelNode = keywordHandler:addKeyword({'[COLOR="Red"]oken[/COLOR]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Oken is only accesable for donators (check donate page at narkia.servegame.org if not), are you a donator?'})
        	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = 0, destination = {[COLOR="Red"]x=19990, y=20008, z=6[/COLOR]} })
        	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Then stay here!'}) 

npcHandler:addModule(FocusModule:new())

Change RED so it matches your server.

This script will only allow VIP players to travel to Oken, Pyre and Gengia
 
Back
Top Bottom