Results 1 to 2 of 2

Thread: Advance screenshot action

  1. #1
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5

    Advance screenshot action

    Hello. As the title inflicts I need a screenshot action for advance since the Ibot doesn´t take screenshots correctly for me. Would appreciate if someone could give me one.

    Cheers!

  2. #2
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5
    Nvm I found it.

    PHP Code:
    local CONFIG = {

        
    Level true,

        
    magic true,

        
    fist false,

        
    axe false,

        
    club false,

        
    sword true,

        
    distance false,

        
    shielding true,

        
    fishing false,

    }



    local ms getnewmessages("Server Log")



    for 
    0ms.count do

        
    local m ms[i]

        if 
    m.text:find("You advanced"then

            local s 
    string.match(m.text'You advanced .- (.-)[%s%.].-')



            if 
    CONFIG[sthen

                
    if minimized then

                    restoreclient
    ()

                    
    focusclient()

                    
    wait(200300)

                    
    screenshot(string.format("%s advanced in %s at %s"names:lower(), time()))

                    
    minimizeclient()

                else

                    
    focusclient()

                    
    screenshot(string.format("%s advanced in %s at %s"names:lower(), time()))

                
    end

            end

        end

    end 

Posting Permissions

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