Simple monk macro - having some problems with it

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Simple monk macro - having some problems with it

Post by laksen » Sat Jul 24, 2010 6:53 pm

Hey

I'm new to MQ, dont have much scripting experience. I searched quite abit, but cant find a simple attack assist macro with combat abilitys.

I copied some code from different macroes. So far assist / attack is working, but cant get flying kick to work, it should be right after attack on?

Code: Select all

Sub Main
/declare CharName string outer   MainAssist
/declare AssistAt int    outer   99
/if (${Defined[Param0]}) {
/varset AssistAt ${Param0}
}

/echo ${Macro} - Auto-Assisting ${CharName} @ ${AssistAt} % health

:mainloop

/if (${Me.State.Equal[HOVER]}) {
   /delay 10
   /goto :mainloop
}

/if (!${Target.ID} || ${Target.Type.Equal[PC]} || ${Target.Type.Equal[CORPSE]}) {
   /assist ${CharName}
   
}

/if (${Target.ID} && ${Target.PctHPs} < ${AssistAt} && !${Me.Combat} && !${Target.Type.Equal[PC]} && !${Target.Type.Equal[CORPSE]}) {
   /attack on

} 

/if (${Me.Combat}) {
  /if (${Me.AbilityReady[Flying Kick]}) /doability "Flying Kick"

} 


/goto :mainloop
/return

User avatar
pms
a grimling bloodguard
a grimling bloodguard
Posts: 663
Joined: Mon Jan 31, 2005 5:20 pm
Location: Internet, Earth
Contact:

Re: Simple monk macro - having some problems with it

Post by pms » Sat Jul 24, 2010 8:00 pm

Make sure you have Flying Kick assigned to one of the combat action window buttons and not just a hotkey on the hotkey bar.

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Re: Simple monk macro - having some problems with it

Post by laksen » Sat Jul 24, 2010 8:09 pm

I have flying kick assinged in combat action window, still not working. No error message either..

User avatar
pms
a grimling bloodguard
a grimling bloodguard
Posts: 663
Joined: Mon Jan 31, 2005 5:20 pm
Location: Internet, Earth
Contact:

Re: Simple monk macro - having some problems with it

Post by pms » Sat Jul 24, 2010 9:12 pm

emu server?

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Re: Simple monk macro - having some problems with it

Post by laksen » Sun Jul 25, 2010 6:46 am

Yeah

User avatar
Magoo
a grimling bloodguard
a grimling bloodguard
Posts: 690
Joined: Tue Jun 17, 2008 4:05 pm

Re: Simple monk macro - having some problems with it

Post by Magoo » Sun Jul 25, 2010 1:43 pm

/echo ${Me.AbilityReady[Flying Kick]} ? Or is it /echo ${Me.CombatAbilityReady[Flying Kick] ?

Stick Flying Kick hotbutton on a hotbar and use /keypress # ?

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Re: Simple monk macro - having some problems with it

Post by laksen » Mon Jul 26, 2010 7:17 am

I tried typing /doability "flying kick" ingame in MQ and that worked. Any special rules apply for emu?

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Re: Simple monk macro - having some problems with it

Post by laksen » Mon Jul 26, 2010 7:39 am

Ok, i tried to make it as simple as possible now. I made a new macro just to test the flying kick.

Code: Select all

Sub Main
/if (${Me.AbilityReady[Flying Kick]}) /doability "Flying Kick"
Since the doability "Flying Kick" works, there must must be something wrong with ability ready function. I tried ${Me.CombatAbilityReady[Flying Kick] but got the same result.

Any help greatly appriciated!

laksen
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sat Jul 24, 2010 2:05 pm

Re: Simple monk macro - having some problems with it

Post by laksen » Mon Jul 26, 2010 8:58 am

Ok, so i tried this instead:

Code: Select all

} 

/if (${Me.Combat}) {
/doability "Flying Kick"

} 
This will use flying kick when i press attack on, but will this cause any other problems? Since its constantly trying to kick even when its not up? (lag, mq detection or something like that).

boxalot
orc pawn
orc pawn
Posts: 22
Joined: Sun Jun 14, 2009 12:26 am

Re: Simple monk macro - having some problems with it

Post by boxalot » Tue Jul 27, 2010 1:57 am

Code: Select all

} 

/if (${Me.Combat} && ${Me.AbilityReady[Flying Kick]}) {
/doability "Flying Kick"

}