Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxThreadsPerHotkey 3
  2.  
  3. ; suppose that you start the fight with all skill ready and charge loaded
  4. ; skill priority:
  5. ; Offensive Buff    45s     F
  6. ; Ultimate Buff     45s     H
  7. ; Charge            30s     G
  8. ; Ultimate Attack   15s     Y
  9. ; Strong Attack      4s     E
  10. ; Parry             15s     R
  11. ; Piercing Attack    8s     T
  12. ; Defensive Buff    15s     S
  13. ; Block             10s     A
  14. ; Heal              15s     D
  15.  
  16. ^y::
  17. Toggle := !Toggle
  18.  
  19. Play:
  20.     ; contains current cd of skills
  21.     skills := [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  22.     ; contains cooldown of skills
  23.     skillsCD := [49500, 49500, 33000, 16500, 4400, 16500, 8800, 16500, 11000, 16500]
  24.     ; contains skills hotkey
  25.     skillsHK := ["F", "H", "G", "Y", "E", "R", "T", "S", "A", "D"]
  26.     Loop
  27.     {
  28.         If (!Toggle){
  29.             Break
  30.         }
  31.         i := 1
  32.         ; loop through skills to see if they are avaiable
  33.         Loop
  34.         {  
  35.             ; checks if skill is ready
  36.             If(skills[i] == 0){
  37.                 Send % skillsHK[i]
  38.                 skills[i] := skillsCD[i]
  39.                 Break
  40.             }
  41.             i++
  42.             ; if no skill is ready use Regular Attack
  43.             if(i > 10){
  44.                 Send {W}
  45.                 Break
  46.             }
  47.         }
  48.         i := 1
  49.         ; reduce all skill cd
  50.         Loop
  51.         {
  52.             If(i <= 10){
  53.                 skills[i] := skills[i] - 1100
  54.                 If(skills[i] < 0){
  55.                     skills[i] := 0
  56.                 }
  57.                 i++
  58.             } else {
  59.                 Break
  60.             }
  61.         }
  62.         Sleep 1100
  63.     }
  64. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement