Results 1 to 6 of 6

Thread: I need scirpt which make screenshot if adavnced

  1. #1
    Banned
    Join Date
    Jun 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    I need scirpt which make screenshot if adavnced

    because option in alerts

    alerts>>massage>>screenshot

    dosnt work

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    680
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    0
    PHP Code:
    local msgs getmessages("Server Log")
    local qtd msgs.count-1

    if(msgs[qtd-i].text:find('You advanced')) then 
        screenshot
    ()
    end 
    It should work, no guarantee's. Let me know if it doesn't, and I'll try to make it work.

    By the way, do you have the mainsetting for alert set to "yes" (iBot mainwindow > Extras > states, if checked it's enabled)

  3. #3
    Banned
    Join Date
    Jun 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    dosnt work this script

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    680
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    0
    Do you get any errors? (iBot main window > debug)

  5. #5
    Banned
    Join Date
    Jun 2012
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    14:46 : LUA:PersistentAction - LuaInterface.LuaScriptException: [string "chunk"]:4: attempt to perform arithmetic on global 'i' (a nil value)

    only this

  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Code:
    local msgs = getmessages("Server Log")  
    local qtd = msgs.count-1  
    
    for i=0,qtd  do  
        if msgs[qtd].text:find("You advanced") then  
           screenshot()
        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
  •