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

Add busy checks for recall/PKL commands #2156

Merged
merged 3 commits into from
Jul 24, 2019

Conversation

dgarson
Copy link
Contributor

@dgarson dgarson commented Jul 23, 2019

Right now it is possible to use multiple recall commands as well as the PKL command simultaneously. You can test on the master branch by typing /mp and then immediately typing /pkl. You will notice that you become PKL just before you teleport to marketplace. You can use these commands while teleporting in portal space which will begin the timer for the action concurrently with the current teleport/action.

This PR adds a common check to determine whether a recall (or entering PKL) is possible at that time. It checks for whether the character is busy or is already teleporting.

@dgarson
Copy link
Contributor Author

dgarson commented Jul 23, 2019

So... for some reason I've noticed that I don't get the "You're too busy" weenie error, but it does work in terms of preventing the concurrent recall/pkl commands. Any idea as to why?

@ghost
Copy link

ghost commented Jul 23, 2019

There is already precedent set for checking 'if (IsBusy || Teleporting)' throughout the existing code-base that I don't think a new getter to encapsulate this check is really necessary.

@gmriggs
Copy link
Collaborator

gmriggs commented Jul 24, 2019

So... for some reason I've noticed that I don't get the "You're too busy" weenie error, but it does work in terms of preventing the concurrent recall/pkl commands. Any idea as to why?

Just tested, I get the "You're too busy!" error

@gmriggs gmriggs merged commit a458c2b into ACEmulator:master Jul 24, 2019
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

Successfully merging this pull request may close these issues.

2 participants