What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Please Assist me || Feral CC || Attack Target Bugg

ccvcc

New Member
Joined
Sep 7, 2012
Messages
92
Reaction score
0
I Worked on a Druid Feral CC it will be Pubblic soon, it work fine on Pupped and Pve but I have a problem and thought you coult probably help me. The Problem is that in Arena via LazzyRaider he just wont attack :/
He Swift form to cat, he SwiftForms if Rooted, and Savage Roar but just Wont attack :/
And Like i sad in pve and on Pupped, even in Duels where i dont want it it work fine :/
using System;
using System.Linq;
using Styx;
using CommonBehaviors.Actions;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.CommonBot;
using Action = Styx.TreeSharp.Action;
using Me.Helpers;
using Me.Managers;
using Me.Settings;

namespace My.Classes
{
public class Druid : Base
{
//So I only have to do this calculation once per tick
//Set during the UpdateList()
//----------------------------------------------------|
protected bool Guardian { get { return Me.Specialization == WoWSpec.DruidGuardian; } }
protected bool Feral { get { return Me.Specialization == WoWSpec.DruidFeral; } }
internal WoWUnit MeleeTarget { get { return GetMeleeTarget(); } }
#region overrides
public override WoWClass Class { get { return WoWClass.Druid; } }
protected override Composite CreateCombat()
{
return new LockSelector(
new Decorator(ret => Feral, FeralRotation()),
new Decorator(ret => Guardian, GuardianRotation()));
}
protected override Composite CreateRest()
{
return new PrioritySelector(
Heals(),
new Decorator(ret => (Me.HasAura("Incarnation: King of the Jungle") || Me.HasAura("Prowl")) && Attackable(CurrentTarget) && InRange(CurrentTarget), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && Me.HasAura("Prowl"), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && !Me.HasAura("Prowl"), CreateCombat())
);

}
protected override Composite CreateBuffs()
{
return new PrioritySelector(
CastSpell("Mark of the Wild", ret => Me, ret => DruidSettings.Instance.MarkoftheWild && NeedMark(Me), 600, true, false),
CastSpell("Aquatic Form", ret=> Me, ret=> DruidSettings.Instance.AquaticForm && Me.IsSwimming && Me.Shapeshift != ShapeshiftForm.Aqua, 1, true, false),
new Decorator(ret => (!Me.GroupInfo.IsInParty || !Me.GroupInfo.IsInRaid), Rejuvenation()),
SelfBuff("Prowl", ret => Feral && DruidSettings.Instance.UseProwl && !Me.HasAura("Prowl") &&
Styx.CommonBot.POI.BotPoi.Current.Type != Styx.CommonBot.POI.PoiType.Loot && !Me.Mounted && !Me.IsCasting &&
Me.Debuffs.Count == 0 && (Me.Shapeshift != ShapeshiftForm.Travel || Me.Shapeshift != ShapeshiftForm.Aqua) &&
!NeedMark(Me) && !CarryingFlag(Me), 10),
new Decorator(ret => GeneralSettings.Instance.AutoFlask, AlchemyFlask()));
}
protected override void RegisterHotkeys()
{
if(GeneralSettings.Instance.AdditionalDebugging) AttachCombatLogEvent();
}
protected override void UnregisterHotkeys()
{
DetachCombatLogEvent();
}
#endregion
#region Feral
public Composite FeralRotation()
{
return new PrioritySelector(
Heals(),
CastSpell("Cat Form", ret => Me, ret => Me.ManaPercent >= 4 && Me.Shapeshift != ShapeshiftForm.Cat && !Me.HasAura("Cat Form"), 1, true, false),
new Decorator(ret => !GeneralSettings.Instance.DisableAutomaticBehaviors, EnsureFacing(ret => CurrentTarget)),
new Decorator(ret => !GeneralSettings.Instance.DisableMovement, MoveToTarget(ret => CurrentTarget)),
new Decorator(ret => DruidSettings.Instance.Interrupt, Interrupts()),
new Decorator(ret => Me.HasAura("Incarnation: King of the Jungle"), StealthAbilities()),
new Decorator(ret => Me.CurrentMap.IsArena, FeralPVP()),
new Decorator(ret => InBG, FeralPVP()),
new Decorator(ret => CountHostileNear(Me, 8) >= GeneralSettings.Instance.AOEHostileCount, CatMultipleTarget()),
new Decorator(ret => CountHostileNear(Me, 8) < GeneralSettings.Instance.AOEHostileCount, CatSingleTarget()));
}
public Composite CatMultipleTarget()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => !Me.HasAura("Savage Roar")),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 3, 1), ret=> true),
CastSpell("Swipe", ret => true));

}
public Composite FeralPVP()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => HasGlyph.Contains("Glyph of Savagery") && Me.ComboPoints == 0 && !Me.HasAura("Savage Roar"), 12),
CastSpell("Ravage!", ret => MeleeTarget, ret => !Me.HasAura("Stampede") && Me.ComboPoints < 4 && Me.EnergyPercent > 75),
CastSpell("Faerie Fire", ret => HostileNeedMyAura(HasTalent.Contains("Faerie Swarm") ? "Faerie Swarm" : "Faerie Fire"), ret => true),
SelfBuff("Tiger's Fury", ret => Me.EnergyPercent < 15, 30),
CastSpell("Ferocious Bite", ret=> GetMeleeTarget(25), ret => Me.ComboPoints == 5),
CastSpell("Soul Swap", ret=> HostileNeedMyAura("Rip", 1000, 0), ret=> NearbyHostilesHasMyAura("Rip", 16000, 0).Where(unit => !unit.IsAlive).Count() != 0),
CastSpell("Rip", ret=> HostileNeedMyAura("Rip", 0, 0), ret => Me.ComboPoints == 5),
CastSpell("Rake", ret=> HostileNeedMyAura("Rake", 0, 0), ret => true),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 0, 0), ret => true),
Berserk(),
Incarnation(),
CastSpell("Mangle", ret => Me.ComboPoints < 5),
CastSpell("Ferocious Bite", ret=> HostileHasMyAura("Rip", 100, 0, 0), ret=> Me.ComboPoints == 5),
SelfBuff("Force of Nature", ret => HasTalent.Contains("Force of Nature") && ValidTarget(MeleeTarget)),
CastSpell("Mangle", ret=> MeleeTarget, ret => (Me.EnergyPercent >= 50 || Me.HasAura("Berserk"))),
CastSpell("Wild Charge", ret => HasTalent.Contains("Wild Charge") && DruidSettings.Instance.WildCharge && IsFacing(MeleeTarget) && !InRange(MeleeTarget) && !Me.Rooted));
}
......

1. Check Feral or Guardian skilled,
2. Composite FeralRotation() => Me.CurrentMap.IsArena, FeralPVP
3. The FeralPvP Start that means he buff Savage Roar but dont attack :/ in Pve, and on Pupped he attack just not in arena ...

I think its because of the Me.CurrentTarget but i dont know how to fix it I tryed NearbyHostilesNeedMyAura as well but nothing change... :( coult anyone of you perhapps help me out?
 
Last edited:
To be honest your style of code doesn't look familiar to me.... I'm probally going to have to sit this one out. HA.
 
Last edited:
Thanks for contribution to CC community, but i'm sorry to say that Superbad CC is near to perfection :(
 
Thanks for contribution to CC community, but i'm sorry to say that Superbad CC is near to perfection :(

Just because one CC is to perfection doesn't mean that he shouldn't, or can't make a CC that is contributed to the whole community maybe he has ideas that superbad doesn't. Should never discourage people in this line of bussiness because you never know what motivation a successful Combat routine for one person could influence them to make in the future.
 
To be honest:

I think with this snippet of code its not possible to help you. Just to much information is missing. :)
 
Just because one CC is to perfection doesn't mean that he shouldn't, or can't make a CC that is contributed to the whole community maybe he has ideas that superbad doesn't. Should never discourage people in this line of bussiness because you never know what motivation a successful Combat routine for one person could influence them to make in the future.

In fact my comment was not to discourage him at all... i'm just sad to see that he choose to develop a CC for feral druids with a very good CC already existing. Do not see bad comments where they really are not
 
using System;
using System.Linq;
using Styx;
using CommonBehaviors.Actions;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.CommonBot;
using Action = Styx.TreeSharp.Action;
using Me.Helpers;
using Me.Managers;
using Me.Settings;

namespace My.Classes
{
public class Druid : Base
{
//So I only have to do this calculation once per tick
//Set during the UpdateList()
//----------------------------------------------------|
protected bool Guardian { get { return Me.Specialization == WoWSpec.DruidGuardian; } }
protected bool Feral { get { return Me.Specialization == WoWSpec.DruidFeral; } }
internal WoWUnit MeleeTarget { get { return GetMeleeTarget(); } }
#region overrides
public override WoWClass Class { get { return WoWClass.Druid; } }
protected override Composite CreateCombat()
{
return new LockSelector(
new Decorator(ret => Feral, FeralRotation()),
new Decorator(ret => Guardian, GuardianRotation()));
}
protected override Composite CreateRest()
{
return new PrioritySelector(
Heals(),
new Decorator(ret => (Me.HasAura("Incarnation: King of the Jungle") || Me.HasAura("Prowl")) && Attackable(CurrentTarget) && InRange(CurrentTarget), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && Me.HasAura("Prowl"), StealthAbilities()),
new Decorator(ret => DruidSettings.Instance.AutoCombat && !Me.HasAura("Prowl"), CreateCombat())
);

}
protected override Composite CreateBuffs()
{
return new PrioritySelector(
CastSpell("Mark of the Wild", ret => Me, ret => DruidSettings.Instance.MarkoftheWild && NeedMark(Me), 600, true, false),
CastSpell("Aquatic Form", ret=> Me, ret=> DruidSettings.Instance.AquaticForm && Me.IsSwimming && Me.Shapeshift != ShapeshiftForm.Aqua, 1, true, false),
new Decorator(ret => (!Me.GroupInfo.IsInParty || !Me.GroupInfo.IsInRaid), Rejuvenation()),
SelfBuff("Prowl", ret => Feral && DruidSettings.Instance.UseProwl && !Me.HasAura("Prowl") &&
Styx.CommonBot.POI.BotPoi.Current.Type != Styx.CommonBot.POI.PoiType.Loot && !Me.Mounted && !Me.IsCasting &&
Me.Debuffs.Count == 0 && (Me.Shapeshift != ShapeshiftForm.Travel || Me.Shapeshift != ShapeshiftForm.Aqua) &&
!NeedMark(Me) && !CarryingFlag(Me), 10),
new Decorator(ret => GeneralSettings.Instance.AutoFlask, AlchemyFlask()));
}
protected override void RegisterHotkeys()
{
if(GeneralSettings.Instance.AdditionalDebugging) AttachCombatLogEvent();
}
protected override void UnregisterHotkeys()
{
DetachCombatLogEvent();
}
#endregion
#region Feral
public Composite FeralRotation()
{
return new PrioritySelector(
Heals(),
CastSpell("Cat Form", ret => Me, ret => Me.ManaPercent >= 4 && Me.Shapeshift != ShapeshiftForm.Cat && !Me.HasAura("Cat Form"), 1, true, false),
new Decorator(ret => !GeneralSettings.Instance.DisableAutomaticBehaviors, EnsureFacing(ret => CurrentTarget)),
new Decorator(ret => !GeneralSettings.Instance.DisableMovement, MoveToTarget(ret => CurrentTarget)),
new Decorator(ret => DruidSettings.Instance.Interrupt, Interrupts()),
new Decorator(ret => Me.HasAura("Incarnation: King of the Jungle"), StealthAbilities()),
new Decorator(ret => Me.CurrentMap.IsArena, FeralPVP()),
new Decorator(ret => InBG, FeralPVP()),
new Decorator(ret => CountHostileNear(Me, 8) >= GeneralSettings.Instance.AOEHostileCount, CatMultipleTarget()),
new Decorator(ret => CountHostileNear(Me, 8) < GeneralSettings.Instance.AOEHostileCount, CatSingleTarget()));
}
public Composite CatMultipleTarget()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => !Me.HasAura("Savage Roar")),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 3, 1), ret=> true),
CastSpell("Swipe", ret => true));

}
public Composite FeralPVP()
{
return new PrioritySelector(
SelfBuff("Savage Roar", ret => HasGlyph.Contains("Glyph of Savagery") && Me.ComboPoints == 0 && !Me.HasAura("Savage Roar"), 12),
CastSpell("Ravage!", ret => MeleeTarget, ret => !Me.HasAura("Stampede") && Me.ComboPoints < 4 && Me.EnergyPercent > 75),
CastSpell("Faerie Fire", ret => HostileNeedMyAura(HasTalent.Contains("Faerie Swarm") ? "Faerie Swarm" : "Faerie Fire"), ret => true),
SelfBuff("Tiger's Fury", ret => Me.EnergyPercent < 15, 30),
CastSpell("Ferocious Bite", ret=> GetMeleeTarget(25), ret => Me.ComboPoints == 5),
CastSpell("Soul Swap", ret=> HostileNeedMyAura("Rip", 1000, 0), ret=> NearbyHostilesHasMyAura("Rip", 16000, 0).Where(unit => !unit.IsAlive).Count() != 0),
CastSpell("Rip", ret=> HostileNeedMyAura("Rip", 0, 0), ret => Me.ComboPoints == 5),
CastSpell("Rake", ret=> HostileNeedMyAura("Rake", 0, 0), ret => true),
CastSpell("Thrash", ret => HostileNeedMyAura("Thrash", 0, 0), ret => true),
Berserk(),
Incarnation(),
CastSpell("Mangle", ret => Me.ComboPoints < 5),
CastSpell("Ferocious Bite", ret=> HostileHasMyAura("Rip", 100, 0, 0), ret=> Me.ComboPoints == 5),
SelfBuff("Force of Nature", ret => HasTalent.Contains("Force of Nature") && ValidTarget(MeleeTarget)),
CastSpell("Mangle", ret=> MeleeTarget, ret => (Me.EnergyPercent >= 50 || Me.HasAura("Berserk"))),
CastSpell("Wild Charge", ret => HasTalent.Contains("Wild Charge") && DruidSettings.Instance.WildCharge && IsFacing(MeleeTarget) && !InRange(MeleeTarget) && !Me.Rooted));
}
......

1. Check Feral or Guardian skilled,
2. Composite FeralRotation() => Me.CurrentMap.IsArena, FeralPVP
3. The FeralPvP Start that means he buff Savage Roar but dont attack :/ in Pve, and on Pupped he attack just not in arena ...

I hope that help I like the other ccs as well but i thing abbout lazzy raider in arena and tested the other ccs and I think that coult be improved...
 
Last edited:
I really wanted to help you, but there are just too many variables that i cant see in your snippet.

You may post a logfile or attach atleast the complete file.
 
Just make a PvP CR that work in arena, ccvcc

I see a lot of request for it.

Yes I see good druid CR out there but that doesn't mean there are not place for other CR with improvement.

For the "do not attack in arena" I show you my work around code when I can get back to my home PC.
 
In fact my comment was not to discourage him at all... i'm just sad to see that he choose to develop a CC for feral druids with a very good CC already existing. Do not see bad comments where they really are not
The point is that you weren't even close to answering OP's question, so why post? He wasn't soliciting your judgement regarding the sadness you felt on how he chooses to spend his free time. He wasn't requesting feedback on the perceived value of the deliverables produced by that activity that he would share with the HonorBuddy Community freely. Ultimately there are so many threads to choose from on this and other forums, with so many questions and comments that you could be helpful with, that the best rule of thumb would be if you aren't answering the OP's question, better to not post in that thread and move on to the one you can be of assistance with.

I Worked on a Druid Feral CC it will be Pubblic soon, it work fine on Pupped and Pve but I have a problem and thought you coult probably help me. The Problem is that in Arena via LazzyRaider he just wont attack :/
He Swift form to cat, he SwiftForms if Rooted, and Savage Roar but just Wont attack :/
And Like i sad in pve and on Pupped, even in Duels where i dont want it it work fine :/
ccvcc, The advice and willingness to help form handnavi and TuanHA is coming from two Combat Routine pro's. My suggestion is to provide the information they request and then follow the advice they provide.

As for a more topic appropriate response to your original question, LazyRaider is a manual assist botbase. It sounds like you already are familiar with this, but to be sure.... It doesn't initiate attacks on anything leaving full control of the target selecting and attack timing to you. LazyRaider only calls your Combat behavior once you have already entered combat with the enemy. The two primary ways of that happening is the user initiating combat by casting a debuff or attack, or the enemy attacking you first and putting you into combat. To get a specific answer to your question though, you'll need to provide the info the other CR Devs have already requested. Best of luck with your efforts, Bobby53
 
Last edited:
I can't download the attachment in your PM, can you please get me on skype? I know how to fix this and there are room for improvement too.

I play druid in cata, I still remember how class work.

My Skype is tuanha2000vn

edit: tried to edit your code on 1st page but there are too many missing element, please send me the full project if you want. :D
 
Back
Top