The call definitely works (I use it a lot).
If you have the Trion development tools addon installed, try typing:
/script dump(Inspect.Buff.List("player"))
I did that, and the result was:
Code:
07:22:33: [/script] {
b800000011E1402B1 = true,
b800000011E1402B3 = true,
b800000011E1402B5 = true,
b800000011E1402B9 = true,
b800000011E1402BD = true,
b800000011E1402BF = true,
b800000011E1402C3 = true,
b800000011E1402E1 = true,
b800000011E1402E5 = true
} If you're trying this within an addon, and are just calling it straight from the file as your addon starts, the player won't be available yet, which I think is probably what's happening.
As Lorandii says, you have to handle Event.Unit.Available and wait until the player is available. It might seem like the player is available all of the time, but it's not - at addon startup (and while zoning), the player actually becomes unavailable and you can only query some very basic partial information.
Bookmarks