function onUse(cid, item, fromPosition, itemEx, toPosition)
player1pos = {x=429, y=453, z=7, stackpos=253}
player2pos = {x=428, y=453, z=7, stackpos=253}
player3pos = {x=427, y=453, z=7, stackpos=253}
player4pos = {x=426, y=353, z=7, stackpos=253}
player5pos = {x=425, y=353, z=7, stackpos=253}
player1 = getThingfromPos(player1pos)
player2 = getThingfromPos(player2pos)
player3 = getThingfromPos(player3pos)
player4 = getThingfromPos(player4pos)
player5 = getThingfromPos(player5pos)
nplayer1pos = {x=447, y=429, z=7}
nplayer2pos = {x=446, y=429, z=7}
nplayer3pos = {x=445, y=429, z=7}
nplayer4pos = {x=444, y=429, z=7}
nplayer5pos = {x=443, y=429, z=7}
if item.uid == 5555 and item.itemid == 1945 then
if player1.itemid == TRUE and player2.itemid == TRUE and player3.itemid == TRUE and player4.itemid == TRUE and player5.itemid == TRUE then
if isPlayer(player1.uid) and isPlayer(player2.uid) and isPlayer(player3.uid) and isPlayer(player4.uid) and isPlayer(player5.uid) then
doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)
doTeleportThing(player3.uid,nplayer3pos)
doTeleportThing(player4.uid,nplayer4pos)
doTeleportThing(player5.uid,nplayer5pos)
doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)
doSendMagicEffect(player3pos,2)
doSendMagicEffect(player4pos,2)
doSendMagicEffect(player5pos,2)
doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)
doSendMagicEffect(nplayer3pos,10)
doSendMagicEffect(nplayer4pos,10)
doSendMagicEffect(nplayer5pos,10)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendTextMessage(cid,22,"You need five player for this quest.")
end
else
doPlayerSendCancel(cid,"You need five player for this quest.")
end
elseif item.uid == 5555 and item.itemid == 1946 then
if getPlayerAccess(cid) > 1 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible")
end
end
return TRUE
end