Results 1 to 7 of 7

Thread: Kill Counter not counting Pharaohs

  1. #1
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5

    Kill Counter not counting Pharaohs

    Using this KillCounter and it works great, however when I try to add Vash~ it shows, but doesn't actually count how many I kill.

    Any help would be greatly appreciated.

    I have spelled it right, ~Loot of Vashresamun: a blue note, 20 gold coins, 100 gold coins

    --[[ 
    Name: Kill Counter HUD by Ropiderz
    Version: v1.0.0
    Status: Works
    TODO:
    ]]--


    local SCREEN_X, SCREEN_Y = 100, 40
    local CONSIDER_MONSTERS = {"Vashresamun", "Pharaoh"}

    --[[ ENGINE ]]--
    setfontcolor("red")
    local SCRIPT_INFO = "Name: Task Helper\nVersion: 1.3.1\nAuthor: Ropiderz"
    local SERVER_LOG_MSG = getnewmessages("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:lower():find(MONSTER:lower())) then
    KILLED_CREATURES = KILLED_CREATURES + 1
    end
    end
    end
    end
    addtext('Killed ' .. KILLED_CREATURES .. ' Vashresamun', SCREEN_X, SCREEN_Y)


    EDIT: Feel the need to say I tried changing
    if (SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT - INDEX].text:find('Loot of a')
    to ('Loot of') and ('Loot of ') but no luck!
    Last edited by Ropiderz; 03-23-2013 at 12:31 AM.

  2. #2
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    No, it still doesn't count how many I've killed.

  3. #3
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    Still not counting Vashresamun for me :s
    Restarted iBot aswell to make sure.

    Thanks for trying to help though, appreciate it pal!
    Last edited by Nydaa; 03-23-2013 at 01:01 AM.

  4. #4
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    No you have, like I said the counter itself works 100% I use it on some scripts where I task etc.

    It's just not working with Vashresamun, it might not work with any Pharaoh..

  5. #5
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    how so? Changing the line 'Loot of a' to 'a blue note'?

    If you mean this, it doesn't work. It's no biggie if it won't work at all it'd just be nice to have

  6. #6
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    Nice idea, but nope!
    It's no problem anyway xd

    Vou dormir, mto cansado e tenho trabalha em 6h. Boa noite e obg!

  7. #7
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    temporary fix if anyone is interested~

    Add "Monitor My Hunting" and it will show 'a blue note' as "unknown" and it automatically sets value to 1 so it's almost like a kill counter \o/

Posting Permissions

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