• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action [Basic]Staff Teleport

Kaorus

Unleash Dreams Staff
Joined
May 18, 2008
Messages
1,111
Reaction score
41
My first script :)

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local teleport = {x=79, y=97, z=6}
local pos = getCreaturePosition(cid)
 if item.itemid == 9825 and isPlayerPzLocked(cid) and getPlayerAccess(cid) >= 2 then
        doPlayerSendTextMessage(cid,21,"You are a staff member, you can pass")
        doTeleportThing(cid, teleport, TRUE)
        doSendMagicEffect(pos, 10)
        doSendMagicEffect(teleport, 10)
        doTransformItem(item.uid, 9826)
    elseif item.itemid == 9826 and isPlayerPzLocked(cid) and getPlayerAccess(cid) >= 2 then
        doPlayerSendTextMessage(cid,21,"You are a staff member, you can pass")
        doTeleportThing(cid, teleport, TRUE)
        doSendMagicEffect(pos, 10)
        doSendMagicEffect(teleport, 10)
        doTransformItem(item.uid, 9825)
    else  
         doPlayerSendCancel(cid,"You dont are member of the staff.")
  end
return true
end
Is a simple script

Description said:
You use the lever and the member is teleported to "x" pos, but, you need the access and dont had Pz --->This is for tutors, in war, a tutor can use this for leave of the war, but, with this function, is a big fail! :p
 
Back
Top