markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 97 forks source link

[BUG] The if condition is not working in the following case #205

Closed majc18 closed 1 year ago

majc18 commented 1 year ago

I'm using ClassicUO and Razor v1.8.61.0.

I have the following script:

@setvar! minerDirection 1

if minerDirection = 1 say 'Direction' 88 endif

The "say 'Direction' 88" line is never executed.

majc18 commented 1 year ago

I was able to make it work with the following:

if minerDirection = @0x0

markdwags commented 1 year ago

This commit updates the variable system a bit, and should make your original script work as expected.

https://github.com/markdwags/Razor/commit/018c2e6f98a1900b0a11f07ffaa53f94d9a95593

majc18 commented 1 year ago

Thank you for your hard work!