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

BUG in .LUA - doRemoveItem(getItem.uid,getItem.type)

rexgandi

Member
Joined
Oct 22, 2011
Messages
189
Reaction score
9
Hello,
I have a problem with the script that takes addon items and gives outfit.
When I put addon items which has count (100 minotaur leatcher or others ) work perfect.
But when I put Crown Armor or Sniper Gloves (this item no have slot type) don't work.
Maybe I have bad functions? For what she is responsible ?:
Code:
getAddonItems.type then
This is local when i have a data:
Lua:
     {
        which="First",
        name="Hunter",
        addon = 1,
        outfits = {129,137},
        storage=9103,
        items = {
            {5785, 1} -- Sniper Gloves
            }
        },
I think, maybe in this line i must something change? :

Lua:
local getAddonItems = getThingfromPos({x=config.itemsPos[1],y=config.itemsPos[2],z=config.itemsPos[3],stackpos=config.stackpos[j]})
                if getAddonItems.itemid > 0 then
                    if addon.items[i][1] == getAddonItems.itemid and addon.items[i][2] == getAddonItems.type then
                        getItems = getItems+1
                        break
                    end
                end
            end
            if getItems == needItems then
                addonID = id
                break
            end
        end
    end

Or in this line:

Code:
 if addonID ~= 0 then
        if getPlayerStorageValue(cid,addons[addonID].storage) == -1 then
            for i=1,getItems do
                local getItem = getThingfromPos({x=config.itemsPos[1],y=config.itemsPos[2],z=config.itemsPos[3],stackpos=1})
                if getItem.itemid > 0 then
                    doRemoveItem(getItem.uid,getItem.type)
                else
                    break
                end
            end

Please helpme! Rep++
 
Use my script as an example.
 
Use my script as an example.
Ok. But on this function i Can add 1 position and do player 1 addon.
I need 1 position, and 1 lever to all addons. You have that script?
 
Back
Top