bw.mac - Bind Wounds to max then Sit

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

battaile
Contributing Member
Contributing Member
Posts: 40
Joined: Tue Dec 09, 2003 10:55 am

bw.mac - Bind Wounds to max then Sit

Post by battaile » Thu Dec 25, 2003 3:23 am

My first macro, just binds you to your max bind pct (set it in the macro, I've got it set to 60...even if its wrong it'll stop once you start getting the "cant bangage past x% message though so no biggy), then once done binding sits you down.

Made it for soloing as melee/hybrid since bandaging can be a click-fest.

Code: Select all

| bw.mac
| v1.0

#event OutOfBandages "You can't bandage" 
#event MaxHeal "You cannot be bandaged"

Sub Main
	/zapvars
	/declare maxBind global           
	/varset maxBind 60  | SET TO WHATEVER YOUR MAX BIND PCT IS
	/target myself
	/call BindLoop


Sub BindLoop
	:BindWound
	/if n $char(hp,pct)>=@maxBind /call ExitSub
	/doevents
	/bind
	/goto :BindWound 

Sub Event_OutOfBandages
	/call ExitSub

Sub Event_MaxHeal
	/call ExitSub

Sub ExitSub
	:ExitLoop
	/if $target(state)!="STAND" /goto :ExitLoop
	/sit
	/end