Results 1 to 5 of 5

Thread: loot checker and changer looting style

  1. #1
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

    loot checker and changer looting style

    Scripts working but not checking loot in Server Log massages ... ;/ anyone can help ?

    PHP Code:
    local serverlog_lines getnewmessages("Server Log")  
    local serverlog_q serverlog_lines.count 1  
    local items 
    = {"royal helmet""dragon scale mail""dragon slayer""fire sword""tower shield""wand of inferno""dragon hammer""dragon shield""dragonbone staff""dragon lord trophy""dragon ham"}

    for 
    0serverlog_q do  
    for 
    1#items do
        
    if (serverlog_lines[serverlog_q i].text:find(items[k])) then
    setsettings
    ("Settings\\Looting\\Style""After melee kill")
    wait(5000)
    else
    setsettings("Settings\\Looting\\Style""After all dead")        
        
    end  
    end  
    end 
    Last edited by laskos6989; 01-05-2013 at 12:53 PM.

  2. #2
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    bump ? anyone help me ?

  3. #3
    Normal User Blong's Avatar
    Join Date
    Dec 2012
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    4
    Try,

    PHP Code:
    local items = {"royal helmet""dragon scale mail""dragon slayer""fire sword""tower shield""wand of inferno""dragon hammer""dragon shield""dragonbone staff""dragon lord trophy""dragon ham"}
    local index 
    local msgs 
    getmessages("Server Log")
    local qtd msgs.count-1
    for i=0,qtd do
        for 
    _CHECK in ipairs(items) do
            if 
    msgs[qtd].text:find(CHECKthen
                setsettings
    ("Settings\\Looting\\Style""After melee kill")
                
    wait(5000)
            else
                
    setsettings("Settings\\Looting\\Style""After all dead"
            
    end
        end
    end 

  4. #4
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    thank you

  5. #5
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    not working ... ;/ always is after melee kill ...

Posting Permissions

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