WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   LF Alliance player (https://www.wowinterface.com/forums/showthread.php?t=50722)

Malsomnus 12-12-14 08:49 AM

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)

Choonstertwo 12-12-14 09:01 AM

The building ID of the Dwarven Bunker (level 2, if it matters) is 9. I don't have a Trading Post.

Malsomnus 12-12-14 10:18 AM

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!

TOM_RUS 12-12-14 12:36 PM

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

Malsomnus 12-12-14 12:42 PM

Well, for one, I know nothing about db2 files, including where to find them or what I should expect them to contain :p

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.


All times are GMT -6. The time now is 12:24 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI