Before i say anything, thank you borderjs for your GearSwap plugin, i've made some modification from there onwards to proudly present to everybody
What is GearSwap Extreme?
Added the ability to swap gears before casting a skill
Why do i need that?
Swap in full elemental set before casting an elemental skill or equip legendary with skill modification (e.g. Wand of Woh) before casting a skill, or both!
What is required for this to work?
If you don't do anything it it'll work like a normal GearSwap which swaps gears depending on environmental statuses. But If you want it to work with skills you would have to use Trinity, and edit Trinity -> Combat -> Abilities -> CombatBase.cs
How to make it swap before casting skills?
Step 1: Run DemonBuddy and enable GearSwapExtreme, this is generate Managed.txt and Priority.txt file in DemonBuddy->Settings->GearSwapExtreme->[PlayerName#BattleTag]
Step 2:
Close DemonBuddy and edit the Priority.txt file to add in your skill name.
The skill name needs to be a qualified name that can be found in Trinity -> Configuration -> TVars.cs.
A qualified skill name will be Wizard_MagicMissile
Step 3: Run DemonBuddy again and load up GearSwap Extreme config. You will see three list box. Your skill will appear in the Condition List
Step 4: To assign a gear to your skill, you will need to click Capture to get your equipped gear, it is a must that the bot is paused before doing so
Step 5: Click on the skill in the Condition List and click on gear(s) in the Current List then click Add, this will send the gear to the Managed List. Click Save if you're happy with the gears in the Managed List
My default gear isn't swapping back correctly! how do i fix that?
Sometimes GearSwap Extreme doesn't swap back your default gear when it swaps between skill gear and environment condition gear, to make sure it always swaps back to your default gear when there are no conditions present, you can add your current equipped set to the managed gear list as Default condition. Also make sure Default is set to the lowest priority.
Step 6 [Optional]: Open up GearSwap Extreme configuration and then click Capture, then click Add All As Default Gear, this will add all your currently equipped gear into the Managed List as default gear, click Save if you're happy with it.
You can change your default gear by clicking Clear Default Gear and then Add All As Default Gear then Save to refresh your default gear
Please also note that skill condition priority works the same as other priorities. So let's say if Wizard_ExplosiveBlast is set below Elite and when an elite is present GearSwap Extreme will not swap in your Wizard_ExplosiveBlast gear to cast it.
I hope i gave out enough information for you to make it work and happy swapping! If you like my modification feel free to buy me a new computer!
Update: v3.0
1. Includes GearSwapSVN21 changes
2. Added Gloves of Worship support
3. More robust sequence for preserving Vyr's set after equipped on Archon mode
Note: Need to change "hasGear" to "HasGear" in trinity to accomodate new coding convention
Update: v2.3
1. Vyr's set gear won't be replaced when player is in Archon mode
Update: v2.2
1. Fix priority.txt not getting written properly
Update: v2.1
1. Added skill window slider, this slider determines how long the gear should stay equipped before getting swapped out (Warn: this duration is how long the pulse will be paused. Condition statuses gears will get affected, so don't set too long)
View attachment GearSwapExtreme_v3.0.zip
To borderjs: Thank you so much for your great work, i really learned alot from what you've done and hope you'll consider adding my modification into your main trunk. If you do, sorry for my messy code and also this modification is done on top of your revision as of last saturday 10th May 2014.
Other findings: preliminary findings to element and elite bonuses indicates that bonus damage is calculated on hit. Meaning that if i swap in Wand of Woh before casting and swap in full elite gear after casting, the elite bonus will register.
GearSwap Extreme
What is GearSwap Extreme?
Added the ability to swap gears before casting a skill
Why do i need that?
Swap in full elemental set before casting an elemental skill or equip legendary with skill modification (e.g. Wand of Woh) before casting a skill, or both!
What is required for this to work?
If you don't do anything it it'll work like a normal GearSwap which swaps gears depending on environmental statuses. But If you want it to work with skills you would have to use Trinity, and edit Trinity -> Combat -> Abilities -> CombatBase.cs
Code:
public static bool CanCast(SNOPower power, CanCastFlags flags = CanCastFlags.All)
{
bool hasPower = Hotbar.Contains(power);
if (!hasPower)
return false;
// Skip this or Barb, Crusader, WD
if (Player.ActorClass == ActorClass.Wizard || Player.ActorClass == ActorClass.DemonHunter || Player.ActorClass == ActorClass.Monk)
{
bool timer = flags.HasFlag(CanCastFlags.NoTimer) || SNOPowerUseTimer(power);
if (!timer)
return false;
}
bool powerManager = flags.HasFlag(CanCastFlags.NoPowerManager) || PowerManager.CanCast(power);
if (!powerManager)
return false;
[COLOR="#FF0000"]
// Add the following lines in red
if (!GearSwap.Plugin.HasGear(power.ToString()))
return false;
[/COLOR]
return true;
}
How to make it swap before casting skills?
Step 1: Run DemonBuddy and enable GearSwapExtreme, this is generate Managed.txt and Priority.txt file in DemonBuddy->Settings->GearSwapExtreme->[PlayerName#BattleTag]
Step 2:
Close DemonBuddy and edit the Priority.txt file to add in your skill name.
The skill name needs to be a qualified name that can be found in Trinity -> Configuration -> TVars.cs.
A qualified skill name will be Wizard_MagicMissile
Step 3: Run DemonBuddy again and load up GearSwap Extreme config. You will see three list box. Your skill will appear in the Condition List

Step 4: To assign a gear to your skill, you will need to click Capture to get your equipped gear, it is a must that the bot is paused before doing so
Step 5: Click on the skill in the Condition List and click on gear(s) in the Current List then click Add, this will send the gear to the Managed List. Click Save if you're happy with the gears in the Managed List
My default gear isn't swapping back correctly! how do i fix that?
Sometimes GearSwap Extreme doesn't swap back your default gear when it swaps between skill gear and environment condition gear, to make sure it always swaps back to your default gear when there are no conditions present, you can add your current equipped set to the managed gear list as Default condition. Also make sure Default is set to the lowest priority.
Step 6 [Optional]: Open up GearSwap Extreme configuration and then click Capture, then click Add All As Default Gear, this will add all your currently equipped gear into the Managed List as default gear, click Save if you're happy with it.
You can change your default gear by clicking Clear Default Gear and then Add All As Default Gear then Save to refresh your default gear
Please also note that skill condition priority works the same as other priorities. So let's say if Wizard_ExplosiveBlast is set below Elite and when an elite is present GearSwap Extreme will not swap in your Wizard_ExplosiveBlast gear to cast it.
I hope i gave out enough information for you to make it work and happy swapping! If you like my modification feel free to buy me a new computer!

Update: v3.0
1. Includes GearSwapSVN21 changes
2. Added Gloves of Worship support
3. More robust sequence for preserving Vyr's set after equipped on Archon mode
Note: Need to change "hasGear" to "HasGear" in trinity to accomodate new coding convention
Update: v2.3
1. Vyr's set gear won't be replaced when player is in Archon mode
Update: v2.2
1. Fix priority.txt not getting written properly
Update: v2.1
1. Added skill window slider, this slider determines how long the gear should stay equipped before getting swapped out (Warn: this duration is how long the pulse will be paused. Condition statuses gears will get affected, so don't set too long)
View attachment GearSwapExtreme_v3.0.zip
To borderjs: Thank you so much for your great work, i really learned alot from what you've done and hope you'll consider adding my modification into your main trunk. If you do, sorry for my messy code and also this modification is done on top of your revision as of last saturday 10th May 2014.
Other findings: preliminary findings to element and elite bonuses indicates that bonus damage is calculated on hit. Meaning that if i swap in Wand of Woh before casting and swap in full elite gear after casting, the elite bonus will register.
Attachments
Last edited: