zmilla93 / SlimTrade

A trade UI overlay for Path of Exile
MIT License
133 stars 15 forks source link

Request: Allow Comma separated Character name list #46

Closed Noshei closed 6 months ago

Noshei commented 2 years ago

What feature would you like added? Allow the Character name filed to accept a comma separated list of character names. Configure anything that uses the character name to loop through the names until one works then exit the loop.

Why do you want this feature added? This would allow for slim trade to work across multiple characters at the same time without requiring that you change the name every time you change characters.

zmilla93 commented 2 years ago

While I do want to improve multiple character support, I'm not sure you have the right solution. The only feature that uses character name is the "/kick {self}" macro. There isn't a way to check which name is correct without spamming in game chat, which isn't ideal. I've considered adding a selection menu to the menubar/system tray to allow for quicker switching, but it is only marginally better.

I do have one idea for automated switching. If you whisper any character name on your account, you will receive a whisper from yourself on the character that is logged in. This means as long as the old character exists, you'll be able to switch to a new character name with a single button press/hotkey. This is the solution I'm leaning towards.

GGG should really just add a dedicated leave party command.

arollyson commented 2 years ago

If you're willing to make some HTTP requests, there might be a way to do this a little smarter by using the PoE website's get-characters route. You can grab a JSON array of a public account's characters from here like so: https://www.pathofexile.com/character-window/get-characters?accountName=mathil. There is a boolean called lastActive that gets set on every zone change (as far as I can tell) that you could use to find the current character.

{"name":"DeadeyeSelfCastGIGACHAD","league":"Archnemesis","classId":2,"ascendancyClass":2,"class":"Deadeye","level":94,"experience":2680024904,"lastActive":true}
zmilla93 commented 6 months ago

Added a hotkey to change character in v0.4.0. Requires that your previous character still exist.