Quantcast
Checking for WoD bodyguards - WoWInterface
 
Thread Tools Display Modes
11-10-21, 02:35 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
Checking for WoD bodyguards

I was looking at Wowpedia's WoD list of Garrison APIs, and discovered most of them aren't documented. I know, or can find, the bodyguard followerIDs, and I don't care about followers for other buildings, just the Barracks, and only when a follower is assigned who can gain reputation. Therefore, Barracks ranks 2 and 3.

However, what I can't figure out is how to determine if a bodyguard is assigned during login, or if a bodyguard is added or removed during gameplay.

Any nudges in the correct direction would be appreciated, thank you.
  Reply With Quote
11-12-21, 09:53 PM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
I remembered the old LibBodyGuardHealth-1.0 project, and took a look at its code. The part that is useful to me is the local function UpdateFromGarrison() which starts on line 247 in the file I downloaded.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Checking for WoD bodyguards

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