Best way to determine who killed me
View Single Post
11-27-12, 03:43 AM
A Pyroguard Emberseer
Join Date: Mar 2006
Instead of ZONE_CHANGED, use PLAYER_ENTERING_WORLD. This will fire both when you first enter the world (no matter what kind of zone you're in) and whenever you pass through a loading screen.
Also (I might have mentioned this in one of your other threads) semicolons at the end of lines are not needed in Lua. They can
avoid issues with ambiguous syntax, but I've been writing WoW addons in Lua for about 7 years now and have never even seen any code where a semicolon was needed to clarify the syntax, so unless you're dead-set on using them as a carry-over from some other programming language you're used to working with, I'd suggest leaving them out to reduce clutter in your code.
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or questions. Post a comment or forum thread instead!
Last edited by Phanx : 11-27-12 at
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx