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

Solved HELP Vip Tile Teleport Problem

feslir

New Member
Joined
Sep 2, 2007
Messages
241
Reaction score
2
Location
Kosovo
i want vip tile to teleport a vip player to a location but ive tried to fix it but without succeful

i have 049-vipsys on lib. aswel..
how do i get it to work anyone?
im using vip_time on database



--function by Frankit0--
local newposition = {x=9999, y=9999, z=9} --Place where the player will be teleported IF VIP, change it.

if getVipByAccount(cid) >= 1 then
if(getCreatureStorage(cid,11551) >= 0) then
doPlayerSendTextMessage(cid, 19, "You are VIP, you are allowed to pass.")
doSendMagicEffect(getThingPosition(cid),2)
doTeleportThing(cid, newposition, true)
doSendMagicEffect(newposition,10)
else
doPlayerSendTextMessage(cid, 19, "You are not VIP, you can't pass.")
doTeleportThing(cid, frompos, true)
end
return true
end
 
Try This Bro

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

    local vip = getPlayerVipDays(cid) >= 1 --Vip Storage.
    local back = {x=32346, y=32223, z=7} --Place where non vip is teleported.
        local allowed = {x=19111, y=14664, z=6} --Place where VIPs are teleported.


    if(vip) then
        doCreatureSay(cid, "WELCOME TO VIP!", TALKTYPE_ORANGE_1) 
                doSendMagicEffect(getPlayerPosition(cid),2) 
                doTeleportThing(cid, allowed) 
                doSendMagicEffect(allowed,10)
    else
        doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip! You can get it in our SMS Shop.")
                doTeleportThing(cid, back)
    end
end
 
Try This Bro

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

    local vip = getPlayerVipDays(cid) >= 1 --Vip Storage.
    local back = {x=32346, y=32223, z=7} --Place where non vip is teleported.
        local allowed = {x=19111, y=14664, z=6} --Place where VIPs are teleported.


    if(vip) then
        doCreatureSay(cid, "WELCOME TO VIP!", TALKTYPE_ORANGE_1)
                doSendMagicEffect(getPlayerPosition(cid),2)
                doTeleportThing(cid, allowed)
                doSendMagicEffect(allowed,10)
    else
        doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip! You can get it in our SMS Shop.")
                doTeleportThing(cid, back)
    end
end


it works but it says i dont have vip though i have viptime any idea how i get it to work pls?
 
Last edited:
Try This Bro

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

    local vip = getPlayerVipDays(cid) >= 1 --Vip Storage.
    local back = {x=32346, y=32223, z=7} --Place where non vip is teleported.
        local allowed = {x=19111, y=14664, z=6} --Place where VIPs are teleported.


    if(vip) then
        doCreatureSay(cid, "WELCOME TO VIP!", TALKTYPE_ORANGE_1)
                doSendMagicEffect(getPlayerPosition(cid),2)
                doTeleportThing(cid, allowed)
                doSendMagicEffect(allowed,10)
    else
        doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip! You can get it in our SMS Shop.")
                doTeleportThing(cid, back)
    end
end



i got it working now it works but there is one problem, if a player that isnt VIP enters the ActionID, all players around that tile gets tibia crash why?.
 
SOLVED!

doCreatureSay(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip!.")
This was crashing non vip players tibia client.
 
SOLVED!

doCreatureSay(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip!.")
This was crashing non vip players tibia client.

The code you have posted does not even contain this line instead you have:
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You can't pass because you don't have Vip! You can get it in our SMS Shop.")
Which is right, you cannot combinate Info description with creaturessay function, this will always lead to a debug
 
Back
Top