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

Need Vipdoor Script

Kippetjee

Member
Joined
Jun 17, 2009
Messages
1,197
Reaction score
11
Location
The Netherlands
Hello

i need a vipdoor script that you onley can acces if in db

vipdays more that 1 days vip over Welcome vip
when you havent 0 vip days Sorry you cant enter the vip room

i found some vip doors on this forum but dont worked...


its for 0.3.6 fts

THX
 
http://otland.net/f163/mock-vip-system-vip-account-51512/

and my medal and doors
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local days = 30
 
                doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
           	vip.addVipByAccount(getPlayerAccount(cid), vip.getDays(days))
                doRemoveItem(item.uid, 1)
                doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 30)   
        return TRUE
end

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if vip.getVip(cid) > 0 then
            if getCreaturePosition(cid).y < toPosition.y then
                   doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
            else
                     doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
            end
         doCreatureSay(cid, "Thank you for purchasing a VIP!", TALKTYPE_ORANGE_1)
           doSendMagicEffect(getCreaturePosition(cid), 10)
      else
           doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, only VIP Players can pass here!.")
      end
   return TRUE
end
 
take..
data/action/script
doorvip.lua
LUA:
function onUse(cid, item, frompos, item2, topos)
local vipstorage = 15519

if item.actionid == vipstorage then
if getPlayerStorageValue(cid, vipstorage) == 1 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Stay in front of the door.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Only VIP Account can go there.')
end
return 1
end
return TRUE
end

actions.xml
LUA:
<action actionid="15519" script="doorvip.lua"/>
 
Back
Top