Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. vn.cycler.onoff = false
  2.  
  3. vn.cycler.queuedAttack = 'nil'
  4.  
  5. vn.cycler.nextAttack = 'confound'
  6.  
  7.  
  8. --Alias's will change nextAttack and then fire this function--
  9. vn.cycler.checkAttack = function(check)
  10. if vn.cycler.nextAttack == vn.cycler.queuedAttack then
  11. return true
  12. else vn.cycler.sendCommand()
  13. end
  14. end
  15.  
  16. --Trigger this function to balance recovery--
  17. vn.cycler.attackFired = function(reset)
  18. vn.cycler.queuedAttack = "nil"
  19. vn.cycler.nextAttack = "confound"
  20. do vn.cycler.sendCommand()
  21. end
  22. end
  23.  
  24. --Hopefully correctly queues next attack--
  25. vn.cycler.sendCommand = function(fire)
  26. if vn.cycler.onoff then
  27. for k,v in pairs (vn.cycler.abilities) do
  28. local ability = vn.cycler.abilities[k]
  29. if ability == vn.cycler.nextAttack then
  30. send(vn.cycler.abilites[v] .." " ..target)
  31. vn.cycler.queuedAttack = ability
  32. end
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement