Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 04/22/23 em todas áreas

  1. GamerGoiano

    (Bug) AutoLoot

    @raulcdj Deve resolver o problema de vcs local toloot = {11441, 11442, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS local useSpecific = false --True para lotear somente os itens que estiverem na tabela toloot, false para todos os itens do corpse function onUse(cid, item, frompos, item2, topos) local corpseOwner = getItemAttribute(item.uid, "corpseowner") if corpseOwner and corpseOwner ~= cid then doPlayerSendCancel(cid, "Você não é o proprietário.") return true end local items = {} for x = (getContainerSize(item.uid) - 1), 0, -1 do local k = getContainerItem(item.uid, x) table.insert(items, {i=k.itemid, q=k.type}) doRemoveItem(k.uid) end if #items == nil then return false end for y=1, #items do -- Verifica se o item está na tabela toloot ou se useSpecific é false if useSpecific == false or table.contains(toloot, items[y].i) then doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end end return true end
    1 ponto
  2. GamerGoiano

    (BUG) Revive

    @BrunooMaciell revivendo o tópico pq um amigo meu está com o mesmo problema -- Verifica se a pokebola é ultraball, masterball ou superball if item2.itemid == ULTRABALL_ID or item2.itemid == MASTERBALL_ID or item2.itemid == SUPERBALL_ID then -- Se for, mantém o mesmo tipo de pokebola após o uso do item Revive doTransformItem(item2.uid, item2.itemid) else -- Se não for, transforma em uma pokebola simples doTransformItem(item2.uid, POKEBALL_ID) end
    1 ponto
Líderes está configurado para São Paulo/GMT-03:00
×
×
  • Criar Novo...