-
Notifications
You must be signed in to change notification settings - Fork 16
Description
The guild I am in has a sister guild, and it would be very handy to be able to save homes or manually point to homes to teleport to.
The reason I am putting this suggestion in here with Plumber was when testing, I thought I could probably just hook into the home teleport button you have there, just tell it to go somewhere else.
So in Housing_ActionButton.lua I added the function
function Housing.SetCustomTeleportLocation(neighborhoodGUID, houseGUID, plotID)
if not TeleportHomeButtons.Custom then
TeleportHomeButtons.Custom = CreateTeleportHomeButton(5);
end
TeleportHomeButtons.Custom:SetAction_TeleportHome(neighborhoodGUID, houseGUID, plotID);
end
function Housing.GetCustomTeleportMacro()
return "/click PLMR_HOME5";
end
_G.PlumberGlobals.Housing = Housing;
and expose it globally.
Grab the housing info you are standing in
/dump C_Housing.GetCurrentHouseInfo()
Then a regular Macro can do this
/run PlumberGlobals.Housing.SetCustomTeleportLocation("neighborhoodGUID", "houseGUID", plotID)
/click PLMR_HOME5
and teleport you to whatever place you want!
(I made this change locally, and it works like a charm!)
Is this the right way to do this, no clue!
Im sure a much cleaner way would be to have some form of "Save" button in the Housing menu, where if you stand in a plot it could save it.
Then the current housing icon from Plumber could be a drawer style button containing your saved locations, maybe it could also have recently visited locations too if you forgot to save?
Might be out of scope, but I guarantee that my guildies and those in our sister guild would love this to make it easier to zoom back and forth without having to have a guild leader or something with 400 new "friends". Even if they had to do it manually with a macro like I did, a macro like that does have the perk of being super easy to share with people to come visit your home!