• 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 check item in container

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
how to check if inside containers have items??


tried:

LUA:
local i = 0
    local v = getContainerItem(uid, i)   
    if item and item:isContainer() then
        if v ~= 0 then
            print(v)
    self:getPosition():sendMagicEffect(CONST_ME_POFF)
            return   
        end
    end

no work


tfs 1.2
 
Back
Top