Probable bug in /IF

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

Guest

Probable bug in /IF

Post by Guest » Sun Nov 23, 2003 11:59 pm

/if $char(speed)<=0.2 /press Num_Lock | Makes the char move foward if standing still

/if $char(speed)<=.2 /press Num_Lock | Does nothing.


Thanks,
New Lurker...

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Mon Nov 24, 2003 1:24 am

Use search to find numeric comparisons, or read the readme.html in MQ1.

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Mon Nov 24, 2003 4:03 am

In other words, put an n between /if and $char
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

Guest

Post by Guest » Mon Nov 24, 2003 8:11 pm

Actually, my point was that I'd found this line used in a dozen macros posted here. So it exists on god knows how many ppls machines and doesn't work for them either. Obviously the line doesn't work with out a 0 in front of the .2 for the comparison to complete so I guess I'll just repair my own version of MQ so other ppls broken macros work properly without having to alter them. :>

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Mon Nov 24, 2003 9:31 pm

Sorry *Guest*, I guess you will have to just go ahead and perform your exercise in futility instead of listening to people who have a clue.

theafkxper
a hill giant
a hill giant
Posts: 207
Joined: Sun Sep 08, 2002 6:41 pm

Post by theafkxper » Mon Nov 24, 2003 10:37 pm

settle down...
hes just stating that 0.2 works and .2 requires the N, there was no offense ment by it im sure.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Mon Nov 24, 2003 10:46 pm

No problem...


1. .2 works
2. 0.2 doesn't

Answer: Use #1

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon Nov 24, 2003 11:23 pm

/if $char(speed)<=0.2 /press Num_Lock | Makes the char move foward if standing still

This doesn't work. That's the point. Mr Lurker here thinks it works, but he's busily toggle his run on and off.

/if <arg><operator><arg> -- character comparison
/if n <arg><operator><arg> -- numeric comparison

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Tue Nov 25, 2003 12:43 am

Hiya dkaa!

I was giving an answer to theafkxper.

I knew it was because of the missing n, but no one wanted to listen to the suggestions by me and you so I just said the heck with it, and let them believe what they want to believe.

If they don't believe it's because of the missing n then let them try other ways.

theafkxper
a hill giant
a hill giant
Posts: 207
Joined: Sun Sep 08, 2002 6:41 pm

Post by theafkxper » Tue Nov 25, 2003 2:19 pm

wasnt arguing the issue, just stating that if he was correct, which it turns out he isnt, about
/if $char(speed)<=0.2 /press Num_Lock | Makes the char move foward if standing still
actually making the char move forward, then something is wrong, one way or another. Though he does have a point about it being in lots of macros :?