Ir para conteúdo

blasterkid

Membro
  • Registro em

  • Última visita

  1. Ok. Desculpe, vou editar e corrigir colocando os 2 codigos completos creaturescripts e Lib .
  2. Estou tendo um problema ao um script de AutoGold. O script funciona porem gera o seguinte erro no console TFS 1.2 - Protocolo 10.96 O Scripts: creaturescripts: function onKill(cid, target, lastHit) local target_pos,target_name = getCreaturePosition(target),getCreatureName(target) addEvent(executeAutoGold, 1000, cid, target_pos, target_name) local loots = {2148, 2152, 2160} if lastHit and getPlayerStorageValue(cid, 30001) == 1 then addEvent(corpseRetireItems, 100, getCreaturePosition(target), cid, loots) end return true end Lib: AUTO_LOOT_TAX = 0 -- Tax for using the service (in %) (min 0, max 100) AUTO_LOOT_BANK = false -- Will the money go to the bank? If false, the money will go to the player AUTO_LOOT_STORAGE = 38199 -- Storage of the status of the Auto Loot function findItemsInContainer(ids, container) local items_found = {} local v_uids = {} for i = 0, getContainerSize(container)-1 do container_item = getContainerItem(container, i) if isContainer(container_item.uid) then local container_recursive = findItemsInContainer(ids, container_item.uid) for a, b in ipairs(container_recursive) do if not isInArray(v_uids, b.uid) then table.insert(v_uids, container_item.uid) table.insert(items_found, b) end end end if isInArray(ids, container_item.itemid) and not isInArray(v_uids, container_item.uid) then table.insert(v_uids, container_item.uid) table.insert(items_found, container_item) end end return items_found end function executeAutoGold(cid, pos, target_name) AUTO_LOOT_TAX = AUTO_LOOT_TAX > 100 and 100 or AUTO_LOOT_TAX < 0 and 0 or AUTO_LOOT_TAX local corpse = getTileItemByType(pos, ITEM_TYPE_CONTAINER).uid local total_count = 0 for a, b in ipairs(findItemsInContainer({ITEM_GOLD_COIN, ITEM_PLATINUM_COIN, ITEM_CRYSTAL_COIN}, corpse)) do if b.itemid == ITEM_CRYSTAL_COIN then total_count = total_count+b.type*10000 elseif b.itemid == ITEM_PLATINUM_COIN then total_count = total_count+b.type*100 elseif b.itemid == ITEM_GOLD_COIN then total_count = total_count+b.type end doRemoveItem(b.uid, b.type) end if AUTO_LOOT_BANK then doPlayerSetBalance(cid, getPlayerBalance(cid)+math.ceil(total_count*(1-AUTO_LOOT_TAX/100))) else doPlayerAddMoney(cid, math.ceil(total_count*(1-AUTO_LOOT_TAX/100))) end return true end Erro Gerado no console: . Grato.
  3. blasterkid reagiu a uma resposta no tópico: ID de todos os itens
  4. L3K0T reagiu a uma resposta no tópico: [Resolvido] BUG Database.
  5. Amigo não sei se Voce já conseguiu resolver seu problema. Se não conseguiu tenta isso
  6. blasterkid postou uma resposta no tópico em Suporte Tibia OTServer
    Não é isso não caro xxxcrimsxxx Fooi a primeira coisa que verifiquei.
  7. blasterkid postou uma resposta no tópico em Suporte Tibia OTServer
    Ola Galera do bem,​ compilei um novo distro 8.60 TFS 0.4_DEV rev3884 Compilou normalmente mas quando vou abrir o executável da o seguinte erro http://imageshack.us.../errodistro.jpg Sera que alguém sabe o que pode estar errado. Fico muito grato se tiver alguma ajuda.
  8. Vlws xFatality mas essa foi a primeira coisa que verifiquei. Até porque se eu colocar outro distro funciona só não funciona os que eu compilo.
  9. Ola Galera do TK compilei um novo distro me auxiliando do tutorial: http://tibiaking.com...rv-no-windowns/ Compilou normalmente mas quando vou abrir o executável da o seguinte erro http://imageshack.us.../errodistro.jpg Sera que alguém pode informar o que pode estar faltando. Fico muito grato se tiver alguma ajuda.
  10. blasterkid reagiu a uma resposta no tópico: Soul System
  11. Show de bola MaX, excelente sistema...Top 10 Aqui pra mim funcionou mas fica aparecendo isso quando carrego o distro [02/10/2012 10:55:04] Duplicate uniqueId 17530 [02/10/2012 10:55:04] Duplicate uniqueId 17531 Isso não ta interferindo em nada mas se for possível me dizer o que ta acontecendo acho que deve ser coisa simples.

Informação Importante

Confirmação de Termo