Page 1 of 1
Possible bug with $char(speed)
Posted: Fri Oct 17, 2003 10:11 am
by insanitywiz
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...
Posted: Fri Oct 17, 2003 10:50 am
by Amadeus
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.
Posted: Fri Oct 17, 2003 3:09 pm
by insanitywiz
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.
Posted: Fri Oct 17, 2003 10:37 pm
by Ooka_Chokka
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