Advertisement
Guest User

Untitled

a guest
Nov 29th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // Handles the Control Pressed event (once for activate, twice for deactivate)
  2. if (Keyboard.Q == true) {
  3. if (var.SpellBoost2 != true) {
  4. var.SpellTag2 = 1
  5. } else {
  6. var.SpellTag2 = 0
  7. }
  8. } else {
  9. if (var.SpellTag2 == 1 AND var.SpellBoost2 != true) {
  10. var.SpellBoost2 = true
  11. } else if (var.SpellTag2 != 1 AND var.SpellBoost2 == true) {
  12. // Reset variables
  13. var.SpellBoost2 = false
  14. Key.Shift = false
  15. Key.W = false
  16. var.KeyPressed2 = false
  17. }
  18. }
  19.  
  20.  
  21. // Shift + W pressed
  22. if (var.SpellBoost2 == true) {
  23. Key.Shift = true
  24. wait 5ms
  25. Key.W = true
  26. var.KeyPressed2 = true
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement