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

Wand of Woh Trinity

Status
Not open for further replies.

qutazs

New Member
Joined
May 10, 2014
Messages
60
Reaction score
1
Hi everyone (especially rrrix)

I've made some modifications to Trinity 1.9.8 to allow Wizards with Wand of Woh to click a checker under Wizard settings.
You can see it in the following image:

h9y6Pmz.webp


Files changed:
Combat/Abilities/Wizard.cs
Settings/Combat/WizardSetting.cs
UI/Combat/ConfigWiz.xaml

Here is the files needed for it to work (just extract the zip to the Plugin folder and overwrite the files)

View attachment Trinity_WandOfWoh.zip

"Explosive Blast spam?" Enabled = Will cast Explosive Blast everytime its off cooldown and is out of town.
Disabled = Standard Trinity explosive blast. :-)

It works with other abilities aswell, mine is running with Wave of Force next to Explosive blast.
 
Thanks! This is awesome. Is there any way you can post what changes you made so we can reference this in the future when Trinity gets updated?
 
Of course!

Changes in Combat/Abilities/Wizard.cs
Code:
// Explosive Blast
if (!useOocBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 20)
{
     return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 12f, CurrentTarget.Position);
}

to

Code:
// Explosive Blast
if(Settings.Combat.Wizard.GotWandOfWoh) {
     if (CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && !Player.IsInTown)
     {
           return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 10f);
     }
}
else
{
     if (!useOocBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 20)
     {
          return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 12f, CurrentTarget.Position);
     }
}

Added in Settings/Combat/WizardSetting.cs
Code:
private bool _GotWandOfWoh;

plus

Code:
[DataMember(IsRequired = false)]
        [DefaultValue(false)]
        public bool GotWandOfWoh
        {
            get
            {
                return _GotWandOfWoh;
            }
            set
            {
                if (_GotWandOfWoh != value)
                {
                    _GotWandOfWoh = value;
                    OnPropertyChanged("GotWandOfWoh");
                }
            }
        }

Changes in UI/Combat/ConfigWiz.xaml
Code:
<CheckBox Margin="2" IsChecked="{Binding Path=Wiz.GotWandOfWoh}">Explosive Blast Spam?</CheckBox>

This last part is added just after the following:
Code:
<CheckBox Margin="2" IsChecked="{Binding Path=Wiz.WaitArchon}">Wait for Archon CD at Azmo</CheckBox>

which is near the bottom of the file.

Hopefully Rrrix will find a way to auto register the wand :-) If someone can get the ID of the item it would be great.
 
Would be nice to get support added for a Wand of Woh build entered in from somewhere

In addition to the above ... I use teleport - calamity in my build... changed to make it spam when available

Change to this:
Code:
                bool hasCalamity = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Wizard_Teleport && s.RuneIndex == 0);
                // Offensive Teleport: Calamity
                if (CombatBase.CanCast(SNOPower.Wizard_Teleport, CombatBase.CanCastFlags.NoTimer) && hasCalamity)
                {
                    var bestClusterPoint = TargetUtil.GetBestClusterPoint(5f, 10f);
                    return new TrinityPower(SNOPower.Wizard_Teleport, 55f, bestClusterPoint);
                }

from this:
Code:
                bool hasCalamity = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Wizard_Teleport && s.RuneIndex == 0);
                // Offensive Teleport: Calamity
                if (CombatBase.CanCast(SNOPower.Wizard_Teleport) && hasCalamity)
                {
                    var bestClusterPoint = TargetUtil.GetBestClusterPoint();
                    return new TrinityPower(SNOPower.Wizard_Teleport, 55f, bestClusterPoint);
                }

And in order to spam outside of combat as well

Change this (PlayerMover.cs):
Code:
                // Teleport for a wizard 
                if (!hasCalamity && CombatBase.CanCast(SNOPower.Wizard_Teleport, CombatBase.CanCastFlags.NoTimer) &&
                    CombatBase.TimeSincePowerUse(SNOPower.Wizard_Teleport) > 250 &&
                    destinationDistance >= 10f && !ShrinesInArea(vMoveToTarget))
                {

to this (PlayerMover.cs):
Code:
                // Teleport for a wizard 
                if (CombatBase.CanCast(SNOPower.Wizard_Teleport, CombatBase.CanCastFlags.NoTimer) &&
                    CombatBase.TimeSincePowerUse(SNOPower.Wizard_Teleport) > 250 &&
                    destinationDistance >= 10f && !ShrinesInArea(vMoveToTarget))
                {

I've let it run for a while and watched it.. it does what its supposed to (spam teleport ... basically always, ooc and into groups of mobs as well). But i haven't watched it for very long
 
Hi everyone (especially rrrix)

I've made some modifications to Trinity 1.9.8 to allow Wizards with Wand of Woh to click a checker under Wizard settings.
You can see it in the following image:

View attachment 131726

Great!
Is there a way to force wizard to close combat range aswell? I use wand of woh with spectral blades, but they're range 15 while blast is 12...
Any suggestion?
thanks!
 
hello, tx for the job.
I have same question, the only problem is that explosion blast are a little too far so like Darkaleb could you tell us how to force wizard to attack as close as possible to monsters.
Thanks for your answer
 
Thanks so much for the code above!

Works Great!

Do you accept donations?
 
Last edited:
Great!
Is there a way to force wizard to close combat range aswell? I use wand of woh with spectral blades, but they're range 15 while blast is 12...
Any suggestion?
thanks!

You could set the min range of spec blades to 10

Item ActorSNO=272086

EquippedItemCache.Instance.ItemIds.Contains(272086)

or

ZetaDia.Me.Inventory.Equipped.Any(i => i.ActorSNO == 272086)
 
Last edited:
I have found out a more simple solution

I have set
return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 10f);
to
return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 45f);
in
Trinity/Combat/Abilities/Wizard.cs

So the radius is increased and it will blast all the time
 
This works decent. But I often find my wizard sitting outside of explosive blast shooting his basic wand attack. Wastes alot of time, any way to modify this? It would be great if we could just make the wizard not use regular attack at all and just keep moving around targets until they're dead. This would allow me to use my hexing pants. I currently don't use hexing pants because the wizard will stand in one spot quite often.
 
no one can answer plz ? it would be really great
i have hexing pants too and cant use them and i could kill very fast targets with a close range.
so thanks again and again for your answer
 
Amazing work so far :) Looking for teleport clamity spam and also make my frost nova used more he doesnt use it always only sometimes
 
Any help on spectral blade? I have edit wizard.cs spectral blade to 5f and also explosive blast. Still blasting outside the range with spectral blade. Any help will be appreciated!
 
Work pretty well with my WZ now
// Spectral Blade
if (!useOocBuff && !isCurrentlyAvoiding && CombatBase.CanCast(SNOPower.Wizard_SpectralBlade))
{
return new TrinityPower(SNOPower.Wizard_SpectralBlade, 10f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 1);
}

Any help on spectral blade? I have edit wizard.cs spectral blade to 5f and also explosive blast. Still blasting outside the range with spectral blade. Any help will be appreciated!
 
Of course!

Changes in Combat/Abilities/Wizard.cs
Code:
// Explosive Blast
if (!useOocBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 20)
{
     return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 12f, CurrentTarget.Position);
}

to

Code:
// Explosive Blast
if(Settings.Combat.Wizard.GotWandOfWoh) {
     if (CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && !Player.IsInTown)
     {
           return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 10f);
     }
}
else
{
     if (!useOocBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_ExplosiveBlast, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 20)
     {
          return new TrinityPower(SNOPower.Wizard_ExplosiveBlast, 12f, CurrentTarget.Position);
     }
}

Added in Settings/Combat/WizardSetting.cs
Code:
private bool _GotWandOfWoh;

plus

Code:
[DataMember(IsRequired = false)]
        [DefaultValue(false)]
        public bool GotWandOfWoh
        {
            get
            {
                return _GotWandOfWoh;
            }
            set
            {
                if (_GotWandOfWoh != value)
                {
                    _GotWandOfWoh = value;
                    OnPropertyChanged("GotWandOfWoh");
                }
            }
        }

Changes in UI/Combat/ConfigWiz.xaml
Code:
<CheckBox Margin="2" IsChecked="{Binding Path=Wiz.GotWandOfWoh}">Explosive Blast Spam?</CheckBox>

This last part is added just after the following:
Code:
<CheckBox Margin="2" IsChecked="{Binding Path=Wiz.WaitArchon}">Wait for Archon CD at Azmo</CheckBox>

which is near the bottom of the file.

Hopefully Rrrix will find a way to auto register the wand :-) If someone can get the ID of the item it would be great.

You are amazing. Thank you for post.
 
Can we have this added to the Base Trinity please? I'm having trouble adding this up on my since since I know no coding whatsoever. So even something as simple as "adding" what was posted above has led me to having to reinstall Trinity since somehow I effed it up.
 
Can we have this added to the Base Trinity please? I'm having trouble adding this up on my since since I know no coding whatsoever. So even something as simple as "adding" what was posted above has led me to having to reinstall Trinity since somehow I effed it up.

Trinity does this already, you're way late to this party.
 
Status
Not open for further replies.
Back
Top