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 builtin (chat) macro command #340

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xmycroftx
Copy link

@xmycroftx xmycroftx commented Dec 11, 2022

example usage: macro say this will cast blink and sleep 10 seconds;cast blink; sleep 10000

Explanation: Using update tick, we create a clock reference and compare, running macro parsing/execution in a recursive queue draining fashion.

loops are invoked similarly:
macro emote blinks;cast blink;sleep 10000;loop

Loop execution is stopped with a macro stop command, but otherwise will continue until the client is closed.

the other subcommand "sleep N" is a "best try" sleep at milisecond precision -- really it's at the precision of the client's TPS/main loop

@xmycroftx
Copy link
Author

@cyberjunk Any chance on this one?

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.

1 participant