#(pgini) PlayerInteractEvent rewriting help

17 messages · Page 1 of 1 (latest)

fickle flint
#

Alright, this is going to be a chore to convey the issue coherently, so bear with me:
In the event there are three relevant terms, Position Runes, Bound Runes, Rune Activations.
The issue with the event is this:

  • Whenever the Rune Activation code comes above the Rune Activations code, the left click functionality of the Bound Runes stops working.
  • Whenever the Bound Runes code is above the Rune Activations code, all runes stop working except Bound Runes, because it treats everything like Bound Runes.
  • Because of that I need help/ideas on how to rewrite the code so everything will work as intended.
  • The code for Position Runes is irrelevant for this issue since it works as intended no matter the position.
wicked sandalBOT
#

(pgini) PlayerInteractEvent rewriting help

wicked sandalBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

fickle flint
#

Providing paste in a sec

#

!paste

shell bladeBOT
fickle flint
#

And I didn't write this event and this is above my java level ;-; which is why I'm going to need a lot of help solving this

#

Since the person that wrote this is almost never available

#

It is worth noting that whenever the Bound Rune section is at the top left click functionality works fine

#

Just realised I hadn't tested if it needs to be at the very top or whether the Position Runes section affects it

#

Will test and come back

#

Also do let me know if you want some info about the data types we have

#

I had some theories as to why the order mattered but non of them worked

fickle flint
#

We did it! :D

#

We found the issue

#

It was some faulty if checks