49
edits
(This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{Macronav}} | |||
Note: These are out of date archived macros. These were valid pre-BC WoW. Most if not all, have been discontinued, changed, or protected. For valid macro information refer to [[Making a macro]], [[Useful macros]], or [[UI beginner's guide]]. | |||
= Spells = | |||
Casting spells no longer requires the (Rank x). So you can now have a macro that says: <code>/cast Holy Light</code>, and it'll cast your highest rank of Holy Light. This macro will always cast the highest rank spell, and you will not be able to cast it on lower-level targets. | Casting spells no longer requires the (Rank x). So you can now have a macro that says: <code>/cast Holy Light</code>, and it'll cast your highest rank of Holy Light. This macro will always cast the highest rank spell, and you will not be able to cast it on lower-level targets. | ||
==Self Cast Any Spell (without losing your target)== | == Self Cast Any Spell (without losing your target) == | ||
/script CastSpellByName('Holy Light', 1) | /script CastSpellByName('Holy Light', 1) | ||
== Casting Buffs == | == Casting Buffs == | ||
Adapted from the above code, this is designed to cast buffs. If an enemy is selected, you will cast the buff on yourself, if nothing is selected, you will cast the buff on yourself, if you are selected, you will cast the buff on yourself but if your ally is selected they will be buffed. | Adapted from the above code, this is designed to cast buffs. If an enemy is selected, you will cast the buff on yourself, if nothing is selected, you will cast the buff on yourself, if you are selected, you will cast the buff on yourself but if your ally is selected they will be buffed. | ||
| Line 19: | Line 18: | ||
== Cast a spell based on target's class == | == Cast a spell based on target's class == | ||
You'll need to target the person you want to buff first. Here's an example for a paladin to use; note that it should all be on one line: | You'll need to target the person you want to buff first. Here's an example for a paladin to use; note that it should all be on one line: | ||
| Line 195: | Line 193: | ||
Bandage must be placed in the action bar at the slot given by ActionID. ActionID is a number from 1 to 120. Slot1-ActionBar1 is ActionID1, Slot12 is ActionID12, Slot1-ActionBar2 is ActionID13 and so on up to Slot12 of ActionBar10. This will bandage your target, or yourself if your current target is not a friendly target. | Bandage must be placed in the action bar at the slot given by ActionID. ActionID is a number from 1 to 120. Slot1-ActionBar1 is ActionID1, Slot12 is ActionID12, Slot1-ActionBar2 is ActionID13 and so on up to Slot12 of ActionBar10. This will bandage your target, or yourself if your current target is not a friendly target. | ||
Here's a different version courtesy of post by | Here's a different version courtesy of post by Sarf on the forums. This one will always self-bandage, even if you have a friendly player targeted. It will also re-target your original target. Note that this must all be on one line, its just split up for readability: | ||
/script p="player";t="target";if(not UnitCanAttack(t, p))then ot=UnitName(t);TargetUnit(p);<br />else ot=nil;end;UseAction('''''ActionID''''');if(SpellIsTargeting())then SpellTargetUnit(p);<br />end if(ot) then TargetByName(ot);end | /script p="player";t="target";if(not UnitCanAttack(t, p))then ot=UnitName(t);TargetUnit(p);<br />else ot=nil;end;UseAction('''''ActionID''''');if(SpellIsTargeting())then SpellTargetUnit(p);<br />end if(ot) then TargetByName(ot);end | ||
Following is another example of self bandaging that does not use scripting. THIS WILL WORK FOR [[Cosmos (AddOn)| | Following is another example of self bandaging that does not use scripting. THIS WILL WORK FOR [[Cosmos (AddOn)|Cosmos AddOn]] USERS ONLY. Shift-clicking on the bandage (or other item in inventory) while editing your macro will insert its name into your macro. Placing the "target" command after the "use" command maintains your primary target and also maintains your combo points for that target if you're a Rogue. | ||
/use Heavy Linen Bandage | /use Heavy Linen Bandage | ||
| Line 472: | Line 470: | ||
== Kill totems == | == Kill totems == | ||
This can be used to destroy any totem, and is obviously designed for | This can be used to destroy any totem, and is obviously designed for druids. Naturally you can change the last line to <code>/shoot</code> which is especially good for someone with a wand. Whether it will fit in the same macro or not, I'm not certain, but you might also want to add lines to target Dark Iron Dwarf mines as well. I can't think of anything else like it. The following is from [http://www.livejournal.com/users/talashandy/ Talashandy], cited by Alex [http://www.cosmosui.org]. | ||
/target Totem | /target Totem | ||
| Line 600: | Line 598: | ||
/script SelectGossipAvailableQuest(1); CompleteQuest(); GetQuestReward(); | /script SelectGossipAvailableQuest(1); CompleteQuest(); GetQuestReward(); | ||
Use: This is usable at almost any quest giver with a blue question mark. It's especially useful for doing | Use: This is usable at almost any quest giver with a blue question mark. It's especially useful for doing Dark Iron Residue turn ins for Thorium Brotherhood faction. Some of these quest givers offer multiple quests. To have the macro select a quest besides the first one, simply change the number in the parentheses. | ||