Results 1 to 2 of 2

Thread: Kill counter

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0

    Kill counter

    Can someone help me with war golem killer counter? thanks !

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Really which you people would learn to search...


    Ropiderz's kill counter:
    PHP Code:
    local SCREEN_XSCREEN_Y 2025
    local CONSIDER_MONSTERS 
    = {"war golem:"} -- 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_COUNTKILLED_CREATURES SERVER_LOG_MSG.count 10
    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 1
                end
            end
        end
    end
    addtext
    ("You have killed " .. KILLED_CREATURES .. " Demon(s) total."SCREEN_XSCREEN_Y+15)
    addtext("Killing " ..math.floor(KILLED_CREATURES/(timems/1000/60/60)).. " Demon(s) an hour."SCREEN_XSCREEN_Y

Posting Permissions

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