• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

RevScripts teleport with lever

bpm91

Active Member
Joined
May 23, 2019
Messages
455
Solutions
7
Reaction score
44
Location
Brazil
hi, i use nekiro 7.72 tfs 1.5
but i have one script tfs 0.4 and no work, i not teleport
is script of kazordoon elevator, can anybody help me? he doesn't teleport me

Lua:
function onUse(cid, item, frompos, item2, topos)
uppos = {x=32636, y=31881, z=2, stackpos=1}
up1pos = getThingfromPos(uppos)
downpos = {x=32636, y=31881, z=7, stackpos=1}
down1pos = getThingfromPos(downpos)

if item.itemid == 1945 then
    if isPlayer(cid) == TRUE then
    doTeleportThing(down1pos.uid, uppos)
    end
doSendMagicEffect(downpos, 11)
doSendMagicEffect(uppos, 11)
doTransformItem(item.uid,item.itemid+1)

elseif item.itemid == 1946 then
    if isPlayer(cid) == TRUE then
    doTeleportThing(up1pos.uid, downpos)
    end
doSendMagicEffect(downpos, 11)
doSendMagicEffect(uppos, 11)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end
 
Top