Frenzy and Head Strike macro

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

Moderator: MacroQuest Developers

Sdksnowboy
orc pawn
orc pawn
Posts: 11
Joined: Mon Jan 19, 2004 9:06 pm

Frenzy and Head Strike macro

Post by Sdksnowboy » Mon Feb 16, 2004 3:03 pm

I've been trying to convert this http://macroquest2.com/phpBB2/viewtopic.php?t=5017 to do frenzy and headstrike on my zerk, or be selectable just as that macro is on if I want to do frenzy or headstrike or both, but I havent had any success, was wondering if someone would help me out

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Mon Feb 16, 2004 3:34 pm

Untested. Should work as long as "Frenzy" and "Headstrike" are worded correctly. I don't have a berserker to test it on.

Code: Select all

|zerk.mac
|/mac zerk     (frenzy and headstrike)
|/mac zerk 1   (frenzy only)
|/mac zerk 2   (headstrike only)

#turbo

Sub Main 
/if $defined(Param0)==TRUE /if n @Param0==1 { 
   /goto :LoopFrenzy
} 
/if $defined(Param0)==TRUE /if n @Param0==2 { 
   /goto :LoopHeadstrike 
} else { 
   /goto :LoopBoth 
} 

:LoopBoth 
/if $combat=="TRUE" { 
   /if n $target(distance)<18 { 
      /if n $char(ability,"Frenzy")>0 /doability "Frenzy" 
   } 
   /if n $target(distance)<18 { 
      /if n $char(ability,"Headstrike")>0 /doability "Headstrike" 
   } 
} 
/delay 5
/goto :LoopBoth 

:LoopFrenzy
/if $combat=="TRUE" { 
   /if n $target(distance)<18 { 
      /if n $char(ability,"Frenzy")>0 /doability "Frenzy" 
   } 
} 
/delay 5 
/goto :LoopFrenzy

:LoopHeadstrike
/if $combat=="TRUE" { 
   /if n $target(distance)<18 { 
      /if n $char(ability,"Headstrike")>0 /doability "Headstrike" 
   } 
} 
/delay 5 
/goto :LoopHeadstrike
/return

Sdksnowboy
orc pawn
orc pawn
Posts: 11
Joined: Mon Jan 19, 2004 9:06 pm

Post by Sdksnowboy » Mon Feb 16, 2004 3:49 pm

Nope, The problem is its not recognizing frenzy as an ability it just says its not on the /doability tab, but it is. and Head Strike is actually a combat skill, so you can activate it with /discipline but you cant check if its popped or not with /discipline

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

Post by daerck » Mon Feb 16, 2004 7:00 pm

Edit skills.h

Change

Code: Select all

"Taunt",                   // 73
[color=red]"74",					   // 74[/color]
"75",					   // 75
To

Code: Select all

"Taunt",                   // 73
[color=red]"Frenzy",					   // 74[/color]
"75",					   // 75
And recompile. This will allow you to use /doability "Frenzy".
If you are too lazy for that you can use /doability "74" (quotation marks are necessary).

As for the disc, you could use a timer to check if it's back up until a $char(discipline) funtionallity has been implemented.
Something like this:

Code: Select all

/declare HeadStrikeTimer timer
...

/if n $target(distance)<18 {
   /if n @HeadStrikeTimer<=0 {
      /disc "Head Strike"
      /varset HeadStrikeTimer 12s
   }
}
...

Sdksnowboy
orc pawn
orc pawn
Posts: 11
Joined: Mon Jan 19, 2004 9:06 pm

Post by Sdksnowboy » Mon Feb 16, 2004 7:20 pm

Wow thanks a lot man thats just what I was lookin for

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Post by Gumby » Sun Feb 22, 2004 3:58 pm

Sdksnowboy wrote:Nope, The problem is its not recognizing frenzy as an ability it just says its not on the /doability tab, but it is. and Head Strike is actually a combat skill, so you can activate it with /discipline but you cant check if its popped or not with /discipline
/discipline actually works for you with Head Strike? Executed manually it does swabo for me with Head Strike, Head Pummel, Leg Cut, etc. Maybe something hosed on my end.

G