Hey,
I'm today testing as much as I can with a 1 day license and I think I will buy a full license tomorrow. But when I started testing Instancebuddy, there is something I dont want the bot to do. I hope this is the right forum section since its editing a class..
I was botting my lowlvl mage in an instance and he tried to polymorph 1 mob at every single trash group. Of course the tank did aoe damage and broke the sheep, and my mage cc'ed again and again.
Well, i looked through the *.cs files and found this section at common.cs
(Its at the very bottom of that file.
Im not much into writing classes (not yet =) )but I think this is what handles the polymorph, isnt it?
Is it enough to delete that part and he would stop trying to sheep the mobs? Its hard to find an excuse if everyone asks why im always sheeping =)
I hope you get what i mean..
edit: ok, should not post before trynig it out.. did it by myself now, if everyone else wants to know it: I deleted the part above, but you have to delete the line
from any other *.cs too.
sorry for asking too early
I'm today testing as much as I can with a 1 day license and I think I will buy a full license tomorrow. But when I started testing Instancebuddy, there is something I dont want the bot to do. I hope this is the right forum section since its editing a class..
I was botting my lowlvl mage in an instance and he tried to polymorph 1 mob at every single trash group. Of course the tank did aoe damage and broke the sheep, and my mage cc'ed again and again.
Well, i looked through the *.cs files and found this section at common.cs
Code:
public static Composite CreateMagePolymorphOnAddBehavior()
{
return
new PrioritySelector(
ctx => Unit.NearbyUnfriendlyUnits.OrderByDescending(u => u.CurrentHealth).FirstOrDefault(IsViableForPolymorph),
new Decorator(
ret => ret != null && Unit.NearbyUnfriendlyUnits.All(u => !u.HasMyAura("Polymorph")),
new PrioritySelector(
Spell.PreventDoubleCast(ret => (WoWUnit)ret, "Polymorph"),
Spell.Buff("Polymorph", ret => (WoWUnit)ret))));
}
private static bool IsViableForPolymorph(WoWUnit unit)
{
if (unit.IsCrowdControlled())
return false;
if (unit.CreatureType != WoWCreatureType.Beast && unit.CreatureType != WoWCreatureType.Humanoid)
return false;
if (StyxWoW.Me.CurrentTarget != null && StyxWoW.Me.CurrentTarget == unit)
return false;
if (!unit.Combat)
return false;
if (!unit.IsTargetingMeOrPet && !unit.IsTargetingMyPartyMember)
return false;
if (StyxWoW.Me.IsInParty && StyxWoW.Me.PartyMembers.Any(p => p.CurrentTarget != null && p.CurrentTarget == unit))
return false;
return true;
}
}
}
Im not much into writing classes (not yet =) )but I think this is what handles the polymorph, isnt it?
Is it enough to delete that part and he would stop trying to sheep the mobs? Its hard to find an excuse if everyone asks why im always sheeping =)
I hope you get what i mean..
edit: ok, should not post before trynig it out.. did it by myself now, if everyone else wants to know it: I deleted the part above, but you have to delete the line
Code:
Common.CreateMagePolymorphOnAddBehavior(),
from any other *.cs too.
sorry for asking too early
Last edited:






