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

[Plugin] GearSwap Extreme

The problem is when i cast Archon with Vyrs set and then an Setitem is switched Archon is canceled. And Archon lasts 20s so i have to change the SkillWindow to 20 secs which is way to long :D
 
Hi there, can you enable logging and copy paste a few lines from gearswap before it casts warcry? also, what is the priority of your skill?
will do. what i can tell you now is that i set it as the highest priority, because it for me it kinda is and there is nothing about the war cry cast popping up in db like for other statuses (e.g. "no items to equip for statuses chest xy xyz").

i also saw that there is a default management option for chilanik's for the movementspeed condition, doesn't work either :/
 
will do. what i can tell you now is that i set it as the highest priority, because it for me it kinda is and there is nothing about the war cry cast popping up in db like for other statuses (e.g. "no items to equip for statuses chest xy xyz").

i also saw that there is a default management option for chilanik's for the movementspeed condition, doesn't work either :/


Hi Genja, i just found out the skill name is "X1_Barbarian_WarCry_v2" give it a try, some skills are named differently in TVars. A more accurate way to learn about your skill name is to look into [YourClass].cs in Trinity -> Combat -> Abilities.
 
Last edited:
The problem is when i cast Archon with Vyrs set and then an Setitem is switched Archon is canceled. And Archon lasts 20s so i have to change the SkillWindow to 20 secs which is way to long :D

Can you give me the ActorSNO of full Vyr's set please? i'll create a 20 second timer once archon is casts and within the 20 second timer no gear can replace Vyr's set item
 
Can you give me the ActorSNO of full Vyr's set please? i'll create a 20 second timer once archon is casts and within the 20 second timer no gear can replace Vyr's set item
VYR’S ASTONISHING AURA - Armor: 332357
VYR’S FANTASTIC FINERY - Pants:332360
VYR’S GRASPING GAUNTLETS - Gloves: 346210
VYR’S SWAGGERING STANCE - Boots: 332363
 
Here's a quick and dirty modification, hope you don't mind testing this out for me.

View attachment 130350
Thanks but, doesn't seems to work.
What have i done:
- Added Vyrs set to standart gear
- Added Vyrs setr to skill Wizard_Archon on top priority

What happens:
Elitegrp with Ice Affix(Ice Climber)
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon
[GearSwap] Equipping Eiskletterer - Reason: Wizard_Archon no longer exists.
Archon ends cause Vyrs swapped

2nd Elite Grp:
Elitegrp with Ice Affix(Ice Climber)
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Reverting gear to original!
Archon ends cause Vyrs swapped
 
Last edited:
Hi Genja, i just found out the skill name is "X1_Barbarian_WarCry_v2" give it a try, some skills are named differently in TVars. A more accurate way to learn about your skill name is to look into [YourClass].cs in Trinity -> Combat -> Abilities.
hey, this sounds promising! i will try this now, thanks for the effort man
 
Thanks but, doesn't seems to work.
What have i done:
- Added Vyrs set to standart gear
- Added Vyrs setr to skill Wizard_Archon on top priority

What happens:
Elitegrp with Ice Affix(Ice Climber)
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon
[GearSwap] Equipping Eiskletterer - Reason: Wizard_Archon no longer exists.
Archon ends cause Vyrs swapped

2nd Elite Grp:
Elitegrp with Ice Affix(Ice Climber)
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Reverting gear to original!
Archon ends cause Vyrs swapped

Sorry i missed out something, here's a new one for you to test

View attachment GearSwapExtreme_ArchonSupport_v2.zip
 
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[ExploreDungeonTag] Marking nearby node <831.25, 603.75, 0> as visited, distance 30/30, IsVisisted=False
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
 
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[ExploreDungeonTag] Marking nearby node <831.25, 603.75, 0> as visited, distance 30/30, IsVisisted=False
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!

Here you go, i'm fairly certain this will work

View attachment GearSwapExtreme_ArchonSupport_v3.zip
 
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[Trinity] Goblin #1 in sight. Distance=65
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning

Still not working... Sorry

Just an idea without Timer:
Before switching gear add an If Statement like
Code:
if (ActorDia.Me.HasBuff(Wizard_Archon) && VyrsItemEquipped())
{
    cancelGearSwap();
}
else
{
 DoGearSwap()
}

Hope u understand my idea
 
Last edited:
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[Trinity] Goblin #1 in sight. Distance=65
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Reverting gear to original!
[GearSwap] Equipping: Xephirisches Amulett - Condition: Lightning

Still not working... Sorry

Just an idea without Timer:
Before switching gear add an If Statement like
Code:
if (ActorDia.Me.HasBuff(Wizard_Archon) && VyrsItemEquipped())
{
    cancelGearSwap();
}
else
{
 DoGearSwap()
}

Hope u understand my idea

Give me one more chance man, i perfectly understand what is happening according to your log, here's the fix.
View attachment GearSwapExtreme_v3.zip
I don't have the time to change the whole architecture of the plugin because i didn't started it from scratch. but a couple of quick fix will solve it, i'll implement user configurable timer for each skill when i have some free time.
 
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Reverting gear to original!
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Reverting gear to original

after aprox. 5secs he chages it

Edit just fixed the Problem(the simpleway)
PHP:
public static void EquipItem(Gear item, string msg, bool flag)
        //Equip the provided item, If flag is set then we are removing an original piece so must add it to the originalgear list.  
        //If flag is false then the original piece is already on the list.
        {

            //Get Current ID of item equiped in Inventory to see what we have equipped
            int currentItemId = Helpers.GetIdOfItemInSlot(item.GetInvSlot());
			int vyrsID = 0;
            int currentItemActorSNO = Helpers.GetActorSNOOfItemInSlot(item.GetInvSlot());
            string currentItemName = Helpers.GetItemNameInSlot(item.GetInvSlot());
			//Archon Check
            if (ZetaDia.Me.ActorClass == ActorClass.Wizard)
            {
				//Get Dynamical Item ID of Vyrs item for the current Slot
                switch (item.GetInvSlot())
                {
                    case InventorySlot.Hands: vyrsID = Helpers.GetIdOfItem(346210); break;
                    case InventorySlot.Torso: vyrsID = Helpers.GetIdOfItem(332357); break;
                    case InventorySlot.Legs: vyrsID = Helpers.GetIdOfItem(332360); break;
                    case InventorySlot.Feet: vyrsID = Helpers.GetIdOfItem(332363); break;
                }
                //checks if Player is in Archon and gearswap would affect a vyrs item 
                if (vyrsID != 0 && vyrsID != -999 && vyrsID == currentItemId && ZetaDia.Me.HasBuff(SNOPower.Wizard_Archon))
                    return;
            }
            //Check if current item Id is not the same as the one we are trying to equip, if not equip it! (this may not be necessary)
            if (currentItemId != item.GetDynamicId())
            {
                //add current item to the original gear list
                if (flag)
                {
                    originalGear.Add(new Gear(item, currentItemActorSNO, currentItemName));
                }
                WriteToLog(msg);
                ZetaDia.Me.Inventory.EquipItem(item.GetDynamicId(), item.GetInvSlot());
                Helpers.SetInUse(item.GetCondition());
            }
        }
 
Last edited:
that's exactly what i was looking for.
Will give it a try in few hours and respond.
 
smooth work so far!
One question only: Can i tune this to swap gear not only on spell using but on Combat enabled.
e.g. I farm set 1 bounties so I want to tune somethinf like this:
1) set for walking around looking for bounties while combat is disabled (Bounties zerg run)
2) set for fighting and completing bounties

I know that this could be solved by just attaching it to main attack spells BUT i see better potential in way I've described above.
Thank a lot!
 
First thx for the Credits -_-
2nd:
Your change doesnt seem to work ;)
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Reverting gear to original!
 
First thx for the Credits -_-
2nd:
Your change doesnt seem to work ;)
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Reverting gear to original!
i think u are fucked with priorities
 
First thx for the Credits -_-
2nd:
Your change doesnt seem to work ;)
[GearSwap] Equipping: Eiskletterer - Condition: Cold
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Equipping: Vyrs prahlerische Haltung - Condition: Wizard_Archon - Overrides prior status!
[GearSwap] Equipping: Eiskletterer - Condition: Cold - Replacing item flagged for removal!
[GearSwap] Reverting gear to original!

Well i didnt use your code, so much for trying to help you out. Ive tested this with my wiz and it works perfectly, however my default gear wasnt vyr. Ill look through it tomorrow
 
Back
Top