LUA:
local t, event = {
from = {x=779, y=805, z=5},
to = {x=788, y=814, z=5}
}
function onStepIn(cid, item, position, fromPosition)
for x=t.from.x, t.to.x do
for y=t.from.y, t.to.y do
for z=t.from.z, t.to.z do
local v = getTopCreature({x=x, y=y, z=z}).uid
if isPlayer(v) then
if getPlayerStorageValue(cid, 1501) == -1 then
setPlayerStorageValue(cid, 1501, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "x")
end
end
end
end
end
end