function onUse(cid, item, frompos, item2, topos)
if item.uid == 1018 then
player1pos = {x=0000, y=0000, z=0, stackpos=253}
player1 = getThingfromPos(player1pos)
player2pos = {x=0000, y=0000, z=0, stackpos=253}
player2 = getThingfromPos(player2pos)
player3pos = {x=0000, y=0000, z=0, stackpos=253}
player3 = getThingfromPos(player3pos)
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 then
player1level = getPlayerLevel(player1.uid)
player2level = getPlayerLevel(player2.uid)
player3level = getPlayerLevel(player3.uid)
questlevel = 100
if player1level >= questlevel and player2level >= questlevel and player3level >= questlevel then
queststatus1 = getPlayerStorageValue(player1.uid,1018)
queststatus2 = getPlayerStorageValue(player2.uid,1018)
queststatus3 = getPlayerStorageValue(player3.uid,1018)
if queststatus1 == -1 and queststatus2 == -1 and queststatus3 == -1 then
nplayer1pos = {x=0000, y=0000, z=0}
nplayer2pos = {x=0000, y=0000, z=0}
nplayer3pos = {x=0000, y=0000, z=0}
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end