• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua OtClient lua function.

masterqwerty

New Member
Joined
Mar 25, 2012
Messages
20
Reaction score
0
Hello Otlanders! I have this function:

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!
 
Hmm, but if I using hotkey then too do not see it. So if are you sure, maybe I can do it from server? TFS has such a function?

I know that I can find items, but if I can to replace them?
 
Last edited:
Back
Top