function onUse(cid, item, frompos, item2, topos)
if item.uid == 1380 then
if item.itemid == 1946 then
player1pos = {x=235, y=113, z=7, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=234, y=113, z=7, stackpos=253}
player2 = getThingfromPos(player2pos)
if player1.itemid > 0 and player2.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
questlevel = 180
if player1level >= questlevel and player2level >= questlevel then
--if 1==1 then
nplayer1pos = {x=272, y=97, z=8}
nplayer2pos = {x=273, y=97, z=8}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
else
doPlayerSendCancel(cid,"All players must have level 180 to enter")
end
else
doPlayerSendCancel(cid,"Sorry, you need to be 2 players in your team.")
end
end
doTransformItem(item.uid,1946)
end
return 1
end