View Single Post
01-16-06, 03:30 PM   #23
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Hmm CHAT_MSG_BG_SYSTEM_NEUTRAL may be a good one:

CHAT_MSG_BG_SYSTEM_NEUTRAL

Fired for non faction specific events in the battlegrounds such as the battle start announcement.
You can use IsSetEquipped too:

Name: Battlegrounds
Trigger: CHAT_MSG_BG_SYSTEM_NEUTRAL
Delay: 0
Script: if not IsSetEquipped("pvp") then EquipSet() end

For equipping pvp gear when you enter BG and un-equipping when you leave, probably ZONE_CHANGED_NEW_AREA would be better. I vaguely recall this gave a generic result for instances but I'll check it out.

And it just occured to me that IsSetEquipped() should be allowed to use the associated set. It doesn't yet woops!
  Reply With Quote