Fabi Marzan
Intermediate OT User
- Joined
- Aug 31, 2020
- Messages
- 170
- Solutions
- 7
- Reaction score
- 104
I can't understand the cylinder, it doesn't allow me to place things inside the container, but when I throw an item into the container it does allow me.
I try to make it block the items outside the container.
Gif Example:

LUA:
local ec = Event()
local ITEM_LOOT_POUCH = 23742
function ec.onMoveItem(player, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if toPosition.x == CONTAINER_POSITION then
local containerTo = toCylinder
if containerTo and containerTo:getId() == ITEM_LOOT_POUCH then
player:sendCancelMessage('Sorry, not possible to place items inside the Loot Pouch.')
return false
end
end
return true
end
ec:register()
I try to make it block the items outside the container.
Gif Example:
