Auto click Mana robe?

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

Dantuss1

Auto click Mana robe?

Post by Dantuss1 » Sun Oct 19, 2003 5:48 pm

Anyway to change this Macro to make it click a mana robe.

It could click the robe until you are either FM or at say 20% of full life?

|Heal.mac
|Though up by seph_yaro, made working by blueninja and insanitywiz
|To make it work for you, simply replace "brigand's chestguard" with the BP of your choice

#turbo
Sub Main
/press i
/if n $char(hp,pct)==100 /goto :end

:Loop
/cast item "brigand's chestguard"
/if n $char(hp,pct)==100 /return
/goto :loop

:end
/return

Dantuss1

Post by Dantuss1 » Sun Oct 19, 2003 5:56 pm

omg i messed around with this myself and got it working.

and i have absolutely no programing skills

Code: Select all

|Heal.mac 
|Though up by seph_yaro, made working by blueninja and insanitywiz 
|To make it work for you, simply replace "brigand's chestguard" with the BP of your choice 

#turbo 
Sub Main 
/press i 
/if n $char(mana,pct)==100 /goto :end 

:Loop 
/cast item "Mana Robe" 
/if n $char(mana,pct)==100 /return 
/if n $char(hp,pct)==30 /return
/goto :loop 

:end 
/return 
The only thing i'm not very clear on is it will stop clicking the robe with i hit 30% life... but how do i make it quit clicking the robe if i'm at 30% or LESS?

thanks all

User avatar
FreQuency
a hill giant
a hill giant
Posts: 215
Joined: Tue Sep 23, 2003 6:03 pm

Post by FreQuency » Sun Oct 19, 2003 6:00 pm

Try this your current version will only stop if you hit 30% exactly

Code: Select all

|Heal.mac 
|Though up by seph_yaro, made working by blueninja and insanitywiz 
|To make it work for you, simply replace "brigand's chestguard" with the BP of your choice 

#turbo 
Sub Main 
/press i 
/if n $char(mana,pct)==100 /goto :end 

:Loop 
/cast item "Mana Robe" 
/if n $char(mana,pct)==100 /return 
/if n $char(hp,pct)<=30 /return 
/goto :loop 

:end 
/return 
the only change was changing "==" to "<=" in the very last /if statement

jimini
decaying skeleton
decaying skeleton
Posts: 8
Joined: Sat Nov 09, 2002 7:50 pm

Post by jimini » Tue Oct 21, 2003 10:11 pm

Would this work for wizards, or is there a better way to do this?

Code: Select all

|Heal.mac 
|Though up by seph_yaro, made working by blueninja and insanitywiz 
|To make it work for you, simply replace "brigand's chestguard" with the BP of your choice 

#turbo 
Sub Main 
/press i 
/if n $char(mana,pct)==100 /goto :end 

:Loop 
/if n $char(mana,pct)==100 /return 
/if n $char(hp,pct)<=95 /cast item "Staff of the Four"  
/cast item "Mana Robe" 
/goto :loop 

:end 
/return


I understand that if I happen to have low HP when I start that, that it will just start casting the Staff of the Four over and over and over...

Hrm... possible to change the check for "Barrier of Force" buff instead of an HP check?

Sorry, bit of a newby here.

Scrime
a ghoul
a ghoul
Posts: 86
Joined: Sun Sep 21, 2003 5:48 pm
Contact:

Post by Scrime » Wed Oct 22, 2003 8:04 am

You can use something akin to this to check to see if you are already buffed with the spell "Barrier of Force":

Code: Select all

/if n $char(buff,"Barrier of Force")==0 {
.
.
.
}
$char(buff,spell) returns the buff slot if the buff is found, 0 if its not found, so the code above would execute the code in the brackets if you didn't have the buff up.