/if bug ? (latest zip)

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

/if bug ? (latest zip)

Post by morannon » Wed Apr 21, 2004 5:53 pm

/echo ${Me.Combat}

Gives TRUE if in combat (auto attack on), and FALSE if not.

/if ${Me.Combat} == FALSE {
/echo combat false
} else {
/echo combat true
}

Always echoes 'combat false'

I have tried :

/if ${Me.Combat} == FALSE {
/if (${Me.Combat} == FALSE) {
/if (${Me.Combat}) {

And it always executes the first branch.

If im being an idiot then sorry, but I couldnt see any relevant changes in any of the docs.

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 » Wed Apr 21, 2004 5:58 pm

grab 20040421b.zip, fixed
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Smitty
orc pawn
orc pawn
Posts: 25
Joined: Sun Dec 21, 2003 8:56 pm

Post by Smitty » Wed Apr 21, 2004 11:41 pm

I may be stupid.. but it still seems like there is a problem with the /ifs, and yes I have the newest file
Smitty

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

Post by ml2517 » Wed Apr 21, 2004 11:42 pm

/if's are fine from everything I've tested tonight.

Dantuss
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sun Aug 03, 2003 3:21 pm

Post by Dantuss » Thu Apr 22, 2004 1:17 am

I cant get this simple /if to work.

Code: Select all

/newif ${Target.Distance}>10 /keypress forward hold
/echo ${Target.Distance} will return the distance to my target I just cant figure out how to make the /if work.



Edit I am using April 21 2004 14:55:47 Zip

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

Post by ml2517 » Thu Apr 22, 2004 1:24 am

Because you have to surround all /if statements with parenthesis now:

Code: Select all

/if (${Target.Distance}>10) /keypress forward hold