[Macro Various]

Stato
Chiusa ad ulteriori risposte.
voidwalker attack:

/cast Shadow Bolt(Rank 1)
/script PetAttack();


Switching Hotbars with a macro

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


Change X to the action bar of your choice.

I assume in my example script that your weapons are stored in these places:
1H-weapon : bag 4 (last bag) slot 1
offhand item : bag 4 (last bag) slot 2
2H-weapon : bag 4 (last bag) slot 3 (could be placed in slot 1)

Example script to put on 1H-weapon and offhand weapon when you are wearing 2H-weapon:

/script PickupContainerItem(4, 1);
/script -- 1H weapon now on cursor.
/script PickupInventoryItem(16);
/script -- 1H weapon now equipped, 2H weapon on cursor.
/script PickupContainerItem(4, 3);
/script -- 2H weapon in inventory, no item on cursor.
/script PickupContainerItem(4, 2);
/script -- offhand item on cursor.
/script PickupInventoryItem(17);
/script -- off hand item now equipped, no item on cursor.


Example script to put on 2H-weapon when you are wielding 1H-weapon:
/script PickupInventoryItem(17);
/script -- off hand item now on cursor.
/script PickupContainerItem(4, 2);
/script -- off hand item now in inventory
/script PickupContainerItem(4, 3);
/script -- 2H weapon now on cursor.
/script PickupInventoryItem(16);
/script -- 1H weapon now on cursor, 2H weapon equipped
/script PickupContainerItem(4, 1);
/script -- 1H weapon now in inventory, no item on cursor.




//Pulling Macro:

/script TargetNearestEnemy();
/p Pulling %t
/script AttackTarget();
/v inc


Assist Macro:

/assist %t
/script AttackTarget();

macro to send a whisper to heal target when your healing them:

/script if ((UnitName("target") ~= nil) AND (UnitIsPlayer("target") = 1)) then SendChatMessage("Incoming Flash Heal!", "WHISPER", "COMMON", UnitName("target") ); end
/cast Flash Heal (Rank 1)
 
Stato
Chiusa ad ulteriori risposte.
Alto