@ZOS? JumpToSpecificHouse -> List of player's houses
The latest API patch notes indicated that we will now be able to travel to more than just the player's default house. This is awesome news! I can think of several ways this new functionality could be used in addons.
However, there doesn't seem to be any way to actually know which houses a player has purchased so that you can decide which one to port to (out of simply trying every one of them). A way around this would obviously be an addon that modifies your guild note (or provides a note people can use for you on their friend's list) to specify which houses people can visit. Another facet of that addon could then use this information and simply present it through a right-click menu with "Jump to house" and a submenu for the different possible houses. Alternately, can we hope/ask for some function that returns all the valid house IDs for a player id? |
Quote:
|
I would also like to see something like that for EasyTravel.
Code:
houseIds = GetHouseIdsForJump(displayName) |
Maybe the queries are less expensive if you'd use the unique player's ID instead of the displayName?
Or aren't we able to locally get the ID as a return value of a function, instead of the displayName? |
Quote:
If that's too expensive, would a simple IsValidHouseJump or something similar work? It's something the server will effectively have to call before the player jumps to the house anyway. Or possibly give JumpToSpecificHouse a return value if the house is unavailable. That wouldn't really be ideal because then an addon cannot compile a list of what houses can be jumped to, but it might still help. |
Yeah, I agree to what Dolgubon says - that way our AddOn can do the expensive query once and set up valid entries ;)
|
The jump should return a failure event if it doesn't work already. That is more performant than doing a separate check in the case of success because it would have to look up twice. Anything more would expose the server to being slowed down by malicious code. We'd need a proper API that is rate controlled and also a look at the way the database is setup to offer an API here. It's not impossible, just not instantaneous.
|
Maybe you could make this into a bigger thing and add some kind of "inspection" feature.
Player A can select which information should be visible for others, e.g: equipment, stats, skills, owned houses, joined guilds, other chars, etc and by who (friends, guild, specific player, anyone, nobody) a bit like the permissions in the housing system work. Player B can then open the inspect view of player A when he meets him in the world, or has him in one of his social lists and see all the data he is allowed to see. You could also use this permission system for the dungeon loot which addons currently can read without users having any way to block it and dps numbers which are currently not easily shareable. |
Quote:
Quote:
This also has the added flexibility of allowing players to skip houses they haven't decorated yet, etc. |
The jump failure is the answer to the original problem - we will be able to tell what houses are accessible and which are not. The inspection feature is something else - something I find rather interesting!
Chip, could it be done? |
So is there a way to jump to a non-primary house? I haven't see how it's suppose to be done.
|
Not without addons or /script. Stay tuned.
|
Any progress?
|
New features are only done when API raise. Wait 3 months and come back.
|
To find out which houses a player has purchased you can do
Code:
for _,v in pairs(COLLECTIONS_BOOK_SINGLETON:GetOwnedHouses()) do |
Quote:
|
That would come close to listing up all of a foreign player's collectible items and not just houses. I'd be not quite happy about the prospect of Joe Random Troll having read access to my inventory of collectible items. In fact I'm not quite happy if it just concerns the list of houses.
I'd support it only if there is a possible way for every player to decide for himself to make his inventory list readable to others or not. Because I'd definitely set this option to 'no one', or 'friends only' at most. |
Quote:
|
Quote:
|
All times are GMT -6. The time now is 04:39 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI