View Single Post
12-06-14, 06:10 AM   #24
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
Nice to see someone making use of the library

Note that the :Exists() method returns true as soon as there's a bodyguard assigned to the barracks. :GetStatus() returns the status of the bodyguard (like if it's currently with the player).

GetStatus() is kinda inaccurate though, since there's no good way (that I've found) to track whether the bodyguard is with you or not. If you log in without it, and then go grab one, it should be pretty accurate though, as they will cast a reputation check when you enlist them.

(Compare return from GetStatus() with lib.Status.Active to see if they are with you)
  Reply With Quote