Ir para conteúdo

GODHalf

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    GODHalf deu reputação a Vodkart em SISTEMA !AUTOLOOT   
    ela não existe mais, no caso tem que passar o arquivo de MODS para lua, digamos todos, seja talkaction, creaturescript, etc... Todos com arquivos individuais...
    @TOPIC
     
    no caso do npc dele não estava bugado, mas sim o sistema de bank no serve kkkk
     
    era só ir em config.lua e deixar essa linha ativada:
     
    bankSystem = true -- Ativar banksystem  
  2. Gostei
    GODHalf deu reputação a Tricoder em [TFS 1.x] AutoLoot System   
    SCREENSHOT
    http://3.1m.yt/Zwo99Sdx.png
    http://4.1m.yt/oG_cwli8u.png
    ______________________________________________ COMANDOS
    !autoloot add, itemId ou name -- Adicionando um item na lista !autoloot remove, itemId or name -- Remover um item da lista !autoloot show -- Mostrar a lista do autoLoot !autoloot clear -- Limpar a lista do autoLoot ______________________________________________ SCRIPT data/global.lua
    -- AutoLoot config AUTO_LOOT_MAX_ITEMS = 5 -- Reserved storage AUTOLOOT_STORAGE_START = 10000 AUTOLOOT_STORAGE_END = AUTOLOOT_STORAGE_START + AUTO_LOOT_MAX_ITEMS -- AutoLoot config end talkactions/talkactions.xml
    <talkaction words="!autoloot" separator=" " script="autoloot.lua"/> talkactions/scripts/autoloot.lua
    function onSay(player, words, param) local split = param:split(",") local action = split[1] if action == "add" then local item = split[2]:gsub("%s+", "", 1) local itemType = ItemType(item) if itemType:getId() == 0 then itemType = ItemType(tonumber(item)) if itemType:getId() == 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "There is no item with that id or name.") return false end end local itemName = tonumber(split[2]) and itemType:getName() or item local size = 0 for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do local storage = player:getStorageValue(i) if size == AUTO_LOOT_MAX_ITEMS then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "The list is full, please remove from the list to make some room.") break end if storage == itemType:getId() then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, itemName .." is already in the list.") break end if storage <= 0 then player:setStorageValue(i, itemType:getId()) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, itemName .." has been added to the list.") break end size = size + 1 end elseif action == "remove" then local item = split[2]:gsub("%s+", "", 1) local itemType = ItemType(item) if itemType:getId() == 0 then itemType = ItemType(tonumber(item)) if itemType:getId() == 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "There is no item with that id or name.") return false end end local itemName = tonumber(split[2]) and itemType:getName() or item for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do if player:getStorageValue(i) == itemType:getId() then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, itemName .." has been removed from the list.") player:setStorageValue(i, 0) return false end end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, itemName .." was not founded in the list.") elseif action == "show" then local text = "-- Auto Loot List --\n" local count = 1 for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do local storage = player:getStorageValue(i) if storage > 0 then text = string.format("%s%d. %s\n", text, count, ItemType(storage):getName()) count = count + 1 end end if text == "" then text = "Empty" end player:showTextDialog(1950, text, false) elseif action == "clear" then for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do player:setStorageValue(i, 0) end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "The autoloot list has been cleared.") else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Use the commands: !autoloot {add, remove, show, clear}") end return false end creaturescripts/creaturescripts.xml
    <event type="kill" name="AutoLoot" script="autoloot.lua" /> creaturescripts/scripts/autoloot.lua
    local function scanContainer(cid, position) local player = Player(cid) if not player then return end local corpse = Tile(position):getTopDownItem() if not corpse then return end if corpse:getType():isCorpse() and corpse:getAttribute(ITEM_ATTRIBUTE_CORPSEOWNER) == cid then for i = corpse:getSize() - 1, 0, -1 do local containerItem = corpse:getItem(i) if containerItem then for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do if player:getStorageValue(i) == containerItem:getId() then containerItem:moveTo(player) end end end end end end function onKill(player, target) if not target:isMonster() then return true end addEvent(scanContainer, 100, player:getId(), target:getPosition()) return true end creaturescripts/scripts/login.lua
    player:registerEvent("AutoLoot") ______________________________________________ CRÉDITOS
    Printer
  3. Obrigado
    GODHalf deu reputação a Ments em Procurando Spriter's - Projeto Naruto 2018   
    Tem sprites de naruto na pespectiva do tibia muito fácil de se encontrar na internet, se quiser posso lhe enviar as que possuo, abraços e boa sorte.
  4. Curtir
    GODHalf deu reputação a WooX em (Resolvido)Não reconhece acentos   
    É ao contrario, ele tem que mudar para ANSI. @GODHalf altera para ANSI utilizando notepad++.
     

  5. Gostei
    GODHalf deu reputação a Wend em [Link Quebrado]Pokémon Dash v6 open source   
    ►Hoje estou trazendo aqui para vocês o download do pokemon dash v6 open source!
     
    ►Lista dos sistemas, lembrando o servidor não contem level system
    v1.0



    v2.0



    v3.0 beta



    v4.0



    v5.0



    v6.0



     
    ► O servidor pode ser desatualizado próximo ao pda porem o Dash v6 é \/



     
    ► Antes de falarem ctrl +c ctrl+v leia \/



     
    ► Download - no download contem client + server + sources !
    http://www.4shared.com/rar/VPIc8EeQba/servidor_pokemon_dash_v6.html? ► uma img para terem noção do que estão baixando



     
    ► Scan

     
    ► Créditos
    Brun123 por ums 92% do servidor Snix ajustou varios bugs no source, e compilou o executavel etc...
  6. Gostei
    GODHalf deu reputação a ViitinG em Monstro Editor / Monster Editor / Monster Maker   
    O tópico foi movido para a área correta, preste mais atenção da próxima vez!
    Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

    Este tópico foi movido:
    De: "OTServ → Suporte OTServ → Suporte de Scripts"
    Para: "OTServ → Suporte OTServ → Suporte de Programação"

Informação Importante

Confirmação de Termo