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

Event macro slot system #2781

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions control/eventMacros.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

automacro test_slot1 {
Henrybk marked this conversation as resolved.
Show resolved Hide resolved
exclusive 1
InMap prontera
disabled 0
overrideAI 1
slot 1
call {
log This is working in slot 1 start
pause 1
do c hey
pause 1.5
log This is working in slot 1 end
}
}

automacro test_slot2 {
exclusive 1
InMap prontera
disabled 0
overrideAI 1
slot 2
call {
log This is working in slot 2 start
pause 1.5
do c there
pause 1
log This is working in slot 2 end
}
}

automacro test_slot3 {
exclusive 1
InMap prontera
disabled 0
overrideAI 1
slot 3
call {
log This is working in slot 3 start
pause 2
do c man
pause 0.5
log This is working in slot 3 end
}
}
5 changes: 2 additions & 3 deletions plugins/eventMacro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ TODO:

1 - Create more conditions, at least the same number as the old macro plugin had.
2 - Hook AI only when we are sure an automacro is to be activated.
3 - Make slot system for automacros and macros, so in each slot a macro can be run and a group of automacros can be checked (so multiple macros can be run at the same time).
4 - Transfer macro code check to parsing time.
5 - Review macro condition code parsing (old Parser.pm and Script.pm)
3 - Transfer macro code check to parsing time.
4 - Review macro condition code parsing (old Parser.pm and Script.pm)
Loading