Guest User

datpro

a guest
Jan 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.92 KB | None | 0 0
  1. Global $tien[10]
  2. $tien[1] = 1000
  3. $tien[2] = 2000
  4. $tien[3] = 3000
  5. $tien[4] = 4000
  6. $tien[5] = 5000
  7. $tien[6] = 6000
  8. $tien[7] = 7000
  9. $tien[8] = 8000
  10. $tien[9] = 9000
  11. Global $so
  12. Global $dat
  13. chayauto()
  14. Func chayauto()
  15.    datcuoc($tien[1])
  16.    while 1
  17.       if $dat = checktaixiu() Then ; nếu Win
  18.          $so = 1
  19.          datcuoc($tien[$so])
  20.       Else ; nếu thua
  21.          $so += 1
  22.          datcuoc($tien[$so])
  23.       EndIf
  24.    WEnd
  25. EndFunc
  26. Func checktaixiu()
  27.    if hex(PixelGetColor(1161,503),6) = "EEEEEE" then
  28.       Return "xỉu"
  29.    Elseif hex(PixelGetColor(1161,503),6) = "000608" then
  30.       Return "tài"
  31.    EndIf
  32. EndFunc
  33.  
  34. Func datcuoc($tien)
  35.    If     checktaixiu() = "tài" then
  36.       $dat = "xỉu"
  37.          MouseClick("left",1121,422,1,0)
  38.          Send($tien)
  39.          Send("{ENTER}")
  40.  
  41.    ElseIf checktaixiu() = "xỉu" then
  42.       $dat = "tài"
  43.          MouseClick("left",773,422,1,0)
  44.          Send($tien)
  45.          Send("{ENTER}")
  46.  
  47.    endif
  48.    sleep(90000)
  49. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment