Rs2Prayer: invokePrayer function #1568
Closed
FunkyMonkeyCloud
started this conversation in
General
Replies: 1 comment
-
|
From @Mocrosoft via discord: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There has been discussion on the Discord about the issues that pop up with the Rs2Prayer invokePrayer function. Specifically, the mouse cursor moves on screen and can cause misclicks. This has major ramifications for PvM plugins & the AIO Fighter / PrayerHelper combination.
I'm trying to problem solve the mouse cursor issues caused by the Rs2Prayer invokePrayer method.
@notleumas came up with a solution to move the cursor back to original position after a 30ms delay. His solution, as posted on discord:
@bolado.dev suggested an alternate solution, which is to disable inputs for ~50ms to enable the prayer toggle to complete before other actions were processed.
Is there a consensus on which direction to move forward? I personally think the disabling of inputs for 30-50ms is an appropriate solution. This could be safeguarded by a 30-50ms sleep in the togglePrayer function. This solution may cause implications for plugins that rely on precise timings (e.g. PvM).
Beta Was this translation helpful? Give feedback.
All reactions