Page 1 of 1

Simple monk macro - having some problems with it

Posted: Sat Jul 24, 2010 6:53 pm
by laksen
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

Re: Simple monk macro - having some problems with it

Posted: Sat Jul 24, 2010 8:00 pm
by pms
Make sure you have Flying Kick assigned to one of the combat action window buttons and not just a hotkey on the hotkey bar.

Re: Simple monk macro - having some problems with it

Posted: Sat Jul 24, 2010 8:09 pm
by laksen
I have flying kick assinged in combat action window, still not working. No error message either..

Re: Simple monk macro - having some problems with it

Posted: Sat Jul 24, 2010 9:12 pm
by pms
emu server?

Re: Simple monk macro - having some problems with it

Posted: Sun Jul 25, 2010 6:46 am
by laksen
Yeah

Re: Simple monk macro - having some problems with it

Posted: Sun Jul 25, 2010 1:43 pm
by Magoo
/echo ${Me.AbilityReady[Flying Kick]} ? Or is it /echo ${Me.CombatAbilityReady[Flying Kick] ?

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

Re: Simple monk macro - having some problems with it

Posted: Mon Jul 26, 2010 7:17 am
by laksen
I tried typing /doability "flying kick" ingame in MQ and that worked. Any special rules apply for emu?

Re: Simple monk macro - having some problems with it

Posted: Mon Jul 26, 2010 7:39 am
by laksen
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!

Re: Simple monk macro - having some problems with it

Posted: Mon Jul 26, 2010 8:58 am
by laksen
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).

Re: Simple monk macro - having some problems with it

Posted: Tue Jul 27, 2010 1:57 am
by boxalot

Code: Select all

} 

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

}