local protectedArea = {
from = Position(3197, 1807, 7),
to = Position(3198, 1811, 7)
}
local ec = EventCallback
function ec.onMoveItem(player, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if fromPosition.x == CONTAINER_POSITION then
fromPosition = item:getTopParent():getPosition()
end
if fromPosition:isInRange(protectedArea.from, protectedArea.to) then
player:sendTextMessage(MESSAGE_INFO_DESCR, "iwi")
return false
end
return true
end
ec:register(-666)