PUG Warning is a simple, lightweight chat addon that uses slash commands to send notices at the beginning of an instance based on what role you are (tank, healer, dps). Notifications are sent in party chat, and only work if you are in a party. They are not sent to /raid or /say, so this is currently intended for PUGing 5-man instances, particularly Cata heroics.
Valid slash commands:
/pug tank
/pug healer
/pug dps
The tank notification:
Hello everyone . I am tanking, and we will be using CC, which I will mark.
DPS, if you pull off of me and die, it's your fault, not the healer's.
Pay attention, don't stand in fire and we'll be fine. We're all only human, so be prepared to forgive mistakes and wipe to learn fights and finish this instance.
The healer notification:
Hello everyone . I am healing.
DPS, if you pull off of the tank and die, it's your fault, not mine. If you want to live, don't break CC. The tank becomes very hard to keep alive otherwise.
Pay attention, don't stand in fire and we'll be fine. We're all only human, so be prepared to forgive mistakes and wipe to learn fights and finish this instance.
The DPS notification:
Hello everyone . I am a DPS, and like the rest of the DPS, I will be waiting for the tank to grab aggro before DPSing.
If any DPS pulls off the tank and dies, it's our own fault, not the healer's. I, as well as the rest of the DPS, will not break CC.
Pay attention, don't stand in fire and we'll be fine. We're all only human, so be prepared to forgive mistakes and wipe to learn fights and finish this instance.
Thanks to James Whitehead II and Rick Roe for the book World of Warcraft Programming. This addon is based off of the framework of the first "Hello World" addon, as well as the first box of code under Parsing Arguments here, by Parqui: http://www.wowwiki.com/HOWTO:_Create_a_Slash_Command. This frameworks were modified based on my research from the Lua manual and other WoWWiki source material.
Version Notes:
1.0 - Addon primary features complete. Only supports party chat.
Wish List:
Support options for /say and /raid channels.
Messages specifically for low level instances. (i.e "Hi, I'm the tank. I'm supposed to hold aggro so you don't die.)
Allow players to write their own custom messages in a dialog box to replace the default messages.
If you have something else you would like this addon to do, leave a comment and I'll do what I can, though I am but a novice programmer .