local CreaturePositions = {
{ x = 31827, y = 32246, z = 6, stackpos = 253 },
{ x = 31826, y = 32247, z = 6, stackpos = 253 },
{ x = 31826, y = 32248, z = 6, stackpos = 253 },
{ x = 31826, y = 32249, z = 6, stackpos = 253 },
{ x = 31826, y = 32250, z = 6, stackpos = 253 },
{ x = 31828, y = 32247, z = 6, stackpos = 253 },
{ x = 31828, y = 32248, z = 6, stackpos = 253 },
{ x = 31828, y = 32249, z = 6, stackpos = 253 },
{ x = 31828, y = 32250, z = 6, stackpos = 253 },
} ;
local CreatureDestinations = {
{ x = 31824, y = 32240, z = 6 },
{ x = 31824, y = 32239, z = 6 },
{ x = 31825, y = 32238, z = 6 },
{ x = 31828, y = 32238, z = 6 },
{ x = 31829, y = 32239, z = 6 },
{ x = 31829, y = 32242, z = 6 },
{ x = 31828, y = 32243, z = 6 },
{ x = 31825, y = 32243, z = 6 },
{ x = 31824, y = 32242, z = 6 },
} ;
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerGroupId(cid) < 3 then
doPlayerSendTextMessage(cid, 19, "Only staff members can initiate events! Get into position, thank you!") ;
else
for i = 1, #CreaturePositions do
local creature = getThingFromPos(CreaturePositions[i]) ; if isPlayer(creature) then
doTeleportThing(creature.uid, CreatureDestinations[i], false) ;
doSendMagicEffect(CreaturePositions[i], CONST_ME_POFF) ;
doSendMagicEffect(CreatureDestinations[i], CONST_ME_ENERGYAREA) ;
end ;
end ;
end ; return true ;
end ;