Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Krieger_Kundi(Cape)
- if checkForItem(Cape) and EquipCD(5)<.5 then UseEquipmentItem(5)
- elseif checkForItem(Cape) and EquipCD(5)>1 then UseItemByName(Cape)
- end
- local mcn, scn = UnitClass("player");
- local _, Blutungen = SDtID(500081)
- local boss = UnitSex("target") > 2;
- AutoTarget()
- if BTl("Passwächter")<10 then CastSpellByName("Passwächter")
- elseif MgP(.35) and CcS("Zyklon")<.5 and SDt("Siegel der Stille") then CastSpellByName("Zyklon")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 3 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.30) and HkT(.30) and CcS("Die letzte Schlacht")<.5 then CastSpellByName("Die letzte Schlacht")
- elseif SgP(.30) and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 2 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 and not HiebBlutung and CcS("Taktischer Angriff")<.5 then CastSpellByName("Hieb")
- elseif MgP(.10) and CcS("Offene Flanke")<.5 and SDt("Verwundbar") then CastSpellByName("Offene Flanke")
- elseif MgP(.20) and CcS("Eröffnungsangriff")<.5 and not SDt("Verwundbar") then CastSpellByName("Eröffnungsangriff")
- elseif MgP(.40) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif SgP(.25) and MkP(.20) and CcS("Schwertatem")<.5 then CastSpellByName("Schwertatem")
- elseif SgP(.30) and MkP(.20) and not SBp("Blutpfeil") and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif SgP(.30) and CcS("Schädelbrecher")<.5 then CastSpellByName("Schädelbrecher")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 1 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif SgP(.25) and CcS("Schwertatem")<.5 then CastSpellByName("Schwertatem")
- elseif SgP(.20) and CcS("Vampirpfeil")<.5 then CastSpellByName("Vampirpfeil")
- elseif SgP(.30) and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif boss and MkP(.15) and checkForItem("Umhang der Kühnheit von Aoth") and checkForItemCooldown("Umhang der Kühnheit von Aoth")<.5 then UseItemByName("Umhang der Kühnheit von Aoth")
- elseif CcS("Bogenschuss")<.5 then CastSpellByName("Bogenschuss")
- elseif CcS("Wütend")<.5 then CastSpellByName("Wütend")
- end
- end
- function Krieger_Kundi (Cape)
- if checkForItem(Cape) and EquipCD(5)<.5 then UseEquipmentItem(5)
- elseif checkForItem(Cape) and EquipCD(5)>1 then UseItemByName(Cape)
- end
- local mcn, scn = UnitClass("player");
- local _, Blutungen = SDtID(500081)
- local boss = UnitSex("target") > 2;
- AutoTarget()
- if BTl("Passwächter")<10 then CastSpellByName("Passwächter")
- --elseif MgP(.35) and CcS("Zyklon")<.5 and SDt("Siegel der Stille") then CastSpellByName("Zyklon")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 3 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.30) and HkT(.30) and CcS("Die letzte Schlacht")<.5 then CastSpellByName("Die letzte Schlacht")
- elseif SgP(.30) and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 2 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 and not HiebBlutung and CcS("Taktischer Angriff")<.5 then CastSpellByName("Hieb")
- elseif MgP(.10) and CcS("Offene Flanke")<.5 and SDt("Verwundbar") then CastSpellByName("Offene Flanke")
- elseif MgP(.20) and CcS("Eröffnungsangriff")<.5 and not SDt("Verwundbar") then CastSpellByName("Eröffnungsangriff")
- elseif MgP(.40) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif SgP(.25) and MkP(.20) and CcS("Schwertatem")<.5 then CastSpellByName("Schwertatem")
- elseif SgP(.30) and MkP(.20) and not SBp("Blutpfeil") and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif SgP(.30) and CcS("Schädelbrecher")<.5 then CastSpellByName("Schädelbrecher")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 1 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif SgP(.25) and CcS("Schwertatem")<.5 then CastSpellByName("Schwertatem")
- elseif SgP(.20) and CcS("Vampirpfeil")<.5 then CastSpellByName("Vampirpfeil")
- elseif SgP(.30) and CcS("Salz in die Wunde")<.5 then CastSpellByName("Salz in die Wunde")
- elseif boss and MkP(.15) and checkForItem("Umhang der Kühnheit von Aoth") and checkForItemCooldown("Umhang der Kühnheit von Aoth")<.5 then UseItemByName("Umhang der Kühnheit von Aoth")
- elseif CcS("Bogenschuss")<.5 then CastSpellByName("Bogenschuss")
- elseif CcS("Wütend")<.5 then CastSpellByName("Wütend")
- end
- end
- function Krieger_Bewahrer(Cape)
- if checkForItem(Cape) and EquipCD(5)<.5 then UseEquipmentItem(5)
- elseif checkForItem(Cape) and EquipCD(5)>1 then UseItemByName(Cape)
- end
- local mcn, scn = UnitClass("player");
- local _, Blutungen = SDtID(500081)
- local boss = UnitSex("target") > 2;
- AutoTarget()
- if BTl("Passwächter")<10 then CastSpellByName("Passwächter")
- elseif BTl("Kampfeswille")<10 then CastSpellByName("Kampfeswille")
- elseif BTl("Gestrüppschild")<10 then CastSpellByName("Gestrüppschild")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and SDt("Siegel der Stille") then CastSpellByName("Taktischer Angriff")
- --elseif MgP(.45) and CcS("Zyklon")<.5 and SDt("Siegel der Stille") then CastSpellByName("Zyklon")
- elseif SgP(.06) and CcS("Geladener Hieb")<.5 then CastSpellByName("Geladener Hieb")
- elseif SgP(.08) and CcS("Wilder Wirbelwind")<.5 then CastSpellByName("Wilder Wirbelwind")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 3 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 2 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 and not HiebBlutung and CcS("Taktischer Angriff")<.5 then CastSpellByName("Hieb")
- elseif MgP(.10) and CcS("Offene Flanke")<.5 and SDt("Verwundbar") then CastSpellByName("Offene Flanke")
- elseif MgP(.20) and CcS("Eröffnungsangriff")<.5 and not SDt("Verwundbar") then CastSpellByName("Eröffnungsangriff")
- elseif MgP(.40) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif MgP(.15) and CcS("Taktischer Angriff")<.5 and Blutungen>= 1 then CastSpellByName("Taktischer Angriff")
- elseif MgP(.25) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif boss and MkP(.15) and checkForItem("Umhang der Kühnheit von Aoth") and checkForItemCooldown("Umhang der Kühnheit von Aoth")<.5 then UseItemByName("Umhang der Kühnheit von Aoth")
- elseif CcS("Wütend")<.5 then CastSpellByName("Wütend")
- end
- end
- function Bewahrer_Kundi(Cape)
- if checkForItem(Cape) and EquipCD(5)<.5 then UseEquipmentItem(5)
- elseif checkForItem(Cape) and EquipCD(5)>1 then UseItemByName(Cape)
- end
- local mcn, scn = UnitClass("player");
- local _, Blutungen = SDtID(500081)
- local boss = UnitSex("target") > 2;
- AutoTarget()
- if BTl("Gestrüppschild")<10 then CastSpellByName("Gestrüppschild")
- elseif BTl("Schutz der Natur")<10 then CastSpellByName("Schutz der Natur")
- elseif MgP(.04) and CcS("Geladener Hieb")<.5 then CastSpellByName("Geladener Hieb")
- elseif MgP(.09) and CcS("Kreuzhieb")<.5 then CastSpellByName("Kreuzhieb")
- elseif SgP(.40) and CcS("Unzähmbar")<.5 then CastSpellByName("Unzähmbar")
- elseif MgP(.12) and CcS("Rasendes Gestrüpp")<.5 then CastSpellByName("Rasendes Gestrüpp")
- elseif SgP(.20) and CcS("Vampirpfeil")<.5 then CastSpellByName("Vampirpfeil")
- elseif CcS("Bogenschuss")<.5 then CastSpellByName("Bogenschuss")
- elseif HkP(.20) and CcS("Herz der Eiche")<.5 and MgP(0.4) then CastSpellByName("Herz der Eiche")
- end
- end
- function Bewahrer_Krieger(Cape)
- if checkForItem(Cape) and EquipCD(5)<.5 then UseEquipmentItem(5)
- elseif checkForItem(Cape) and EquipCD(5)>1 then UseItemByName(Cape)
- end
- local mcn, scn = UnitClass("player");
- local _, Blutungen = SDtID(500081)
- local boss = UnitSex("target") > 2;
- AutoTarget()
- if BTl("Schutz der Natur")<10 then CastSpellByName("Schutz der Natur")
- elseif SgP(.30) and CcS("Bestienschlag")<.5 then CastSpellByName("Bestienschlag")
- elseif MgP(.05) and CcS("Geladener Hieb")<.5 then CastSpellByName("Geladener Hieb")
- elseif MgP(.10) and CcS("Kreuzhieb")<.5 then CastSpellByName("Kreuzhieb")
- elseif MgP(.12) and CcS("Rasendes Gestrüpp")<.5 then CastSpellByName("Rasendes Gestrüpp")
- elseif MgP(.40) and CcS("Hieb")<.5 then CastSpellByName("Hieb")
- elseif MgP(.04) and CcS("Doppelschlag")<.5 then CastSpellByName("Doppelschlag")
- elseif boss and SkP(.15) and checkForItem("Umhang der Kühnheit von Aoth") and checkForItemCooldown("Umhang der Kühnheit von Aoth")<.5 then UseItemByName("Umhang der Kühnheit von Aoth")
- elseif CcS("Wütend")<.5 then CastSpellByName("Wütend")
- end
- end
- function AutoTarget()
- if UnitIsDeadOrGhost("target") then TargetNearestEnemy()
- elseif not UnitExists("target") then TargetNearestEnemy()
- elseif (UnitName("target") == UnitName("player")) then TargetNearestEnemy()
- elseif not UnitCanAttack("player","target") then TargetNearestEnemy()
- end
- end
- function checkForItemCooldown(iname)
- local t = 0;
- local fullcooldown = "";
- local currentcooldown = "";
- local i = 1;
- while(i<181) do
- local bagid, texture, name, itemCount, locked, invalid = GetBagItemInfo(i)
- if name == iname then
- fullcooldown, currentcooldown = GetBagItemCooldown(bagid);
- t = currentcooldown;
- end
- i = i + 1;
- end
- return t;
- end
- function checkForItem(iname)
- local occupiedSlots, totalSlots = GetBagCount()
- for i = 1, totalSlots do
- local bagid, texture, name, itemCount, locked, invalid = GetBagItemInfo(i)
- if name == iname then
- return true
- end
- end
- return false
- end
- function BTl(buffName)
- local i = 1;
- local t = 0;
- while(UnitBuff("player",i) ~= nil)do
- if(UnitBuff("player",i) == buffName)then
- t = UnitBuffLeftTime("player",i);
- end
- i = i + 1;
- end
- return t;
- end
- function SBp(buffName)
- local i = 1;
- local r = false;
- while(UnitBuff("player",i) ~= nil)do
- if(UnitBuff("player",i) == buffName)then
- r = true;
- return r;
- end;
- i = i + 1;
- end;
- return r;
- end;
- --nicht vorhandenes mana
- function MkP(mana)
- if (UnitMana("player")/UnitMaxMana("player") < (mana)) then
- return true
- end
- end
- function SkP(Skill)
- if (UnitSkill("player")/UnitMaxSkill("player") < (Skill)) then
- return true
- end
- end
- --Vorhandenes Mana
- function MgP(mana)
- if (UnitMana("player")/UnitMaxMana("player") > (mana)) then
- return true
- end
- end
- function HkP(leben)
- if (UnitHealth("player")/UnitMaxHealth("player") < (leben)) then
- return true
- end
- end
- function HgP(leben)
- if (UnitHealth("player")/UnitMaxHealth("player") > (leben)) then
- return true
- end
- end
- function HkT(leben)
- if (UnitHealth("target")/UnitMaxHealth("target") < (leben)) then
- return true
- end
- end
- function SgP(Skill)
- if (UnitSkill("player")/UnitMaxSkill("player") > (Skill)) then
- return true
- end
- end
- function SDt(debuffName)
- local i = 1;
- local y = 0;
- local r = false;
- while(UnitDebuff("target",i) ~= nil)do
- if(UnitDebuff("target",i) == debuffName)then
- r = true;
- y = y + 1
- end
- i = i + 1;
- end
- return r, y;
- end
- function SDtID(Skill_ID)
- local i = 1;
- local y = 0;
- local r = false;
- while(UnitDebuff("target",i) ~= nil)do
- local _,_,_,ID = UnitDebuff("target",i)
- if(ID == Skill_ID)then
- r = true;
- y = y + 1;
- end
- i = i + 1;
- end
- return r, y;
- end
- function EquipCD(slot)
- local fullcooldown, currentcooldown = GetEquipItemCooldown(slot);
- return currentcooldown
- end
- function CcS(skillName)
- local p = 1;
- local t = 0;
- local fullcooldown = "";
- local currentcooldown = "";
- while(p < 5) do
- local i = 1;
- while(GetSkillDetail(p,i) ~= nil)do
- if(GetSkillDetail(p,i) == skillName)then
- fullcooldown, currentcooldown = GetSkillCooldown(p,i);
- t = currentcooldown;
- end
- i = i + 1;
- end
- p = p + 1;
- end
- return t;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement