i made a little teak to GetOrder sub so i can regroup the item types
function GetOrder(item)
--local Orders = { {"Platemail","Plate Helm"}, {"Chain"}, {"Ring"}, {"shield","blucker","Female Plate"} }
local Orders = { {"Platemail","Plate Helm"}, {"Chain"}, {"Ring"} }
local result = nil
--local offset = 5*(math.fmod(3,size))
for k,v in pairs(Orders) do
for k2,v2 in pairs(v) do
print(item)
result = string.find(item,v2)
if result ~= nil then
return k
end
end
end
return 4
end
I would also like to add 5th and 6th type but i am having trouble building the hash code additional types.