Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: [FIX] screenshot() and screenshot() on Death

  1. #1
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5

    [FIX] screenshot() and screenshot() on Death

    There is a bug at screenshot(), it's create a file with same name and overwrite it if you call it another time.

    To fix this, you can use this code:

    Code:
    screenshot(name.." "..string.gsub(date(), "/", "_").." "..string.gsub(time(), ":", "."))
    Screenshot on Death:

    Code:
    if hppc == 0 then
    screenshot(name.." "..string.gsub(date(), "/", "_").." "..string.gsub(time(), ":", "."))
    wait(1000)
    end
    Credits by Toadz, Onehit and rhenanfterzi.
    Last edited by ToadZ; 08-08-2012 at 02:04 AM.

  2. #2
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Finally we can take SS using hotkeys ^^

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    609
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    37
    Rep Power
    6
    The first one is for advance?

  4. #4
    iBot User mlim!'s Avatar
    Join Date
    Jun 2012
    Location
    São Paulo, Brasil
    Posts
    433
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5
    ToadZ e CIA! Sempre vocês!

    parabéns pelo bom trabalho!

    =]


    "Não há vida no vazio, só a morte"

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    como funciona? quais dados tenho q modificar ai nessa action??

    ate++

  6. #6
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    N precisa mudar dado algum cara, só colocar nas actions e a de SS na hotkey

  7. #7
    Normal User
    Join Date
    Jul 2012
    Posts
    609
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    37
    Rep Power
    6
    So screenshot on level is the first code?
    Explain step by step please.
    Thanks, Love ur work

  8. #8
    Normal User
    Join Date
    Jun 2012
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    the first code just makes it so the screenshot function would save different file names

    Code:
    local currentLevel = YOURCURRENTLEVEL
    
    if level > currentLevel then
    screenshot(name.." "..string.gsub(date(), "/", "_").." "..string.gsub(time(), ":", "."))
    wait(500,1000)
    currentLevel = currentLevel+1
    end
    made by samuel, just added frogs screenshot action
    Last edited by Tormented; 08-10-2012 at 06:22 AM.

  9. #9
    Normal User
    Join Date
    Jul 2012
    Posts
    609
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    37
    Rep Power
    6
    Do I have to change my CURRENTLEVEL??

  10. #10
    Normal User
    Join Date
    Apr 2012
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    13
    Rep Power
    5
    Thank you.

Posting Permissions

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