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

CanExtractMateria bugged / maybe i'm just bad at lua idk #105

Open
PotatoSol opened this issue Oct 23, 2022 · 3 comments
Open

CanExtractMateria bugged / maybe i'm just bad at lua idk #105

PotatoSol opened this issue Oct 23, 2022 · 3 comments

Comments

@PotatoSol
Copy link

Having difficulty with CanExtractMateria()

if (CanExtractMateria(100))
then
yield('/send KEY_1<wait.1>')
yield('/send NEXT<wait.1>')
yield('/send NUMPAD0<wait.1>')
yield('/send KEY_1<wait.1>')
end

When set to 100, it attempts to extract Materia no matter what, even though none of my equipment has spiritbond at 100%. When set to 0, it does not attempt it. After playing around, I noticed that at values >= 80, it will attempt to extract (aka returning TRUE) and at <80, it will not (aka returning FALSE). Notably, my highest spiritbond is at 79%. Maybe a mixed < and > in the code?

@PascalTemel
Copy link

I'm using it without any parameter (only if CanExtractMateria() then) and it works fine in my macros

@PotatoSol
Copy link
Author

hm doesn't seem to work for me, still returns true

@Hezkezl
Copy link

Hezkezl commented Jan 25, 2023

Try removing the parenthesis around the CanExtractMateria part?

if CanExtractMateria()
then
yield('/send NUMPAD0<wait.1>')
end

This works for me. Doesn't trigger if none of my gear is 100% spiritbonded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants