Hi guys
how to make this part of script ignor slot (5 and 6) its the hands
its in this line for i=1,9 do but i dont know how to do it
i tried to do somehting like this
.
.
.
how to make this part of script ignor slot (5 and 6) its the hands
Code:
function equip(cid,item,slot)
local t = {}
if item then
local mm,sinal,qto = getSlotType(getItemName(item.uid))
t[mm] = tonumber(qto)
end
for i=1,9 do
if i ~= slot then
if getPlayerSlotItem(cid,i).itemid ~= 0 then
local aab = getPlayerSlotItem(cid,i).uid
if aab and check2(cid,i) then
for _ in getItemName(aab):gmatch('(%[.-%])') do
local mm,sinal,qto2 = getSlotType(_)
if mm then
if not t[mm] then
t[mm] = 0
end
t[mm] = t[mm]+tonumber(qto2)
t[mm] = t[mm] > 100 and 100 or t[mm]
end
end
end
end
end
its in this line for i=1,9 do but i dont know how to do it
i tried to do somehting like this
but it just work with the last line :Sfor i=1,4 do
for i=7,9 do
.
.
.