Results 1 to 8 of 8

Thread: ACTION? Please help me..

  1. #1
    iBot User
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4

    ACTION? Please help me..

    Hello guys, i need a action what alert when drop X loot, because I dont active CAVEBOT and loot announced of LOOTINGS only is actived when CAVEBOT is actived too.. Anyone can help me?

  2. #2
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

  3. #3
    iBot User
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    but, i have a problem, my pc give lag when actived HUD, how i resolve this? My pc is Windows XP. Or, for alert when drop without cavebot on, how i do?

  4. #4
    iBot User
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Anyone ?

  5. #5
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Try it.

    Code:
    -- you can add more items here
    local warnitems = {'dragon shield', 'wand of inferno', 'serpent sword','dragon hammer'}
    
    
    
    local index = 0 
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
    for i=0,qtd do
       if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
          local l = 0
          for l=1, table.getn(warnitems) do
             if msgs[qtd-i].text:find(warnitems[l]) then
                playsound('alert.wav')
                break
             end
          end
       end
    end
    Last edited by FrogZ; 07-18-2013 at 08:25 AM.

  6. #6
    iBot User
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Nice frogz, this action works, but have a problem. When loot dropped this alert dont stop work, only if I clean server log, have other line to put on this action for resolve it?
    Thank bro.

  7. #7
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Code:
    -- you can add more items here
    local warnitems = {'dragon shield', 'wand of inferno', 'serpent sword','dragon hammer'}
    
    
    local index = 0 
    local msgs = getnewmessages("Server Log")
    local qtd = msgs.count-1
    for i=0,qtd do
       if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
          local l = 0
          for l=1, table.getn(warnitems) do
             if msgs[qtd-i].text:find(warnitems[l]) then
                playsound('alert.wav')
                break
             end
          end
       end
    end
    Try it.

  8. #8
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Yeah it gonna work. i forgot to change getmessages for getnewmessages

Posting Permissions

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