• 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!

from 0.4 to tfs 1.3

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
Code:
            function doAddCopiedContainer(it, new) --By Doggynub
                    local uid,its,news = it.uid, {},{}
                    local size = getContainerSize(uid)
                    local test = {}
                    for i = 0, size-1 do
                            local item = getContainerItem(uid,i)
                            table.insert(test,{item, item.type})
                            if isContainer(item.uid) then
                                    table.insert(its,item)
                            end
                    end
          
                    for i = #test,1,-1 do
                            local call = test[i]
                            local ufg = doAddContainerItem(new,call[1].itemid,(call[2] < 1 and 1 or call[2]) )
                            if isContainer(ufg) then
                                    table.insert(news,ufg)
                            end
                    end
                    for i = 1,#its do
                            doAddCopiedContainer(its[i], news[i])
                    end
                    return true
            end
this script is mostly working but i get this error somewhy

hqjcJSE


d62096bddba76edc26e779a507b7466b
 
Back
Top