Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (Added some back-links at the bottom)
(Added a self-bandage macro, and RegisterForSave for quest fade.)
Line 35: Line 35:
 
For more information, go to [[Item equipping]] to see how to use items from backpacks etc
 
For more information, go to [[Item equipping]] to see how to use items from backpacks etc
   
  +
== Use a Bandage ==
  +
/script UseAction(ActionID, 0, 1);
  +
/script if( SpellIsTargeting() ) then SpellTargetUnit("player"); end
  +
  +
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.
   
 
= Interface =
 
= Interface =
Line 60: Line 65:
 
/script QUEST_FADING_ENABLE = nil;
 
/script QUEST_FADING_ENABLE = nil;
   
''Both of these need to be pasted or typed into the chat box. To simplify use, they could also be made into a macro button.''
+
''Both of these need to be pasted or typed into the chat box. To simplify use, they could also be made into a macro button. To save them permanently, type
  +
/script RegisterForSave(QUEST_DESCRIPTION_GRADIENT_CPS)
  +
and similarly for QUEST_FADING_ENABLE if you use that instead.
   
 
== Pet Attack ==
 
== Pet Attack ==

Revision as of 10:39, 16 December 2004

Spells

Self Cast any spell

/target "player"
/cast SpellName(Rank x)
/script TargetLastEnemy();

Change SpellName(Rank x) by the Spell name and his rank.

Example

/target "player"
/cast Purify(Rank 1)
/script TargetLastEnemy();

Selfcasting non-enemy spells

Some spells can not be cast on enemies. Thus, if you have an enemy targeted, you can cast them on yourself.

Example

This macro will only cast the spell if it can be cast on you:

/script if ( not UnitIsFriend("player", "target") ) then CastSpellByName("Spell(Rank 1)"); end 
/script if ( SpellIsTargeting() ) then SpellTargetUnit("player"); end

Replace Spell(Rank 1) with the name and rank of the ability you wish to use.

Inventory/Items

Equip an item

/script PickupContainerItem(bag, slot); 

bag goes from 0 to 4, and slot from 1 to 20 (depending on bag size).

For more information, go to Item equipping to see how to use items from backpacks etc

Use a Bandage

/script UseAction(ActionID, 0, 1); 
/script if( SpellIsTargeting() ) then SpellTargetUnit("player"); end 

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.

Interface

Switching Hotbars

/script CURRENT_ACTIONBAR_PAGE = X;
/script ChangeActionBarPage();

Where X is the Hotbar number

Example

/script CURRENT_ACTIONBAR_PAGE = 1;
/script ChangeActionBarPage();

Miscellaneous

Adjusting Quest Fade

To change it to a more reasonable speed, try:

/script QUEST_DESCRIPTION_GRADIENT_CPS = 100;

To disable it altogether, use

/script QUEST_FADING_ENABLE = nil;

Both of these need to be pasted or typed into the chat box. To simplify use, they could also be made into a macro button. To save them permanently, type

/script RegisterForSave(QUEST_DESCRIPTION_GRADIENT_CPS)

and similarly for QUEST_FADING_ENABLE if you use that instead.

Pet Attack

/script PetAttack();



Go to Macros
Go to Interface Customization