local training_locations = {
{1000, 1000, 7},
{1000, 1000, 7},
{1000, 1000, 7}
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
for i = 1, #training_locations do
local temp_position = {x = training_locations[i][1], y = training_locations[i][2], z = training_locations[i][3]}
if not isPlayer(getTopCreature(temp_position).uid) then
doTeleportThing(cid, temp_position)
return true
end
end
doTeleportThing(cid, fromPosition)
return true
end