Olá!
Primeiramente boa madrugada! [04:31]
Seguinte eu preciso de uma ajuda em um script ...
O script se consiste em ser uma Spell Bar, mas estou tendo dificuldade em alterar os ícones na barra!
ela está direcionada para "/images/game/spells/defaultspells" e gostaria de usar ícones separados!!
Exemplo:
Ela está configurada para usar estes ícones;
E gostaria de usar ícones separados assim;
Aqui está o script configurado:
icon:setId('spell'..i)
local spicon = Spells.getClientId(tabela[i].instantName)
icon:setImageSource('/images/game/spells/defaultspells')
icon:setImageClip((((spicon -1)%12)*32) .. ' ' .. ((math.ceil(spicon/12)-1)*32) .. ' 32 32')
icon:setVisible(true)
icon.words = tabela[i].words
icon.instantName = tabela[i].instantName
icon.lvl = tabela[i].lvl
icon.mana = tabela[i].mana
icon.exhaustion = tabela[i].exhaustion
icon.exhaustionNeeded = 0
icon:setTooltip(tabela[i].words)
if lado == 'horizontal' then
icon:setMarginTop(3)
height = 38
width = (i) * 32 + 2*(i)
icon:setMarginLeft((i) * 32 + 2*(i) - 32)
else
icon:setMarginLeft(3)
icon:setMarginTop((i) * 32 + 2*(i) - 32)
width = 38
height = (i) * 32 + 2*(i)
end
Muito Obrigado pela ajuda!
-