So i found the issue, why do doesnt attack, trying to cast Corruption when he cant, public static Composite CreateWarlockDemonologyNormalPull() { return new PrioritySelector( Safers.EnsureTarget(), Movement.CreateMoveToLosBehavior(), Movement.CreateFaceTargetBehavior(), Spell.WaitForCast(true), Spell.Buff("Corruption",true), Movement.CreateMoveToTargetBehavior(true, 35f) ); } I've tryed this code: Code: public static Composite CreateWarlockDemonologyNormalPull() { return new PrioritySelector( Safers.EnsureTarget(), Movement.CreateMoveToLosBehavior(), Movement.CreateFaceTargetBehavior(), Spell.WaitForCast(true), Spell.Cast("Shadowbolt", ret => StyxWow.Me.Level < 36 && StyxWoW.Me.HasAura("Metamorphosis")), Spell.Buff("Corruption",true), Movement.CreateMoveToTargetBehavior(true, 35f) ); } But it returns an error "The name 'StyxWow' does not exist in the current context" Anyone know how to return the level value, as that is what is used in the documentation. For now use this: Code: public static Composite CreateWarlockDemonologyNormalPull() { return new PrioritySelector( Safers.EnsureTarget(), Movement.CreateMoveToLosBehavior(), Movement.CreateFaceTargetBehavior(), Spell.WaitForCast(true), Spell.Cast("Shadowbolt", ret => StyxWoW.Me.HasAura("Metamorphosis")), Spell.Buff("Corruption",true), Movement.CreateMoveToTargetBehavior(true, 35f) ); }
hello, i have update the code for the summoning of pets, so at certain lvls it will summon the correct pets. Level 1: Imp Level 8: Void Walker Level 20: Succubus Level 29: Felhunter Level 42: FelGuard update code for the Corruption Issue
i havent tested this yet but could be something like this? string MetaSpell = ""; public static Composite CreateWarlockDemonologyNormalPull() { if (StyxWoW.Me.Level >= 36) Metaspell = "Corruption"; else if (StyxWoW.Me.Level < 36) { MetaSpell = "Shadowbolt"; } return new PrioritySelector( Safers.EnsureTarget(), Movement.CreateMoveToLosBehavior(), Movement.CreateFaceTargetBehavior(), Spell.WaitForCast(true), Spell.Cast("MetaSpell" && StyxWoW.Me.HasAura("Metamorphosis")), Spell.Buff("Corruption",true), Movement.CreateMoveToTargetBehavior(true, 35f) ); } for meta issue?
I have fixed the issue with the Meta and Corruption. if u are below 36 it will cast shadowbolt when get higher lvl it will cast corruption/doom Added pet heals @ 30% of its life. Added harvest life @ 30% of its life.
Code: string MetaSpell = ""; if (StyxWoW.Me.Level >= 36 && StyxWoW.Me.HasAura("Metamorphosis")) MetaSpell = "Corruption"; else if (StyxWoW.Me.Level < 36 && StyxWoW.Me.HasAura("Metamorphosis")) { MetaSpell = "Shadowbolt"; } else if (StyxWoW.Me.Level < 36 && !StyxWoW.Me.HasAura("Metamorphosis")) { MetaSpell = "Corruption"; } Can be replaced with: Code: Spell.Cast("Shadowbolt", ret => StyxWoW.Me.Level < 36 && StyxWoW.Me.HasAura("Metamorphosis")), Spell.Buff("Corruption",true), My original code had a typo Also you'll want to change: Code: new Decorator(ret => StyxWoW.Me.HasAura("Metamorphosis"), new PrioritySelector( Spell.Buff("Corruption", ret => StyxWoW.Me.Level >= 36 && StyxWoW.Me.CurrentTarget.HasAura("Doom")), Spell.Cast("Shadowbolt")),
isent it better to post the updated files instead of letting us changing the code (doesent work for me lol just a noob at coding)
just use my uploaded code it does the same thing, when i finished adding some other features ill upload it.
Kindly remove yourself from my post, if you would like to share changes, do so in your own post. Do not thread jack mine. Thank you.
It wasn't meant to be rude, making a suggestion or bug change is one thing, but please don't release code in this post. People get confused and start using your things, then complaining in the topic then my bug reports aren't accurate, understand?
10/24/2012 - 3:40PM - Updated Meta Casting for Lower Levels, Added ReSummoning Pet if in Combat, Added Pet Healing.