View Single Post
02/09/23, 07:34 AM   #4
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 252
Originally Posted by Baertram View Post
RequestJumpToHouse(GetHousingPrimaryHouse(), false)

true if jump inside

Can be found by inspecting the button at your collections where you can show the menu to jump in/outisde your house e.g. move the mouse above and use /zgoo mouse or merTorchbug /tbm to show the name of the control.
ZO_HousingBook_KeyboardContentsHousingInteractButtonsTravelToHouse
Then search the end of the name "TravelToHouse" in the ESOUI sources and you'll find the ShowMenu (shows the context menu) call in function HousingBook_Keyboard:RequestJumpToCurrentHouse():


Lua Code:
  1. function HousingBook_Keyboard:RequestJumpToCurrentHouse()
  2.     local collectibleData = self.navigationTree:GetSelectedData()
  3.     if collectibleData then
  4.         local houseId = collectibleData:GetReferenceId()
  5.         if collectibleData:IsLocked() then
  6.             -- Preview, behavior will always be inside
  7.             RequestJumpToHouse(houseId)
  8.             SCENE_MANAGER:ShowBaseScene()
  9.         else
  10.             ClearMenu()
  11.  
  12.             AddMenuItem(GetString(SI_HOUSING_BOOK_ACTION_TRAVEL_TO_HOUSE_INSIDE), function()
  13.                 local TRAVEL_INSIDE = false
  14.                 RequestJumpToHouse(houseId, TRAVEL_INSIDE)
  15.                 SCENE_MANAGER:ShowBaseScene()
  16.             end)
  17.             AddMenuItem(GetString(SI_HOUSING_BOOK_ACTION_TRAVEL_TO_HOUSE_OUTSIDE), function()
  18.                 local TRAVEL_OUTSIDE = true
  19.                 RequestJumpToHouse(houseId, TRAVEL_OUTSIDE)
  20.                 SCENE_MANAGER:ShowBaseScene()
  21.             end)
  22.  
  23.             ShowMenu(self.travelToHouseButton)
  24.         end
  25.     end
  26. end
I didnt even realize it untill late last night about 2hrs before servers went down for maint but "false" is putting me inside instead of outside. but at the same time if IsUnitOnline(savedPlayer) == "isOnline" suddenly started passing the check even when player was offline. seemed like game running backwards last night or is the "false" for RequestJumpToHouse(GetHousingPrimaryHouse(), false) incorrect for outside?
  Reply With Quote