Postado Abril 3, 2018 7 anos é só adicionar nessa tabela. Ele só aumenta o atributo se ele já existir. for key, value in pairs(self.attributes) do if getItemAttribute(self.item.uid, key) ~= nil or self.item[key] ~= 0 then doItemSetAttribute(self.item.uid, key, (self.item.level > 0 and getItemAttribute(self.item.uid, key) or self.item[key]) + value) end end Se você tiver esse atributo em itens que não sejam shield, vc faz outro if pra verificar se o type é shield.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.