Guest User

Untitled

a guest
Oct 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. function easymodescoutwarden()
  2.  
  3. local focus = UnitMana("player")
  4. local mana = UnitSkill("player")
  5.  
  6. local briarshield = false
  7. local hiddenperil = false
  8.  
  9. local _,gcd = GetSkillCooldown(2,3);
  10. local _,comboshotcd = GetSkillCooldown(4,17);
  11. local _,thornarrowcd = GetSkillCooldown(4,8);
  12. local _,hiddenperilcd = GetSkillCooldown(4,14);
  13. local _,reflectedshotcd = GetSkillCooldown(4,20);
  14. local _,piercingarrowcd = GetSkillCooldown(4,9);
  15. local _,chargedchopcd = GetSkillCooldown(3,1);
  16. local _,vampirearrowscd = GetSkillCooldown(2,2);
  17. local _,shootcd = GetSkillCooldown(2,6);
  18. local _,windarrowcd = GetSkillCooldown(4,3);
  19. local _,snipecd = GetSkillCooldown(4,13);
  20. local name,uct1,uct2 = UnitCastingTime("player")
  21. if gcd > 0.2 or uct1-uct2 > 0.2 then
  22. return
  23. end
  24. for i=1,100,1 do
  25. local name, icon, count, ID = UnitBuff( "player", i );
  26. if ID == 503958 then
  27. briarshield = true
  28. elseif ID == 504588 then
  29. hiddenperil = true
  30. elseif ID == nil then
  31. break
  32. end
  33. end
  34. if briarshield == false then
  35. CastSpellByName("Briar Shield");
  36. DebugMsg("Briar Shield")
  37. elseif hiddenperil == true and snipecd < gcd + 0.01 and snipecd ~= 0 then
  38. DebugMsg("Priming Snipe")
  39. elseif hiddenperil == true and snipecd == 0 then
  40. CastSpellByName("Snipe")
  41. DebugMsg("Snipe")
  42. elseif comboshotcd < gcd + 0.01 then
  43. CastSpellByName("Combo Shot")
  44. DebugMsg("Combo Shot")
  45. elseif thornarrowcd < gcd + 0.01 and mana > 180 then
  46. CastSpellByName("Thorn Arrow")
  47. DebugMsg("Thorn Arrow")
  48. elseif hiddenperilcd < gcd + 0.01 and focus > 30 then
  49. CastSpellByName("Hidden Peril")
  50. DebugMsg("Hidden Peril")
  51. elseif reflectedshotcd < gcd + 0.01 then
  52. CastSpellByName("Reflected Shot")
  53. DebugMsg("Reflected Shot")
  54. elseif piercingarrowcd < gcd + 0.01 then
  55. CastSpellByName("Piercing Arrow")
  56. DebugMsg("Piercing Arrow")
  57. elseif chargedchopcd < gcd + 0.01 and mana > 108 then
  58. CastSpellByName("Charged Chop")
  59. DebugMsg("Charged Chop")
  60. elseif vampirearrowscd < gcd + 0.01 and focus > 20 then
  61. CastSpellByName("Vampire Arrows");
  62. DebugMsg("Vampire Arrows");
  63. elseif shootcd < gcd + 0.01 then
  64. CastSpellByName("Shoot")
  65. DebugMsg("Shoot")
  66. elseif windarrowcd < gcd + 0.01 and focus > 15 then
  67. CastSpellByName("Wind Arrow")
  68. DebugMsg("Wind Arrow")
  69. end
  70. end
Add Comment
Please, Sign In to add comment