Thread Tools Display Modes
02/22/18, 05:00 PM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Check which house(s) I own and travel to them

Hi,

Is there a way to check which house (s) I own and then put them in a list and travel to them?
Maybe via the collectibles and me Api functions but I was not successful so far.

Any hints /ideas would be helpfull. Thanks.

It's about my account houses, not other players!
  Reply With Quote
02/22/18, 05:17 PM   #2
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
I don't think an easily accessible list of houses exists (since there are gaps in the numbers), so I built my own array of houses. From there, I just ran it in a loop using

Code:
local _,_,_,_,owned = GetCollectibleInfo(GetCollectibleIdForHouse(house_index))
  Reply With Quote
02/23/18, 03:35 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
What about the list that is shown in the map menu? it shows all owned houses already, so the game does have some way to do that without a prebuilt list?
  Reply With Quote
02/23/18, 04:21 AM   #4
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
houseId are very clean you should use them as Rhyono said.

For map, it's easily doable too. but take care some evil devs implementing hidden features already altered those functions. You can look in NOTY code if you want.
  Reply With Quote
02/23/18, 05:38 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
I use it in EasyTravel and haven't had any complaints so far.

Lua Code:
  1. WORLD_MAP_HOUSES_DATA:RefreshHouseList()
  2.     local houses = WORLD_MAP_HOUSES_DATA:GetHouseList()
  3.     for i = 1, #houses do
  4.         local house = houses[i]
  5.         local name = house.houseName
  6.         self.houseByName[name] = house
  7.         self.houseAutocompleteList[zo_strlower(name)] = name
  8.     end

Lua Code:
  1. JumpHelper:JumpToHouse(house.houseId)
  Reply With Quote
02/23/18, 10:23 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Thx will have a look at this!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Check which house(s) I own and travel to them

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off