masterqwerty
New Member
- Joined
- Mar 25, 2012
- Messages
- 20
- Reaction score
- 0
Hello Otlanders! I have this function:
It's work good, but container must be open. How I can use it from closed backpack? It's a possible?
Thanks and Regards!
Code:
function amulet()
local ss = 2197
local slotPos = {x = 65535, y = 2, z = 0}
for i, container in pairs(g_game.getContainers()) do
for _i, item in pairs(container:getItems()) do
if item:getId() == ss then
g_game.move(item, slotPos, item:getCount())
end
end
end
end
It's work good, but container must be open. How I can use it from closed backpack? It's a possible?
Thanks and Regards!