• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Hey i want a vip tp script.....

Lpe95

https://soundcloud.com/saintdmusic/sail-remix
Joined
Mar 3, 2013
Messages
308
Reaction score
12
Location
Music preformer.
Hey i want only v.i.p players can go in to a Vip city,

They don't use Vip medal they use a doll to come in to vip city,

Anyone got the script only Vip players can come in to city not normal palyers.

Rep++
 
Wrong i don't want a vip door, I just want to use a tp so they come in to vip land, Instead for using a door to come in...

When normal players want to watch vip land they don't have vip, But if vip players have vip they can go in, Understand? xD
 
Wrong i don't want a vip door, I just want to use a tp so they come in to vip land, Instead for using a door to come in...

When normal players want to watch vip land they don't have vip, But if vip players have vip they can go in, Understand? xD

tp is same as door :)
just put an actionID in tp and make your script
:D
 
i did but it didn't work. I putted the tp as actionid in remere mapeditor. And it didn't work

then i tried make a door then it worked when i putted action id on it
 
It works, But instead for clicking on teleport for come in, But i wanna walk into teleport so it works to tp in to vip city,
 
It works, But instead for clicking on teleport for come in, But i wanna walk into teleport so it works to tp in to vip city,

omg u need to learn little about scripting

Function onUse = if u will click on something
for walk throw tp it's called OnStepIn Movements Script
for example

try this
Code:
local vipstorage = 12345
local vipdays = 1
local action = 1234
local pos1 = {x = 1000, y = 1000, z = 7} -- Temple
local pos2 = {x = 2000, y = 2000, z = 7} -- Vip Area
function onStepIn(cid, item, position, fromPosition)
    if item.actionid = 1234 and getPlayerStorageValue(cid, vipstorage) >= vipdays then
        doTeleportThing(cid, pos2, true)
    else
        doTeleportThing(cid, pos1, true)
        doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You're not VIP member.")
    end
    return TRUE
end

and add this in movements.xml
Code:
<movevent type="StepIn" itemid="1387" event="script" value="viptp.lua"/>

itemid="1387" = teleport id
 
Last edited:
Well i have 2 other scripts Thats works go in tp but even i don't have a vip acess i can go in then it says you can't pass

Is there any problems with this script?



Code:
function onStepIn(cid, item, frompos, item2, topos)

    local vip = getPlayerStorageValue(cid,11551) >= 1 --The storage that the vip system uses.
    local kickposition = {x=1000, y=1000, z=7} --Place where the Player will be teleported if not vip, change it
        local newposition = {x=563, y=1641, z=6} --Place where the player will be teleported IF VIP, change it.


    if(vip) then
        doPlayerSendTextMessage(cid, 19, "You are allowed to pass.")
                doSendMagicEffect(getPlayerPosition(cid),2)
                doTeleportThing(cid, newposition)
                doSendMagicEffect(newposition,10)
    else
        doPlayerSendTextMessage(cid, 19, "You can't pass.")
                doTeleportThing(cid, kickposition)
    end
end



And this other
PHP:
        --Function by Frankit0--

function onStepIn(cid, item, frompos, item2, topos)

    local vip = getPlayerStorageValue(cid,11551) >= 1 --The storage that the vip system uses.
    local kickposition = {x=1000, y=1000, z=7} --Place where the Player will be teleported if NOT VIP, change it


    if(vip) then
        doPlayerSendTextMessage(cid, 19, "you are allowed to pass.")
    else
        doPlayerSendTextMessage(cid, 19, "You have not made the quest, you can't pass.")
                doTeleportThing(cid, kickposition, FALSE)
    end
end
 
The postion to in vip area is right, Then i changed in map editor to unqueid on the teleport,
PHP:
<movevent type="StepIn" uniqueid="30000" event="script" value="TrollsVipTP.lua"/>
    <movevent type="StepIn" uniqueid="30000" event="script" value="viptrolls.lua"/>
 
try this script brother
in movements/script
viptp.lua
Code:
function onStepIn(cid, item, position, fromPosition)
    local posa = {x = 1000, y = 1000, z = 7} -- Temple
    local posb = {x = 2000, y = 2000, z = 7} -- Vip Area
    if isPlayer(cid) then
        if (getPlayerStorageValue(cid, 35498) >= 1 and item.actionid == 5340)    then
                doTeleportThing(cid, posb, false)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You're welcome VIP member.")
        else
                doTeleportThing(cid, posa, false)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You're not VIP member.")
        end
    end
    return TRUE
end

in movements.xml
Code:
<movevent type="StepIn" itemid="5340" actionid="5340" event="script" value="viptp.lua"/>

and add unique id and action id to tp in rme same as itemid and actionid
 
Back
Top