Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: HUD Task

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    HUD Task

    I need one HUD to count how many "monsters" I've ever killed
    For my tasks.



    Thanks

  2. #2
    Normal User
    Join Date
    Sep 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Code:
    local SCREEN_X, SCREEN_Y = 15, 300 
    local CONSIDER_MONSTERS = {"Necromancer", "Priestess"} -- can add more 
    
    --[[ ENGINE ]]-- 
    local SCRIPT_INFO = "Name: Task Helper\nVersion: 1.3.1\nAuthor: Ropiderz" 
    local SERVER_LOG_MSG = getmessages("Server Log") 
    local SERVER_LOG_MSG_COUNT, KILLED_CREATURES = SERVER_LOG_MSG.count - 1, 0 
    for INDEX = 0, SERVER_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 == 19) then 
            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 + 1 
                end 
            end 
        end 
    end 
    addtext('Currently killed ' .. KILLED_CREATURES .. ' Monsters', SCREEN_X, SCREEN_Y)

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    not work man =/
    Last edited by demonhado; 01-02-2013 at 02:43 PM.

  4. #4
    Normal User
    Join Date
    Jul 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Working... lol
    "Currently killed 1410 Monters"

    Ty for HUD

  5. #5
    Normal User
    Join Date
    Jul 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    no need library?

  6. #6
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    nice, it works great with all minotaurs

    just wondered, how can i change the color of text? here its green :P
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  7. #7
    Normal User koncus9's Avatar
    Join Date
    Aug 2012
    Location
    Guardia
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    works fine. thx ;]

  8. #8
    Normal User
    Join Date
    May 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Here count +1 EX. i'm kill one monster necromancer...count one. i'm kill priestess count twoo. !! oO' bug? Tanks

  9. #9
    iBot User
    Join Date
    Oct 2012
    Posts
    198
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    18
    Rep Power
    5
    Quote Originally Posted by Vidaloka. View Post
    Code:
    local SCREEN_X, SCREEN_Y = 15, 300 
    local CONSIDER_MONSTERS = {"Necromancer", "Priestess"} -- can add more 
    
    --[[ ENGINE ]]-- 
    local SCRIPT_INFO = "Name: Task Helper\nVersion: 1.3.1\nAuthor: Ropiderz" 
    local SERVER_LOG_MSG = getmessages("Server Log") 
    local SERVER_LOG_MSG_COUNT, KILLED_CREATURES = SERVER_LOG_MSG.count - 1, 0 
    for INDEX = 0, SERVER_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 == 19) then 
            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 + 1 
                end 
            end 
        end 
    end 
    addtext('Currently killed ' .. KILLED_CREATURES .. ' Monsters', SCREEN_X, SCREEN_Y)
    It wont work if you hunt in banuta and wanna monitor number of medusa because if a hydra drops Medusa Shield, it will count it as 1 (that is what I got)

  10. #10
    iBot User
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks man!! really works for me!

Tags for this Thread

Posting Permissions

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