Page 1 of 1

Krs01 - Bard bp click thing.

Posted: Wed May 19, 2004 4:02 am
by Oid

Code: Select all

|bardbp.mac 
|/mac bardbp 
|/echo stop (to end it and have it re-equip your original BP) 
|Thanks to Ieatacid for creating manarobe.mac (were this was taken from) 

#turbo 
#event stop "[MQ2] stop" 

Sub Main 
/declare slot invslot outer 

/echo bardbp.mac started.... 
/echo /echo stop (to stop it) 

/if (!${Window[InventoryWindow].Open}) /keypress Inventory 
/vardata slot FindItem[=Singing Steel Breastplate].InvSlot
/if (!${Window[${slot.Pack.Name}].Open}) /itemnotify ${slot.Pack.Name} rightmouseup
/itemnotify chest leftmouseup 
/itemnotify ${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}>=98) { 
/echo FULL HEALTH!! 
/call EndIt 
} 
/return 

Sub EndIt 
:wait 
/if (${Me.Casting.ID}) /goto :wait 
/itemnotify chest leftmouseup 
/itemnotify ${slot} leftmouseup 
/itemnotify chest leftmouseup 
/echo Ending. 
/cleanup 
/endmac 

Sub Event_stop 
/call EndIt 
/return 
Wrong forum... you didnt use code tags... but you made an effort. This should work.

edit: disabled smilies because of the 8 ) in the macro... i hate fucking smilies.. w hatever cunt made graphics for smilies many years ago should die.

edit 2: removed variable declare for bag, not needed.

Posted: Wed May 19, 2004 8:02 pm
by Krs01
TY OID

Posted: Thu May 20, 2004 9:58 am
by Oid
np, did it work for ya?

Posted: Thu May 20, 2004 7:56 pm
by Krs01
it did work ty !

Posted: Thu May 20, 2004 8:59 pm
by Oid
Great