Bezerker Melee Skillup Macro

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Bezerker Melee Skillup Macro

Post by kkmonte » Sun Mar 28, 2004 6:05 pm

Ok this is what i'm trying to do. I have my magician friend log in and duel me in a newbie zone in a corner somewhere. I have him /pet hold with the 62 pet and i can beat on it all i want to increase my melee skills. Only level 25 zerker so I miss alot and it regens to full life so I should be able to do this forever. Only problem is repostles is gonna kill me. =) So this is what i'm trying to do.

Regular /attack on on pet, with doability frenzy every 10 seconds, and to have it check on my health. If it falls below 90 percent, i'd like it to sit and regen back up then stand and proceed. Here is my code.

Code: Select all

| - zerkerskill.mac -

#turbo 

Sub Main 
      :Again
      /stand
      /attack on
      /doability "frenzy"
      /delay 10 
		    
/if "$char(hp,cur)"<= 90
      /goto :wait 
      /else /goto :Again     

/goto :Again

        :wait
        /sit
        /delay 30
        /return
        /goto :Again

This isn't working. Can someone please help? It basically attacks, sits, and ends macro..

Thx for help and don't flame me too bad on my first macro attempt. =)

User avatar
SimpleMynd_01
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu May 08, 2003 3:16 pm

Post by SimpleMynd_01 » Sun Mar 28, 2004 6:13 pm

Try this...

Code: Select all

/if [color=red]n[/color] $char(hp,cur)<= 90 [color=red]{[/color]
      /goto :wait 
      [color=red]} else { [/color]/goto :Again [color=red]}[/color]
-SimpleMynd

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Post by kkmonte » Sun Mar 28, 2004 6:21 pm

Code: Select all

| - zerkerskill.mac - 

#turbo 

Sub Main 

:Again 
/stand 
/attack on 
/doability "frenzy" 
/delay 10 

/if n "$char(hp,cur)"<= 90 { 
	/goto :wait 
	} /else { /goto :Again } 

/goto :Again 

:wait 
/sit 
/delay 30 
/return 
/goto :Again 
Still no good. He just beats the crap out of the pet but never stop and sits down even at 57 percent life atm. hmm I also tried

Code: Select all

/if n "$char(hp,pct)"<= 90 {
and still didnt' work. =/

daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Sun Mar 28, 2004 7:25 pm

Code: Select all

/if n $char(hp,[color=red]pct[/color])<=90 { 
$char(hp,cur) returns the numerical hp value, i.e. 1421. $char(hp,pct) returns the percent value.

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Post by kkmonte » Sun Mar 28, 2004 7:32 pm

Yea I tried that also still not working. Just keeps attacking and never sits down regardless of hitpoints.

bonehand
a lesser mummy
a lesser mummy
Posts: 48
Joined: Tue Feb 17, 2004 5:16 pm

Post by bonehand » Sun Mar 28, 2004 7:33 pm

As daerck said...pct is different than cur.

But, another problem is that space around your comparison.

==.>=,<=.~~... and most any other require that no spaces are between values...daerck did it properly but failed to mention his correction. Also don't use quotes in numerical comparisons, it may work rarely, but will fail more often than not in any language.

Code: Select all

| - zerkerskill.mac - 

#turbo 50

Sub Main 

:Again
 
  /stand 
  /attack on 
  /doability "frenzy" 
  /delay 10 

  /if n $char(hp,pct)<=90 /goto :wait 
 
  /goto :Again 

:wait 
  /sit 
  /delay 30 
  /goto :Again 
/return 

kkmonte
orc pawn
orc pawn
Posts: 23
Joined: Sat Dec 14, 2002 2:52 pm

Post by kkmonte » Sun Mar 28, 2004 8:26 pm

Woot it works. Thanks alot Bone and daerck.