Results 1 to 8 of 8

Thread: BUG Monster Killed Count

  1. #1
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3

    BUG Monster Killed Count

    i've this script who count how many monsters i killed. But is not working (the number 0 don't increase)!

    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)

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    debug log empty?

  3. #3
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    ???

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    help > debug log , show something when you run script?

  5. #5
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    no man, you didn't understood.. The script don't 'debug'.. the script works.. but not perfectly.. the script don't count.. if i kill a listed monster the script don't increase the count number.. stay 0.

  6. #6
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    Anyone?

  7. #7
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    bump

  8. #8
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    bump

Posting Permissions

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