Originally Posted by
Stew
hi,
good first try at writing addons, just a couple of points:
1. you can put both playsoundfile() and logout() in the same onevent function, just stick a semicolon between them
2. Wow servers are down so i can't check, but some platforms might be sensitive to case in the path to the sound file fishingSafety/FishingSafety
3. Some sort of check as to wether you're in a city might be useful before calling the logout function, as if i remember correctly that'll take you straight back to the character screen if you're in a city
Other than that you're going about things pretty much the right way :-)