Ir para conteúdo

Etherious

Membro
  • Registro em

  • Última visita

Tudo que Etherious postou

  1. Boa noite estou com um pequeno erro nesta linha queria saber se alguem consegue me ajudar ? for x = 1, colored do r = spriter:ReadByte() g = spriter:ReadByte() b = spriter:ReadByte() color = sprite:colorAllocate(r, g, sprite:setPixel(pixel%32), math.floor(pixel/32), color) pixel = pixel + 1 end end erro : bad arguments #3 to 'setPixel' (number, expected, got nil) seria algo relacionado a estruturação do setpixel, alguem poderia me dizer como fazer essa linha funcionar corretamente
  2. Etherious postou uma resposta no tópico em Recursos Avançados
    Boa noite, estou tendo dificuldade em uma linha de codigo, alguem poderia me ajudar ? color = sprite:colorAllocate(r, g, b, sprite:SetPixel(pixel%32), math.floor(pixel/32), color) toda vez que tendo rodar da esse erro : attempt to call method 'SetPixel' (a nil value) stack traceback: Alguem poderia me ajudar a arrumar essa linha de codigo, Grato!!
  3. function onUse(cid, item, frompos, item2, topos) if isWatchingTv(cid) then return true end local quemMatou = getItemAttribute(item.uid, "corpseowner") if quemMatou then local player = getCreatureByName(quemMatou) if isPlayer(player) then local isInParyWithPlayer = false if isInParty(cid) and isInParty(player) then isInParyWithPlayer = isPartyEquals(player, cid) end if getCreatureName(cid) ~= getCreatureName(player) and not isInParyWithPlayer then doPlayerSendCancel(cid, "Você não pode abrir um loot que não é seu.") return true end end end local autoLootList = getAllItensInMyList(cid) local bag = getPlayerSlotItem(cid, 3).uid local itemsToRemove = {} if isCollectAll(cid) then for a = 0, getContainerSize(item.uid) do local it = getContainerItem(item.uid, a) if it.uid > 0 then if addItemInFreeBag(bag, it.itemid, it.type) ~= false then table.insert(itemsToRemove, it.uid) end end end end if #autoLootList > 0 and not isCollectAll(cid) then for a = 0, getContainerSize(item.uid) do local it = getContainerItem(item.uid, a) if it.uid > 0 then for i = 1, #autoLootList do if getItemInfo(it.itemid).name == autoLootList then if addItemInFreeBag(bag, it.itemid, it.type) ~= false then table.insert(itemsToRemove, it.uid) end end end end end end if #itemsToRemove > 1 then for i = 1, #itemsToRemove do doChangeTypeItem(itemsToRemove, 1) end end end testa, e me fala se esta removendo do corpse..
  4. Posta o script do autoloot fazendo favor

Informação Importante

Confirmação de Termo