Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
majc18 opened this issue Feb 3, 2023 · 3 comments
Closed

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

majc18 opened this issue Feb 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@majc18
Copy link

majc18 commented Feb 3, 2023

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 majc18 added the bug Something isn't working label Feb 3, 2023
@majc18 majc18 changed the title The if condition is not working [BUG] [BUG] The if condition is not working Feb 4, 2023
@majc18 majc18 changed the title [BUG] The if condition is not working [BUG] The if condition is not working in the following case Feb 4, 2023
@majc18
Copy link
Author

majc18 commented Feb 5, 2023

I was able to make it work with the following:

if minerDirection = @0x0

@markdwags
Copy link
Owner

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

018c2e6

@majc18
Copy link
Author

majc18 commented Feb 18, 2023

Thank you for your hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants