Results 1 to 3 of 3

Thread: Contador de Task.

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Contador de Task.

    alguém poderia criar ou disponibilizar uma HUD que conta os monstros da task?
    tipo, eu to fazendo pirate task, e qeria uma HUD qe calculava quantos monstros eu matei, e somar, porque a task dos piratas tem qe ser 3mil pirates nao importa qual... daê somar tudo, pra ver quantos tem....
    obg.

    att~~
    matheusraul

  2. #2
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    PHP Code:

    local SCREEN_X
    SCREEN_Y 100315 
    local CONSIDER_MONSTERS 
    = {"Pirate Cuthroath""Pirate Buccaneer""Pirate Marauder""Pirate Corsair""Pirate Ghost"}
    function 
    formatstaminaintotime(staminaAmount)
        if 
    staminaAmount == 0 then
            
    return "00:00"
        
    else
            
    local nHours string.format("%02.f"math.floor(staminaAmount/60))
            
    local nMins string.format("%02.f"math.floor(staminaAmount - (nHours*60)))
            return 
    nHours..":"..nMins
        end
    end
    local SCRIPT_INFO 
    "Name: Task Helper\nVersion: 1.3.1\nAuthor: Ropiderz" 
    local SERVER_LOG_MSG getmessages("Server Log"
    local SERVER_LOG_MSG_COUNTKILLED_CREATURES SERVER_LOG_MSG.count 1
    for INDEX 0SERVER_LOG_MSG_COUNT do 
        if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find('Loot of a') and SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].type == 19then 
            
    for _MONSTER in ipairs(CONSIDER_MONSTERS) do 
                if (
    SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT INDEX].text:find(MONSTER:lower())) then 
                    KILLED_CREATURES 
    KILLED_CREATURES 
                end 
            end 
        end 
    end
        setfontcolor
    (rgbcolor(2105525))
    addtext('Pirates:   ' .. KILLED_CREATURES .. ''20310

    Obrigatório ter RopiderZ Library!
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  3. #3
    iBot User
    Join Date
    Feb 2015
    Posts
    10
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    2
    queria saber a condiçao pra ir label... tipo
    if Killed_count >= 200
    gotolabel ("hunt")

    soh q nao to conseguindo de jeito nenhum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •