• Visit Rebornbuddy
  • CullingSwitch Plugin

    Discussion in 'Archives' started by naut, Oct 15, 2014.

    1. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Hello again.

      I needed a break from the masters plugin to chill out so in my spare time I created CullingSwitch.

      This plugin will force the bot to switch to your secondary weaponslot when Piety/Dominus fall below 10% health, and then back to your main weapon after the boss has been killed.

      The purpose of this is for those who use a weapon with culling strike on their weapon switch to save from linking it to their main skillgem.

      View attachment CullingSwitch.zip
       
      Last edited: Oct 15, 2014
      Sapin32 likes this.
    2. BigBudda87

      BigBudda87 Member

      Joined:
      May 5, 2012
      Messages:
      243
      Likes Received:
      0
      Trophy Points:
      16
      if i want add a spell to the exampleroutine where culling strike is linked to how should it looks like?
       
    3. Sapin32

      Sapin32 Member

      Joined:
      Jun 7, 2010
      Messages:
      100
      Likes Received:
      0
      Trophy Points:
      16
      + rep, greatly apreciated !
       
    4. kodwim

      kodwim Member

      Joined:
      May 7, 2014
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      we need the ability to set skill for this plugin to make it more useful. in general, our main attack skill is on our chest , switch weapon don't change that, so, the bot will still use the same skill we set in ExampleRoutine to attach BOSS, right?
      if we can switch to the secondary weaponslot and set to use the skills on the secondary weaponslot , then we can have main skill + iir + iiq + Culling. that will be better!
       
    5. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18

      I made this to be used with a weapon that has culling stike on it, not to switch to a different culling strike spell.

      If you want to use a particular skill for culling strike that needs to be edited in the exampleroutine, I posted an example of how to do that in another post if you browse a bit.
       
    6. BigBudda87

      BigBudda87 Member

      Joined:
      May 5, 2012
      Messages:
      243
      Likes Received:
      0
      Trophy Points:
      16
      naut a question. when i switch weapon can the plugin say the CR to use a other skill at 10% of boss life? i use the Heartbreaker an would use a skill where is item rarity linked to. maybe you can explaine something to do that.

      greets
       
    7. h11brid

      h11brid New Member

      Joined:
      Jun 16, 2012
      Messages:
      22
      Likes Received:
      0
      Trophy Points:
      0
      It's not always switching back to my main weapon. And we really need the ability to make it use another attack for the cull, we could have it use item rarity gem, which would be very very nice
       
    8. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      The cooldown for switch may require some tweaking.

      As I said above, this plugin is not designed to use a different skill, that would be entirely different, and not what I made this for.
       
    9. h11brid

      h11brid New Member

      Joined:
      Jun 16, 2012
      Messages:
      22
      Likes Received:
      0
      Trophy Points:
      0
      Appreciate your work sir. Was just thinking that you're probably using this to cull with the rarity axe and that would go hand in hand with a rarity gem supported skill.
       
    10. kevel

      kevel Member

      Joined:
      May 1, 2013
      Messages:
      71
      Likes Received:
      0
      Trophy Points:
      6
      Will it use a different attack if you cant use your main skill? For example I use dual striek for my main skill so it cant switch to my offhand cull axe and use dual strike.
       
    11. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      No sorry in this situation it would not work.
       
    12. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Using a different skill for this purpose would require the exampleroutine itself to be edited, a plugin alone would not handle that logic.
       
    13. j19

      j19 Member

      Joined:
      Mar 13, 2014
      Messages:
      59
      Likes Received:
      1
      Trophy Points:
      8
      Thanks for this plugin!

      Unfortunately I'm not able to make it work consistently.
      I'm using a main skill in my weapon and I'm trying to make it cull-switch to the other weapon while using the same skill in the same slot with different supports (Culling Strike + Item Rarity). Currently it switches about 1 times out of 3 and occasionally it doesn't switch back after the cull.

      I've looked at the code but I don't understand where the inconsistency would come from. As far as I can see it should just check health of Piety - if less than 10% switch weapon and start counting - CR should attack with skill in same slot as usual - when plugin is finished counting and Piety is dead it switches back to the regular weapon.

      Do you or anyone else know how to edit the plugin and/or the CR to cull-switch consistently, use an identical skill gem in the cull weapon with different supports and then make sure the regular weapon is in use after the fight?
       
    14. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Hi j19,
      I'm working on a fix for fabcard for this plugin atm, I'll post when It's done.
       
    15. fabcard

      fabcard Member

      Joined:
      Nov 7, 2013
      Messages:
      131
      Likes Received:
      1
      Trophy Points:
      18
      Yay!!! Thank you very much, darkbluefirefly. Can't wait for it.
      Sorry for bothering you...
      Have a nice weekend :D
       
    16. fabcard

      fabcard Member

      Joined:
      Nov 7, 2013
      Messages:
      131
      Likes Received:
      1
      Trophy Points:
      18
      Hello friends,

      Any news on the changes you were doing for this plugin, darkbluefirefly?
      Thanks.
       
    17. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Hey fabcard,
      I have not worked on it since the downtime, I'll try to get some time into it tonight, when all bots are running smoothly.
       
    18. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Hey All,
      Ok so it works now, I gotta tweak some settings and make some changes. For now this works

      Find at the end of the .cs

      replace:
      Code:
              private void DoCullingSwitch()
              {
                  LokiPoe.Input.SwapWeapons();
              }
      replace with:
      Code:
              private void DoCullingSwitch()
              {
                  bool swapCull = false;
      			string _offLeftHandInvCombat = LokiPoe.InGameState.InventoryPanel.OffLeftHand.FullName;
      			while (!swapCull)
      			{
      				LokiPoe.Input.SwapWeapons();
      				string _currentLeftHandInvCombat = LokiPoe.InGameState.InventoryPanel.LeftHand.FullName;
      				if (_currentLeftHandInvCombat == _offLeftHandInvCombat)
      				{
      					swapCull = true;
      					break;
      				}
      			}
              }
      Let me know if any issues.

      Edit*
      Ops I forgot to tell you, make sure the weapon's name is Different on the Left slot. It's checking for the switch via LeftHand.FullName so if you have 2 uniques the same it won't work.
      Thanks Pushedx for helping me try to figure out another method to check if it's properly swapped.
      Working on adding checks for sockets, and quality for more assurance that it swapped properly.
       
      Last edited: Jan 22, 2015
    19. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      why not check for the presence of a culling strike skillgem in the sockets?

      Code:
      					if (LokiPoe.InGameState.InventoryPanel.OffLeftHand != null)
      						{
      						var siLeft = LokiPoe.InGameState.InventoryPanel.OffLeftHand as SocketableItem;
      							
      						foreach (var Item in siLeft.SocketedSkillGemsByLinks)
      							{
      							foreach (var Item2 in Item)
      								{
      								if (Item2 == null)
      								continue;
      						
      								if (Item2.FullName == "Culling Strike")
      									{
      									LokiPoe.Input.SwapWeapons();
      									}
      								}
      							}
      						}
      
       
    20. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Hey Nepthys,
      Great idea, that actually works better!

      Edit* Ok I just had a closer look at naut's code.
      What he's doing is switching to cull, then after X time, switches back when the boss is dead.
      Well, we can modify this to work on Uniques(I hope bosses are in same category as unique)
      1; Check for Target's HP to be at threshold on tick();
      2; Switch to cull
      3. Check for presence of Cull on main hand
      4. Let CR do it's work
      5. Check for death of Target
      6; Swap back.
      I'll see what I can come up with.
       
      Last edited: Jan 22, 2015

    Share This Page