Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function easymodescoutwarden()
- local focus = UnitMana("player")
- local mana = UnitSkill("player")
- local briarshield = false
- local hiddenperil = false
- local _,gcd = GetSkillCooldown(2,3);
- local _,comboshotcd = GetSkillCooldown(4,17);
- local _,thornarrowcd = GetSkillCooldown(4,8);
- local _,hiddenperilcd = GetSkillCooldown(4,14);
- local _,reflectedshotcd = GetSkillCooldown(4,20);
- local _,piercingarrowcd = GetSkillCooldown(4,9);
- local _,chargedchopcd = GetSkillCooldown(3,1);
- local _,vampirearrowscd = GetSkillCooldown(2,2);
- local _,shootcd = GetSkillCooldown(2,6);
- local _,windarrowcd = GetSkillCooldown(4,3);
- local _,snipecd = GetSkillCooldown(4,13);
- local name,uct1,uct2 = UnitCastingTime("player")
- if gcd > 0.2 or uct1-uct2 > 0.2 then
- return
- end
- for i=1,100,1 do
- local name, icon, count, ID = UnitBuff( "player", i );
- if ID == 503958 then
- briarshield = true
- elseif ID == 504588 then
- hiddenperil = true
- elseif ID == nil then
- break
- end
- end
- if briarshield == false then
- CastSpellByName("Briar Shield");
- DebugMsg("Briar Shield")
- elseif hiddenperil == true and snipecd < gcd + 0.01 and snipecd ~= 0 then
- DebugMsg("Priming Snipe")
- elseif hiddenperil == true and snipecd == 0 then
- CastSpellByName("Snipe")
- DebugMsg("Snipe")
- elseif comboshotcd < gcd + 0.01 then
- CastSpellByName("Combo Shot")
- DebugMsg("Combo Shot")
- elseif thornarrowcd < gcd + 0.01 and mana > 180 then
- CastSpellByName("Thorn Arrow")
- DebugMsg("Thorn Arrow")
- elseif hiddenperilcd < gcd + 0.01 and focus > 30 then
- CastSpellByName("Hidden Peril")
- DebugMsg("Hidden Peril")
- elseif reflectedshotcd < gcd + 0.01 then
- CastSpellByName("Reflected Shot")
- DebugMsg("Reflected Shot")
- elseif piercingarrowcd < gcd + 0.01 then
- CastSpellByName("Piercing Arrow")
- DebugMsg("Piercing Arrow")
- elseif chargedchopcd < gcd + 0.01 and mana > 108 then
- CastSpellByName("Charged Chop")
- DebugMsg("Charged Chop")
- elseif vampirearrowscd < gcd + 0.01 and focus > 20 then
- CastSpellByName("Vampire Arrows");
- DebugMsg("Vampire Arrows");
- elseif shootcd < gcd + 0.01 then
- CastSpellByName("Shoot")
- DebugMsg("Shoot")
- elseif windarrowcd < gcd + 0.01 and focus > 15 then
- CastSpellByName("Wind Arrow")
- DebugMsg("Wind Arrow")
- end
- end
Add Comment
Please, Sign In to add comment