Hi,
I've come far as this:
The problem i got is that, if i move item to another container on the ground, it does not print("Moved") and when i move it from a container on the ground to my backpack. It does not print. Now it only prints when i move it from bp to ground and from ground to bp. Also it does not print if you move it inside the player which is correct.
I would like to print("Moved") when i move it to a bag in the ground or from a bag which is on the ground
I've come far as this:
Lua:
ec.onItemMoved = function(self, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if item:getId() == 2400 then
if fromPosition.x ~= CONTAINER_POSITION and toPosition.x == CONTAINER_POSITION or fromPosition.x == CONTAINER_POSITION and toPosition.x ~= CONTAINER_POSITION then
print("Moved")
end
end
return true
end
ec:register()
The problem i got is that, if i move item to another container on the ground, it does not print("Moved") and when i move it from a container on the ground to my backpack. It does not print. Now it only prints when i move it from bp to ground and from ground to bp. Also it does not print if you move it inside the player which is correct.
I would like to print("Moved") when i move it to a bag in the ground or from a bag which is on the ground