Results 1 to 4 of 4

Thread: Kill counter by "Alerts"?

  1. #1
    Normal User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4

    Question Kill counter by "Alerts"?

    Hello, does anyone know it is possible to make action to count killed monsters by "Settings//alerts// creatures//giant spider//count//?"
    Any ideas?
    Cheers

  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
    Lua Code:
    local pathmonst = 'Settings\\Alerts\\Creature\\giant-spider\\Count'
    local KILLED_COUNT1 = getsettings(pathmonst)
    local KILLED_COUNT2 = positive(KILLED_COUNT1+1)
    local TASK_MONSTERS = {"Giant Spider"}
    local SERVER_LOG_MSG = getnewmessages("Server Log")
    local SERVER_LOG_MSG_COUNT = SERVER_LOG_MSG.count - 1
     
    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 == 20) then
              for _, MONSTER in ipairs(TASK_MONSTERS) do
                if (SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT - INDEX].text:find(MONSTER:lower())) then
                           setsettings(pathmonst,KILLED_COUNT2)
               end
            end
        end
    end


    Im not maker of this action, I dont know who made it, I just edited
    Last edited by shanp; 04-01-2014 at 07:35 PM.

  3. #3
    Normal User
    Join Date
    May 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    Hmm, looks great but doesn't working for me. In "count" is still "0".

    :/

  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
    Edited, try now

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
  •