Code: Select all
|bp.mac
|
|6-19-2004
|
|syntax is /mac bp
|
|Use /echo stop to end it early and have it re-equip your original BP.
|
|This macro is for melees with BP's that have the clickable "Invigorate"
|effect, which heals for 100 hps, such as Kunark or Velious quest BP.
|The macro assumes you are not wearing this gimp-ass BP, so do not equip it
|before starting the macro... it will find it in your inventory, switch it
|during the healing process, and switch it back when you're at full health.
|Substitute the two instances of "Mrylokar's Breastplate" with the name
|for your BP to get it to work for you.
#turbo
#event stop "[MQ2] stop"
Sub Main
/declare slot int outer
/declare bag int outer
/echo bp.mac started....
/echo Type "/echo stop" to switch back before fully healed.
/if (!${Window[InventoryWindow].Open}) /keypress Inventory
/varset bag ${FindItem[Mrylokar's Breastplate].InvSlot.Pack}
/itemnotify ${InvSlot[${bag}]} rightmouseup
/varset slot ${FindItem[=Mrylokar's Breastplate].InvSlot}
/itemnotify chest leftmouseup
/itemnotify ${InvSlot[${slot}]} leftmouseup
/itemnotify chest leftmouseup
/if (${Me.Sitting}) /stand
:loop
/call CheckHP
/itemnotify chest rightmouseup
/doevents
/delay 1
/goto :loop
/return
Sub CheckHP
/if (${Me.PctHPs}>=99) {
/echo Back to Full Health!
/call EndIt
}
/return
Sub EndIt
:wait
/if (${Me.Casting.ID}) /goto :wait
/itemnotify chest leftmouseup
/itemnotify ${InvSlot[${slot}]} leftmouseup
/itemnotify chest leftmouseup
/echo Ending.
/cleanup
/endmac
Sub Event_stop
/call EndIt
/return
