Possible bug with $char(speed)

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

insanitywiz
a hill giant
a hill giant
Posts: 250
Joined: Mon Jul 08, 2002 7:50 am

Possible bug with $char(speed)

Post by insanitywiz » Fri Oct 17, 2003 10:11 am

This latest build $char(speed) returns in the hundreds, when in the previous builds it was returning values between 0 and 1.9 with fastest selo's. I don't know which is supposed to be accurate though, so it may have just been fixed...

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Fri Oct 17, 2003 10:50 am

When I posted the fix, I indicated that devs/folks might want to adjust the formula used to create the final output. It is, however, still using the same value as it was previously.

I like it in the hundreds so that it is easier to compare speed differences. For example, if you get on a horse and spam /echo $char(speed) ..you'll actually see the speed get gradually faster as the horse speeds up and gradually slower as you stop.

insanitywiz
a hill giant
a hill giant
Posts: 250
Joined: Mon Jul 08, 2002 7:50 am

Post by insanitywiz » Fri Oct 17, 2003 3:09 pm

I saw your post, but couldn't make heads or tails of the formula, so figured I would post this anyway. And your reasoning is sound, if there isn't some other reason to change it back, either way works for what I use it for.

Ooka_Chokka
a lesser mummy
a lesser mummy
Posts: 63
Joined: Fri Nov 08, 2002 12:27 am

Post by Ooka_Chokka » Fri Oct 17, 2003 10:37 pm

divide by 100 and round to the nearest tenth. Should be fairly simple, i haven't written a macro in over a year, tho, so i can't help much =P