local function setFrames()
for _, container in pairs(g_game.getContainers()) do
local window = container.itemsPanel
for i, child in pairs(window:getChildren()) do
local id = child:getItemId()
local price = 0
local name = child:getTooltip()
child:setImageSource("/images/ui/item")
if (name) then
print("name: " .. name)
if (string.find(name, "epic")) then
child:setImageSource('/images/ui/rarity_gold')
elseif (string.find(name, "axe")) then
child:setImageSource('/images/ui/rarity_purple')
elseif (string.find(name, "rare")) then
child:setImageSource('/images/ui/rarity_blue')
end
end
end
end
end