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

How to edit Trinity for Wave of Force as mandatory

whjsky

New Member
Joined
Apr 15, 2014
Messages
7
Reaction score
0
Hello all,

I know there's post in sticky about change skills activation, but it's out-dated for Trinity 1.8.21

I'm Fire Wiz, I would like to use Wave of Force as my main attack and Spectral Blade as AP regen attack.

Here is what I change:

Code:
/ Wave of force
                if (!UseOOCBuff && !Player.IsIncapacitated && Player.PrimaryResource >= 25 && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce) &&
                    (TargetUtil.AnyElitesInRange([COLOR="#FF0000"]20, 1[/COLOR]) || TargetUtil.AnyMobsInRange([COLOR="#FF0000"]20, 1[/COLOR]) || Player.CurrentHealthPct <= 0.7 || (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= [COLOR="#FF0000"]20f[/COLOR])))
                {
                    return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
                }

but it seems not working as I expected. The bot uses Spectral Blade as main attack and sometimes use WOF. How should I edit it to spam W.O.F then use Spectral Blade to regen AP.

Thanks.
 
Hello all,

I know there's post in sticky about change skills activation, but it's out-dated for Trinity 1.8.21

I'm Fire Wiz, I would like to use Wave of Force as my main attack and Spectral Blade as AP regen attack.

Here is what I change:

Code:
/ Wave of force
                if (!UseOOCBuff && !Player.IsIncapacitated && Player.PrimaryResource >= 25 && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce) &&
                    (TargetUtil.AnyElitesInRange([COLOR="#FF0000"]20, 1[/COLOR]) || TargetUtil.AnyMobsInRange([COLOR="#FF0000"]20, 1[/COLOR]) || Player.CurrentHealthPct <= 0.7 || (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= [COLOR="#FF0000"]20f[/COLOR])))
                {
                    return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
                }

but it seems not working as I expected. The bot uses Spectral Blade as main attack and sometimes use WOF. How should I edit it to spam W.O.F then use Spectral Blade to regen AP.

Thanks.

I've wanted to achieve the same thing. Haven't got round to editting .cs files yet tho.

I'm no code writer, but from what I understand, your code will only use WoF when your health is less than 70%, and then only if a target is within 0 distance?
 
Go back a few pages in trinity forums or search wave of force. You will find the right code, not spams it for me now. I'm on my phone don't feel like looking and copy and paste.
 
Back
Top