Thread Tools Display Modes
12-12-14, 08:49 AM   #1
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
LF Alliance player

So I've been working on an an add-on that automates work orders, and people want it to behave different in the Dwarven Bunker and Trading Post buildings. Since Wowhead has turned out to be surprisingly useless at helping me find their building IDs, I am looking for an Alliance player with these buildings in their garrison.
This tiny add-on will print the building ID when you talk to any work orders NPC. I'll be eternally grateful if anyone could please use it and tell me what the IDs are


Just in case anyone's wondering, here's that little add-on's code:
Lua Code:
  1. local f = CreateFrame ("Frame", 'mootest', UIParent)
  2. f:RegisterEvent ("SHIPMENT_CRAFTER_INFO")
  3.  
  4. function f:SHIPMENT_CRAFTER_INFO (success, _, maxShipments, plotID)
  5.     buildingID = C_Garrison.GetOwnedBuildingInfo (plotID)
  6.     print ('Building ID: '..buildingID)
  7. end
  8.  
  9. f:SetScript ("OnEvent", function (self, event, ...)
  10.     if self[event] then
  11.         self[event] (self, ...)
  12.     end
  13. end)
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!
  Reply With Quote
12-12-14, 09:01 AM   #2
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
The building ID of the Dwarven Bunker (level 2, if it matters) is 9. I don't have a Trading Post.
  Reply With Quote
12-12-14, 10:18 AM   #3
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
I'm almost certain that the level doesn't change it. Also this appears to be the same ID that the Horde has, which is good to know. Thank you!
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!
  Reply With Quote
12-12-14, 12:36 PM   #4
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
Why not look at game files instead? All those data in GarrBuilding.db2 file.
Dwarven Bunker: 8,9,10
Trading Post: 111,144,145

Whole GarrBuilding.db2 file exported to SQL: http://paste2.org/FBPbD0p3
  Reply With Quote
12-12-14, 12:42 PM   #5
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
Well, for one, I know nothing about db2 files, including where to find them or what I should expect them to contain

But more importantly, why are there 3 numbers for each building? Are those for different building levels, or...?

[Edit]
Looking into that file, it does indeed appear that each level has its own ID. That's quite good to know, actually.
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!

Last edited by Malsomnus : 12-12-14 at 12:48 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » LF Alliance player


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