mrylokar BP heal...

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

mrylokar BP heal...

Post by ucfusion » Fri Apr 30, 2004 2:59 am

was wondering if any of the other rogues out there could run something toghether rq that would automatically take my current BP (shadow chest gaurd) and swap it out for a mrylokar BP and heal me to 100% health then swap them back and alert me then i was done healing... the concept seems simple enough but im no good at macros...

User avatar
bohicaseti
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sat Mar 06, 2004 5:55 am

Post by bohicaseti » Fri Apr 30, 2004 12:13 pm

I'm currently trying to figure out how to get this to work with having the BP sitting inside a pack. For now the only way it works is by having it in a base inventory slot. You may have to edit your BP name and or casting time accordingly, but it should work.

Code: Select all

Sub Main 

   /if (!${Window[InventoryWindow].Open}) /keypress inventory 
   /itemnotify ${FindItem[=Mrylokar].InvSlot} leftmouseup  | not sure on the full name of your BP so you may have to edit that
   /delay 1s 
   /itemnotify chest leftmouseup 
   /delay 2 
:HPCheck 
  /cast item "Mrylokar" | may have to edit BP name here also
  /delay 15s |endter the amount of time needed for casting here
  /if (${Me.PctHPs}==100) /goto :bp 
  /goto :HPCheck 
:bp 
  /delay 1s 
  /itemnotify chest leftmouseup 
  /autoinv 
  /beep
  /beep
  /popup YOUR ALL HEALED UP NOW
  /cleanup 
/return
Friends help friends move . . . .
Real friends help friends move dead bodies.

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

Post by ucfusion » Sat May 01, 2004 2:30 am

i toook the plunge and made my first macro last nite... its kind of a joke ... its pretty much a loop that just clicks my mrylo BP after i equip it ...

Code: Select all

#turbo 10

Sub Main

   
:begin

|Cast breastplate Item
/cast item "mrylokar's breastplate"


/if (${Me.PctHPs} < 100) { 
/goto :begin
}


|Notify when Done
/beep

/return
 

now i want to figure out how to get it to take the bp out of my backpack and heal then put it back in my backpack when im down... heh ... could use some help with the item switch...

dirx
orc pawn
orc pawn
Posts: 21
Joined: Fri Dec 05, 2003 1:00 am
Location: orlando

Post by dirx » Sun May 02, 2004 8:31 pm

I made this macro to take my bp out of main inventory and heal me as long as I have myself targeted. If you Break target the macro will end and swap breastplates back.

| heal.mac

Sub Main
/declare InvState
/declare breastplate
/varset breastplate "Mrylokar's Breastplate"
/echo "Auto Heal"

|Open the inventory window if not already open.

/if (${Window[InventoryWindow].Open}) {
/varset InvState 0
} else {
/keypress inventory
/varset InvState -1
}
/delay 1
/itemnotify ${FindItem[${breastplate}].InvSlot} leftmouseup
/delay 1
/itemnotify "chest" leftmouseup
/delay 1

:Loop
/cast item "Mrylokar's Breastplate"
/if (${Target.ID}) /goto :loop
/delay 80
/itemnotify "chest" leftmouseup
/delay 2
/autoinv
/keypress i

/return

dirx
orc pawn
orc pawn
Posts: 21
Joined: Fri Dec 05, 2003 1:00 am
Location: orlando

Post by dirx » Sun May 02, 2004 10:18 pm

I like that line that stopped it at 100 percent health so I added it to mine.

Code: Select all


|heal.mac

Sub Main
   /declare InvState 
   /declare breastplate 
  /varset breastplate "Mrylokar's Breastplate"
  /echo "Auto Heal"
     |Open the inventory window if not already open. 
  /if (${Window[InventoryWindow].Open}) { 
    /varset InvState 0 
  } else { 
    /keypress inventory 
    /varset InvState -1 
  } 
     /delay 1 
     /itemnotify ${FindItem[${breastplate}].InvSlot} leftmouseup
     /delay 1 
     /itemnotify "chest" leftmouseup
     /delay 1
 
      :Loop
      /cast item "Mrylokar's Breastplate"
      /if (${Me.PctHPs}==100) /goto :bp
      /if (${Target.ID}) /goto :loop
      :bp
      /delay 80
      /itemnotify "chest" leftmouseup
      /delay 2
      /autoinv
      /keypress i
       
/return


Thanks,

Dirx

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

Post by ucfusion » Mon May 03, 2004 3:31 am

yea i found a script that swaped out chest wraps of some sort so i adopted that code... works pretty well. Thanks for the help... I can now actually afk and heal up at the same time... what a wonderful world!