For some reason item can still be moved, idk why.
It worked perfect on TFS 1.5 while TFS 1.4.2 react weird.
Maybe you guys can see the problem here
It worked perfect on TFS 1.5 while TFS 1.4.2 react weird.
Maybe you guys can see the problem here
Lua:
local ids = {9999, 6000}
local ec = EventCallback
ec.onMoveItem = function(self, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if table.contains(ids, item:getActionId()) and toPosition.x ~= CONTAINER_POSITION then
self:sendTextMessage(MESSAGE_INFO_DESCR, 'This item can not be moved.')
return RETURNVALUE_NOTPOSSIBLE
end
return RETURNVALUE_NOERROR
end
ec:register()
Last edited: