Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bCombat := false
  2. bLooping := false
  3.  
  4. nDelayF := 15
  5. nDelayS := 1500
  6. nDelayD := 25
  7.  
  8. tShari := A_TickCount
  9. tDimach := A_TickCount
  10. tStim := A_TickCount
  11. tDiffuse := A_TickCount
  12. tCaress := A_TickCount
  13. tTotemic := A_TickCount
  14. tFlesh := A_TickCount
  15.  
  16. tFools := A_TickCount
  17. tEvade := A_TickCount
  18. tLimber := A_TickCount
  19. tPhylactery := A_TickCount
  20. tBlur := A_TickCount
  21. tDrain := A_TickCount
  22.  
  23. tPiercingA := A_TickCount
  24. tPiercingB := A_TickCount
  25. tFeast := A_TickCount
  26. tChaos := A_TickCount
  27.  
  28. tCombatDelay := A_TickCount
  29.  
  30. tFastAttack :=A_TickCount
  31.  
  32. SetKeyDelay, nDelayF, nDelayD
  33.  
  34. *NumpadMult::Pause, Toggle
  35.  
  36. ~Numpad0::
  37.     ExitApp
  38. Return
  39.  
  40. *Numpad1::
  41.     Loop {
  42.         ;Begin Attack
  43.         ImageSearch, TX, TY, 850, 772, 950, 778, *32 %A_ScriptDir%\blue.png
  44.         if (TX) {
  45.             ;NOT IN COMBAT, ABOUT TO START
  46.             Send R
  47.             Send q
  48.             Sleep 1000
  49.             bCombat := true
  50.         } else if (bCombat) {
  51.             ImageSearch, CX, CY, 37, 37, 156, 73, *32 %A_ScriptDir%\green.png
  52.             if (not CX) {
  53.                 bCombat := false
  54.                 Continue
  55.             }
  56.         } else {
  57.             Send {Tab}
  58.             Continue
  59.         }
  60.         ;Check Health
  61.         if (tFastAttack < A_TickCount) {
  62.             Send n
  63.             tFastAttack := A_TickCount + 7000
  64.         }
  65.         ImageSearch, HX, HY, 1733, 65, 1890, 84, *32 %A_ScriptDir%\missing.png
  66.         if (HX) {
  67.             if (tShari < A_TickCount) {
  68.                 Send F
  69.                 tShari := A_TickCount + 601000
  70.                 Sleep 1000
  71.                 Continue
  72.             }
  73.             if (tDimach < A_TickCount) {
  74.                 Send k
  75.                 tDimach := A_TickCount + 261000
  76.                 Continue
  77.             }
  78.             if (tStim < A_TickCount) {
  79.                 Send {F1}
  80.                 Send E
  81.                 Send {F1}
  82.                 tStim := A_TickCount + 41000
  83.                 Continue
  84.             }
  85.             if (tDiffuse < A_TickCount) {
  86.                 Send +2
  87.                 Send 1
  88.                 tDiffuse := A_TickCount + 91000
  89.                 Sleep 1000
  90.                 Continue
  91.             }
  92.             if (tCaress < A_TickCount) {
  93.                 Send T
  94.                 Sleep 1150
  95.                 tCaress := A_TickCount + 121000
  96.                 Sleep 1000
  97.                 Continue
  98.             }
  99.             if (tTotemic < A_TickCount) {
  100.                 Send +2
  101.                 SetKeyDelay, nDelayS, nDelayD
  102.                 tTotemic := A_TickCount + 42000
  103.                 Sleep 1500
  104.                 Send 2
  105.                 Send 3
  106.                 Send 4
  107.                 Send 5
  108.                 Send 6
  109.                 Send 7
  110.                 Send 8
  111.                 SetKeyDelay, nDelayF, nDelayD
  112.                 Continue
  113.             }
  114.             if (tFlesh < A_TickCount) {
  115.                 Send G
  116.                 tFlesh := A_TickCount + 1201000
  117.                 Continue
  118.             }
  119.             else {
  120.                 Send Q
  121.                 tDrain := A_TickCount + 47000
  122.                 Sleep 3000
  123.                 Continue
  124.             }
  125.         }
  126.         ;Buffs
  127.         if (tFools < A_TickCount) {
  128.             Send A
  129.             tLimber := tLimber + 32500
  130.             tEvade := tEvade + 37500
  131.             tFools := A_TickCount + 66000
  132.             Continue
  133.         }
  134.         if (tEvade < A_TickCount) {
  135.             Send D
  136.             tEvade := A_TickCount + 201000
  137.             Continue
  138.         }
  139.         if (tLimber < A_TickCount) {
  140.             Send S
  141.             tLimber := A_TickCount + 66000
  142.             Continue
  143.         }
  144.         if (tPhylactery < A_TickCount) {
  145.             Send +3
  146.             SetKeyDelay, nDelayS, nDelayD
  147.             tPhylactery := A_TickCount + 59000
  148.             Sleep 1500
  149.             Send 1
  150.             Send 2
  151.             Send 3
  152.             Send 4
  153.             Send 5
  154.             Send 6
  155.             Send 7
  156.             SetKeyDelay, nDelayF, nDelayD
  157.             Continue
  158.         }
  159.         if (tBlur < A_TickCount) {
  160.             Send +3
  161.             Send 0
  162.             tBlur := A_TickCount + 66000
  163.             Continue
  164.         }
  165.         if (tDrain < A_TickCount) {
  166.             Send Q
  167.             tDrain := A_TickCount + 47000
  168.             Continue
  169.         }
  170.         ;Damage
  171.         if (tPiercingA < A_TickCount) {
  172.             Send +1
  173.             SetKeyDelay, nDelayS, nDelayD
  174.             tPiercingA := A_TickCount + 30000
  175.             Sleep 1000
  176.             Send 3
  177.             Send 4
  178.             SetKeyDelay, nDelayF, nDelayD
  179.             Continue
  180.         }
  181.         if (tPiercingB < A_TickCount) {
  182.             Send +1
  183.             SetKeyDelay, nDelayS, nDelayD
  184.             tPiercingA := A_TickCount + 30000
  185.             tPiercingB := A_TickCount + 30000
  186.             Sleep 1000
  187.             Send 5
  188.             Send 6
  189.             Send 7
  190.             SetKeyDelay, nDelayF, nDelayD
  191.             Continue
  192.         }
  193.         if (tFeast < A_TickCount) {
  194.             Send +1
  195.             Send 0
  196.             tFeast := A_TickCount + 70000
  197.             Sleep 1500
  198.             Continue
  199.         }
  200.         if (tChaos < A_TickCount) {
  201.             Send +1
  202.             Send 9
  203.             tChaos := A_TickCount + 95000
  204.             Sleep 1500
  205.             Continue
  206.         }
  207.         if (tTotemic < A_TickCount) {
  208.             Send +2
  209.             SetKeyDelay, nDelayS, nDelayD
  210.             tTotemic := A_TickCount + 42000
  211.             Sleep 1500
  212.             Send 2
  213.             Send 3
  214.             Send 4
  215.             Send 5
  216.             Send 6
  217.             Send 7
  218.             Send 8
  219.             SetKeyDelay, nDelayF, nDelayD
  220.             Continue
  221.         }
  222.     }
  223. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement