Page 1 of 1

Help with very simple macro

Posted: Sat Dec 11, 2004 2:15 pm
by bene0019
I'm attempting to write a very simple macro that will automatically kick my target if I'm close enough. I can't even get the following to work

Thanks for any help

Code: Select all

Sub Main
:StartLoop


/if (${Me.AbilityReady["Kick"]}) {
/doability "Kick"
/echo Kicking
}

/goto :StartLoop
/return
[/code]

Posted: Sat Dec 11, 2004 8:05 pm
by Neolesh
This is what I wrote when I want to do this. I wrote it when I was still learning this and haven't cleaned it up yet. I'm sure you can tho :)

Code: Select all

Sub Main

  /echo The Battle Macro is on!

  :Start

  /doevents

  /if (${Me.Combat} && ${Me.AbilityReady["kick"]} && !${Me.Stunned}) /doability "kick"
  /if (${Me.Casting.ID}) {
    :castingwait
     /if (${Me.Casting.ID}) /goto :castingwait
     /delay 1
  }

 /goto :Start

/return

Posted: Sun Dec 12, 2004 12:01 am
by bam
hrm, not really into the whole macro thing. but the only difference I can see is

Code: Select all

Kick
vs

Code: Select all

kick
which very well could be a problem as macro code seems to be very case sensitive.

Posted: Mon Dec 13, 2004 1:22 am
by Zeus

Code: Select all

/if (${Me.AbilityReady[Kick]}) /doability ${Me.Ability[Kick]}
Try that, kill the "'s around the string. Oh and dumb thing but make sure that kick is on a hotkey on the combat abilities.

Posted: Mon Dec 13, 2004 1:51 am
by Fluffy
Zeus wrote:

Code: Select all

/if (${Me.AbilityReady[Kick]}) /doability ${Me.Ability[Kick]}
Try that, kill the "'s around the string. Oh and dumb thing but make sure that kick is on a hotkey on the combat abilities.
There is no real need to have it hotkeyed.. But I usually have it up to make sure that it is going off anyway..

Posted: Mon Dec 13, 2004 6:42 am
by Goofmester1
pretty sure that Kick has to be capitalized. If that doesn't correct it I will work on it when I get home.. I know I have a kick sub in a couple macros I can pull out for you.

Posted: Mon Dec 13, 2004 8:58 am
by A_Druid_00
It doesn't need to be on a hotkey page. But, it does need to be hotkeyed on your abilities window. Try foraging or Taunting without a hotkey on your ability page.

Posted: Mon Dec 13, 2004 11:07 am
by Zeus
There is no real need to have it hotkeyed.. But I usually have it up to make sure that it is going off anyway..
What A_Druid_00 said :)

Posted: Mon Dec 13, 2004 3:00 pm
by Night Hawk

Code: Select all

Sub Main
   :Loop
    /if (${Me.Combat}&&${Me.AbilityReady["Kick"]}&&!${Me.Casting.ID}&&${Target.ID}&&!${Me.Stunned}) /doability "Kick"
   /goto :Loop
/return

Posted: Tue Dec 14, 2004 1:10 am
by Cr4zyb4rd
lacks a range check :P

Posted: Tue Dec 14, 2004 5:02 am
by Chill
If you want to do it in a macro, these examples should help.

However, I would suggest donating a few bucks to the devs and downloading MQ2Combat from the VIP section. It will Kick/Taunt/Bash/etc for you, turn off attack on enrage, stick to your targets, automatically accept invites, and maybe a couple other things. You can turn some or all of these features off if you dont want them, but I find most of it useful. It will also do all of this "in the background" without affecting any other macros you may want to run.

This is what I use to spam all my abilities, and it works quite well for me. It takes a little bit more effort to install a plugin the first time, but there is a post that walks you all through it.

Good luck.

Posted: Tue Dec 14, 2004 6:23 am
by Goofmester1
Or if for some reason you can't donate to get into the VIP section this plugin does a nice job spamming skills.
http://macroquest2.com/phpBB2/viewtopic.php?t=9079

Posted: Tue Dec 14, 2004 6:49 am
by A_Druid_00
Autoskills is godly