LibBodyguard-1.0
LibBodyguard-1.0
A WoW AddOn library to query information about the player's current bodyguard (if any).
This is still in early progress, the plan is to be able to query any feasible information about bodyguards.
For now, only name, health and last known GUID are available.
Usage
The public API methods have LuaDoc comments, the rest of the code has some stray comments here and there.
To load library if you're using it embedded, specify the load.xml file in your TOC.
Use LibStub to consume the library in your WoW AddOns, just like any other library.
Documentation can be found on GitHub pages.
License
Copyright (c) 2014-2016 by Adam Hellberg.
LibBodyguard-1.0 is licensed under the MIT License, see the LICENSE file for more information.
Contributing
Contributions are greatly appreciated! Just submit a pull request and I'll have a look :)
To fork and create pull requests, visit the project's GitHub page.
Thanks to
The people at freenode/#wowuidev for being helpful as usual.
Two new bodyguard followers have been added to Legion.
Meatball (Bodyguard)
Moroes (Bodyguard)
4x LibBodyguard-1.0-7\main.lua:177: Usage: GetBuildings(garrisonType)
[C]: in function `GetBuildings'
LibBodyguard-1.0-7\main.lua:177: in function <LibBodyguard-1.0\main.lua:174>
LibBodyguard-1.0-7\main.lua:405: in function `UpdateFromBuilding'
BodyguardHealth\main.lua:136: in function `?'
BodyguardHealth\main.lua:284: in function <BodyguardHealth\main.lua:282>
Locals:
(*temporary) = <table> {
}
nice work!
but has a wrong at line:298
if bodyguard lvl3, learn to perk, index will change to 2
so need delete "index ~= 1" to work it
Version 1.2.3 will have the index check removed, which should make it work for bodyguards with perks. To my knowledge none of the perk options will spawn a confirmation dialog, so it shouldn't cause any issues with detecting when it's sent away.
If there are perks with confirmation boxes in the gossip, let me know! (Don't have a lvl 3 bodyguard to test with)