follow mob but stop to cast

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

TAGBOT
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 09, 2004 12:27 pm

follow mob but stop to cast

Post by TAGBOT » Fri Apr 23, 2004 11:44 pm

I have tried numerous ways to cast a spell while using an attack/stick macro. The previous one had this line in it, I can fix the first and third "if" but not the middle one:

Code: Select all

/if n $target(id)==@MobID /if $char(casting)!=TRUE /if n $target(distance)>@MeleeDistance /keypress forward hold

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Fri Apr 23, 2004 11:50 pm

Code: Select all

/if ((${Target.ID})&&(${Target.Distance}>@MeleeDistance)&&(!${Me.Casting.ID})) /keypress forward hold
These codes are posted allot. Check a search or read a few posts.

Bob

..fixed typo
Last edited by bob_the_builder on Sat Apr 24, 2004 7:47 am, edited 2 times in total.

TAGBOT
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 09, 2004 12:27 pm

Post by TAGBOT » Sat Apr 24, 2004 12:24 am

I have searched and tried many different ones and none have worked. I will try this and see if it does the job. Thanks

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sat Apr 24, 2004 12:29 am

Just make sure you fix that typo from % to $

TAGBOT
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 09, 2004 12:27 pm

Post by TAGBOT » Sat Apr 24, 2004 12:32 am

Yeah, I caught the typo. That code does the same as all the others I have tried, the ($!{Me.Casting.ID} causes a non-numeric error encountered. Any other ideas?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Apr 24, 2004 12:35 am

Yes it's unparsable to do $!{

change it to !${
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

TAGBOT
orc pawn
orc pawn
Posts: 17
Joined: Fri Apr 09, 2004 12:27 pm

Post by TAGBOT » Sat Apr 24, 2004 1:01 am

Ok, thanks all that code works, just need to figure out how to or what is causing the Cant do that while casting spam