Results 1 to 4 of 4

Thread: Screenshot if lvl up problem

  1. #1
    Banned
    Join Date
    Jul 2013
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    Screenshot if lvl up problem

    Hello i got that problem.
    Screenshot working for me good only if im near computer etc, and im making something.
    When i leave afk script on night, first screen is usually good (Got advence message) but after this one im getting screen "on advence" with for example 88 lvl and 20%. All other screens (3,4,5,6,7,8,xxx) is same screen like a screen nr 2
    Could some1 help me with it?

    Im working on Windows 7
    Last edited by Karthren; 09-24-2013 at 09:07 AM.

  2. #2
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    check if your screenschot hotkey has the function: focusclient() and the variable "if" focused

    or just paste it here and we can give a look for you.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  3. #3
    Banned
    Join Date
    Jul 2013
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    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 i = 0, ms.count - 1 do
    
        local m = ms[i]
    
        if m.text:find("You advanced") then
    
            local s = string.match(m.text, 'You advanced .- (.-)[%s%.].-')
    
    
    
            if CONFIG[s] then
    
                if minimized then
    
                    restoreclient()
    
                    focusclient()
    
                    wait(200, 300)
    
                    screenshot(string.format("%s advanced in %s at %s", name, s:lower(), time()))
    
                    minimizeclient()
    
                else
    
                    focusclient()
    
                    screenshot(string.format("%s advanced in %s at %s", name, s:lower(), time()))
    
                end
    
            end
    
        end
    
    end
    I think its not problem with Script/Ibot just changed something in windows setup, gonna check it at next night ;p

  4. #4
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    try to use this one, with "if" focused variable:
    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 i = 0, ms.count - 1 do
    
        local m = ms[i]
    
        if m.text:find("You advanced") then
    
            local s = string.match(m.text, 'You advanced .- (.-)[%s%.].-')
    
    
    
            if CONFIG[s] then
    
                if minimized then
    
                    restoreclient()
    
                    focusclient()
    
                    wait(200, 300)
                    if focused then
                    screenshot(string.format("%s advanced in %s at %s", name, s:lower(), time()))
                    end
                    minimizeclient()
    
                else
    
                    focusclient()
                    if focused then
                    screenshot(string.format("%s advanced in %s at %s", name, s:lower(), time()))
                    end
                end
    
            end
    
        end
    
    end
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

Posting Permissions

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