Results 1 to 3 of 3

Thread: Alert and Logout Action when x Monsters Killed

  1. #1
    Normal User Mikzz's Avatar
    Join Date
    May 2013
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0

    Post Alert and Logout Action when x Monsters Killed

    Hello Bros, I try to write my own script instead of using scripts from "free scripts section". I have little knowledge about the scripting, so I need help from more experienced users. I need 2 action scripts, one that will sound an alarm if "x" Monsters will be killed. The second script is to be in the waypoint as the action, and I should work only when we write in setup "Logout = true", and when we killed x monsters. For the help I really appreciate it because I want to learn how to write my own scripts. Regards, Mikzz.
    PS. Sorry for weak english

    Script that I got in Action/List, maybe it will help (probably belongs to cat_salgado):
    Code:
    local KILLED_COUNT1 = getsettings('Settings\\Actions\\List\\KILLED_COUNT\\Script')
    local KILLED_COUNT2 = positive(KILLED_COUNT1+1)
    local TASK_MONSTERS = {"behemoth"}
    local TASKS_DONE = getsettings('Settings\\Looting\\List\\TASK_DONE\\Destination')+0
    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 == 19) then
            for _, MONSTER in ipairs(TASK_MONSTERS) do
                if (SERVER_LOG_MSG[SERVER_LOG_MSG_COUNT - INDEX].text:find(MONSTER:lower())) then
                               if TASKER == true and TASKS_DONE < 3 then
                                 setsettings('Settings\\Actions\\List\\KILLED_COUNT\\Script',KILLED_COUNT2)
                               end
                end
            end
        end
    end

  2. #2
    Normal User Mikzz's Avatar
    Join Date
    May 2013
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    B ring
    U p
    M y
    P ost
    My script is working well, the last thing I need are the two actions.. Help please

  3. #3
    Normal User Mikzz's Avatar
    Join Date
    May 2013
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    bump

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
  •