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

Trainers

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Script:
Code:
--
function onUse(cid, item, frompos, item2, topos)
 
tele = {x=42, y=104, z=7}
if item.uid ==2133 then
vocation = getPlayerVocation(cid)
if vocation == 3 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
        doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 4 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
        doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 7 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
        doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 8 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
        doPlayerSendTextMessage(cid, 22, "")
    else
        doPlayerSendCancel(cid,"Voce precisa ser Knight level 30 ou Paladin level 30 para passar.")
    end
    return TRUE
end

Error:
2cb6781c00be59fc190318883f4820a5.jpg
 
Last edited by a moderator:
Try this one, not sure if it works like that tho...
Code:
-- 
function onUse(cid, item, frompos, item2, topos)
 
local tele = {x=42, y=104, z=7}
local vocation = getPlayerVocation(cid)


    if item.uid == 2133 then
        if vocation == 3 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 4 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 7 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 8 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        else
            doPlayerSendCancel(cid,"Voce precisa ser Knight level 30 ou Paladin level 30 para passar.")
        end
    end
    return TRUE
end
 
Last edited by a moderator:
Try this one, not sure if it works like that tho...
Code:
-- 
function onUse(cid, item, frompos, item2, topos)
 
local tele = {x=42, y=104, z=7}
local vocation = getPlayerVocation(cid)


    if item.uid == 2133 then
        if vocation == 3 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 4 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 7 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        elseif vocation == 8 and getPlayerLevel(cid) >= 30 then
            doTeleportThing(cid,tele)
            doPlayerSendTextMessage(cid, 22, "")
        else
            doPlayerSendCancel(cid,"Voce precisa ser Knight level 30 ou Paladin level 30 para passar.")
        end
    end
    return TRUE
end

i was just about to post the same things

USE CODE TAGS
 
Back
Top