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

[Question] Switch weapon sets

Alexandr_063

New Member
Joined
Dec 21, 2017
Messages
2
Reaction score
0
Hi there!
How I can switch weapon sets from plugin?
I found how check current weapon set (LokiPoe.InstanceInfo.WeaponSet), but this read only property.
 
you can't apparently. i asked this like 2 years ago sadly no one had anything
 
you can't apparently. i asked this like 2 years ago sadly no one had anything

We have always supported swapping weapon sets, as it's simply pressing a key!

Code:
LokiPoe.Input.SimulateKeyEvent(LokiPoe.Input.Binding.weapon_swap, true, false, false);

Keep in mind what I mentioned here about DevTab and input keybinds! https://www.thebuddyforum.com/threads/bestiary-implementation.417278/#post-2549889

You'll most likely want to LatencyWait some so the action takes effect as it's a server driven action.
 
We have always supported swapping weapon sets, as it's simply pressing a key!

Code:
LokiPoe.Input.SimulateKeyEvent(LokiPoe.Input.Binding.weapon_swap, true, false, false);

Keep in mind what I mentioned here about DevTab and input keybinds! https://www.thebuddyforum.com/threads/bestiary-implementation.417278/#post-2549889

You'll most likely want to LatencyWait some so the action takes effect as it's a server driven action.
Hmm I asked this literally a year or two ago and even covered that you can't in my guide...I'm glad to be mistaken!

Now that I know you can do this I'm wondering what would be the best thing to do...maybe swap to Chin Sol? @pushedx any use cases that I can look at or ideas people have had for this?
 
Weapon swapping in this game is a bit annoying, because you lose bound skills on your LMB if it's on your primary weapon. It then gets re-assigned to another empty slot if possible, so you have to take that into consideration.

As for the uses of weapon swapping, back in the day, people would weapon swap for a culling effect along with magic find modifiers, but the game mechanics nowadays aren't such that it's really common. I'm sure there are creative things you can do with it, but most people rather keep things simple and as fast as possible rather than slowing down to swap weapons or run slower logic trying to perfectly finish off a monster, just IMO.
 
@pushedx yeah that makes sense. if i ever have a brainwave about swapping Ill make sure to let everyone know. thanks for the info!!!!
 
We have always supported swapping weapon sets, as it's simply pressing a key!
Code:
LokiPoe.Input.SimulateKeyEvent(LokiPoe.Input.Binding.weapon_swap, true, false, false);

Thank you!
Why you last parameter (up) is false? Is it simulate holding of button or I mistake?
 
It's more of how the game is handling the event being generated. With how we emulate input with the client, what was posted is basically used for almost all action key presses because that's what works - passing true for the second parameter generates a second action, and you get undesired results a lot of time.
 
Back
Top