PDA

View Full Version : Alex's Macro of the Week: Zandalarian Hero Macro


AlexanderYoshi
11-04-2005, 07:47 PM
/script slot=GetInventorySlotInfo("Trinket0Slot");
/script s,d,e=GetInventoryItemCooldown("player",slot); t=GetTime();
/script if(s+d<=t and UnitIsEnemy("player","target")) then UseInventoryItem(slot); SpellStopCasting();end
/cast Shadow Bolt


Also known as "Throwing the Warlocks a Bone", this Macro allows you to automatically trigger your Slot 0 Trinket when you target a hostile unit and cast a particular spell.

Pretty dark, no?

Remember to delete the newline after "then" if you copy and paste this macro.

remson
11-16-2005, 01:41 PM
could you explain this one? i think im being Uber N00b...

morbid_o
11-16-2005, 01:55 PM
could you explain this one? i think im being Uber N00b...

it checks to see if the zandalarian hero trinket (in slot 0) is on cooldown. if not, it uses it and casts shadowbolt, otherwise ti just casts shadowbolt.