You can make it Easy..just make a Room like a house with an Teleporter and add all player names who made Donator xD
Add to actions.xml: <action itemid="9117" script="v.i.p.lua"/>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
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 !
<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>
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())