Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Made by Protozoid
  2.  
  3. dir := A_ScriptDir . "\Patch"
  4. staticDir := "C:\Windows\System32\drivers\etc\hosts"
  5.  
  6. FileSetAttrib, ^A, %staticDir%
  7. FileDelete, %staticDir%
  8.  
  9. IfNotExist, %dir%
  10. {
  11.     MsgBox, 16, , Error! Patch file not in current directory.
  12.     ExitApp
  13. }  
  14.    
  15. FileRead, contents, %dir%
  16. FileAppend, %contents%, %staticDir%
  17.  
  18. if ErrorLevel {
  19.     MsgBox, 16, , Error! Adobe patcher has encountered an internal error; patch was unsuccessful.
  20. }else {
  21.     MsgBox, 64, ,
  22.     (
  23.     Patch was successful. Last task for you to complete is to find an Adobe Flash CS5 serial.
  24.     `n Happy hunting! `n : 3
  25.     )
  26.     RandomEvent()
  27. }  
  28.  
  29. RandomEvent() {
  30.     serialNum = 1302-1222-9974-0145-3069-2594
  31.     Random, rand, 1, 7
  32.     if (rand = 7) {
  33.         MsgBox, 64, ,
  34.         (
  35.         You struck gold, you've encountered the random event. You will now be rewarded with an Adobe Flash CS5 serial.
  36.         `n Where is it you're wondering? Oh that's easy, just check your clipboard~ `n `n Enjoy, sincerely Protozoid.
  37.         )
  38.         Clipboard = %serialNum%
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement