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 ?:
This is local when i have a data:
I think, maybe in this line i must something change? :
Or in this line:
Please helpme! Rep++
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
Lua:
{
which="First",
name="Hunter",
addon = 1,
outfits = {129,137},
storage=9103,
items = {
{5785, 1} -- Sniper Gloves
}
},
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++