View Single Post
12-08-05, 09:16 PM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Some events. I'll add more as I run across them. Feel free to add your own also!

Skinning
From an idea posted by Liler: http://forums.worldofwarcraft.com/th...ation&t=276284

This event will swap in your skinning gear (likely Finkles) when you mouseover something that can be skinned. It swaps back to your normal gear when you mouseover something/someone else. A variation can be made to switch to skinning gear if you trigger on UI_ERROR_MESSAGE with the exact text when your skill is too low, then swap out when you finish looting on trigger LOOT_CLOSE. Not having a skinner I really can't test this. Feel free to post if you do make one :)

Event: Skinning
Trigger: UPDATE_MOUSEOVER_UNIT
Delay: 0
Script:
if UnitIsDead("mouseover") and
GameTooltipTextLeft3:GetText()=="Skinnable" then
if not SKINNINGMODE then
SaveSet()
EquipSet()
SKINNINGMODE=1
end
elseif SKINNINGMODE then
LoadSet()
SKINNINGMODE=nil
end
--[[Equips a set when you mouseover something that can be skinned.]]


Evocation

This macro/event pair will swap in your spirit gear when you begin casting Evocation and then swap it out when you're done.

1. Make this macro to cast Evocation:
/script EVOCING=1 SaveSet("Spirit Gear") EquipSet("Spirit Gear")
/cast Evocation

2. Make this event:

Event: Mage:Evocation
Trigger: SPELLCAST_STOP
Delay: 1
Script:
if EVOCING and not CastingBarFrame.channeling then EVOCING=nil LoadSet() end
--[[Unequips a set when done casting Evocation]]

3. Associate the set "Spirit Gear" to the event. (can name it anything you want, doesn't need to be "Spirit Gear")
  Reply With Quote