Also, your suspicion is correct, you should be delaying the playerguid = UnitGUID("player") part until you're ingame.
To make it more clear
Startup/No event = nil
ADDON_LOADED = nil
VARIABLES_LOADED = nil
PLAYER_LOGIN = 0x060000000331C874
PLAYER_ENTERING_WORLD = 0x060000000331C874
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.
If you need to contact me, do so on Twitter @v6ooo
Best regards, v6.
Last edited by v6o : 06-13-10 at 10:30 AM.
|