ChrillePan
New Member
- Joined
- Dec 5, 2011
- Messages
- 24
- Reaction score
- 0
I try to make my own routines but it will not work as simple as i thougt 
I want to use Soulburn in preperation for Soul Swap and than casting Soul Swap itself!
I try to cast Souldburn as first and the toon will do it, but then it starts directly with Malefic Grasp
So, my first issue^^
The other one,
how can I buffed myself the soulstone?
I try to rename all parts of the textparts, but nothing :/
Grtz Chrille
I forget the most Important: My Code ( Part of it )
Soulstone
Dark Intent work, sometimes Soulstone, but not every time :/
Soulburn and Soul Swap
Soul Swap will not be casted :/

I want to use Soulburn in preperation for Soul Swap and than casting Soul Swap itself!
I try to cast Souldburn as first and the toon will do it, but then it starts directly with Malefic Grasp
So, my first issue^^
The other one,
how can I buffed myself the soulstone?
I try to rename all parts of the textparts, but nothing :/
Grtz Chrille
I forget the most Important: My Code ( Part of it )

Soulstone
Code:
private static bool NeedToCreateHealthStone
{
get
{
return !StyxWoW.Me.CarriedItems.Any(i => i.ItemSpells.Any(s => s.ActualSpell != null && s.ActualSpell.Name == "Healthstone"));
}
}
private static bool NeedToCreateSoulStone
{
get
{
return !StyxWoW.Me.CarriedItems.Any(i => i.ItemSpells.Any(s => s.ActualSpell != null && s.ActualSpell.Name == "Soulstone"));
}
}
[Behavior(BehaviorType.PreCombatBuffs, WoWClass.Warlock)]
public static Composite CreateWarlockPreCombatBuffs()
{
return new PrioritySelector(
Spell.WaitForCast(true),
Spell.BuffSelf("Create Healthstone", ret => NeedToCreateHealthStone),
Spell.BuffSelf("Create Soulstone", ret => NeedToCreateSoulStone),
new Decorator(
ret => !StyxWoW.Me.HasAura("Soulstone"),
new PrioritySelector(
ctx => Item.FindFirstUsableItemBySpell("Soulstone"),
new Decorator(
ret => ret != null,
new Sequence(
new Action(ret => Logger.Write("Using soulstone on myself")),
new Action(ret => WoWMovement.MoveStop()),
new Action(ret => StyxWoW.Me.ClearTarget()),
new Action(ret => ((WoWItem)ret).Use()),
new WaitContinue(System.TimeSpan.FromMilliseconds(500), ret => false, new ActionAlwaysSucceed()))))),
Spell.BuffSelf("Dark Intent", ret => !StyxWoW.Me.HasAura("Dark Intent")),
Spell.BuffSelf("Health Funnel", ret => StyxWoW.Me.GotAlivePet && PetManager.PetTimer.IsFinished && StyxWoW.Me.Pet.HealthPercent < 60 && StyxWoW.Me.HealthPercent > 40)
);
}
Code:
{
return new PrioritySelector(
Spell.WaitForCast(false),
Pet.CreateSummonPet("Voidwalker"),
new Decorator(
ret => !SpellManager.HasSpell("Summon Voidwalker"),
Pet.CreateSummonPet("Voidwalker")),
Spell.Buff("Dark Intent",
ret => StyxWoW.Me.PartyMembers.OrderByDescending(p => p.MaxHealth).FirstOrDefault(),
ret => !StyxWoW.Me.HasAura("Dark Intent")),
Spell.Buff("Soulstone",
ret => StyxWoW.Me.PartyMembers.OrderByDescending(p => p.MaxHealth).FirstOrDefault(),
ret => !StyxWoW.Me.HasAura("Soulstone"))
);
}
Dark Intent work, sometimes Soulstone, but not every time :/
Soulburn and Soul Swap
Code:
{
return new PrioritySelector(
Safers.EnsureTarget(),
Movement.CreateMoveToLosBehavior(),
Movement.CreateFaceTargetBehavior(),
Spell.WaitForCast(true),
Spell.PreventDoubleCast(_Doublecast),
Helpers.Common.CreateAutoAttack(true),
Helpers.Common.CreateInterruptSpellCast(ret => StyxWoW.Me.CurrentTarget),
//Double cast protection
//new Decorator(ret => StyxWoW.Me.CurrentTarget.HasMyAura("Unstable Affliction") && StyxWoW.Me.CastingSpell != null && StyxWoW.Me.CastingSpell.Name == "Unstable Affliction",
// new Styx.TreeSharp.Action(r => SpellManager.StopCasting())),
new Decorator(ret=> StyxWoW.Me.CurrentTarget.HealthPercent > 20.0f,
new PrioritySelector(
Spell.Cast("Haunt", ret => !StyxWoW.Me.CurrentTarget.HasMyAura("Haunt")),
Spell.Cast("Soulburn", ret => !StyxWoW.Me.HasAura("Soulburn")),
Spell.Cast("Soul Swap", ret => StyxWoW.Me.HasAura("Soulburn")),
Spell.Cast("Malefic Grasp")
)) ,
new Decorator(ret=> StyxWoW.Me.CurrentTarget.HealthPercent <= 20.0f,
new PrioritySelector(
Spell.Buff("Haunt", ret => !StyxWoW.Me.CurrentTarget.HasMyAura("Haunt")),
Spell.Cast("Drain Soul"))),
Movement.CreateMoveToTargetBehavior(true, 35f)
);
}
Soul Swap will not be casted :/
Last edited: