henrybk / eventmacro Goto Github PK
View Code? Open in Web Editor NEWMy personal rework of openkore's macro plugin
License: GNU General Public License v2.0
My personal rework of openkore's macro plugin
License: GNU General Public License v2.0
Up until now there has been no work done in regards to this type of condition, they should not have a 'fulfilled' state because they can only be true in the exact moment openkore receives the packet concerning them, and so only 1 condition of this type should exist in each automacro.
Maybe automacros should have a parameter to specify when in the kore AI loop they want to be checked (mainLoop_pre / AI_pre/manual / AI_pre / AI_post)
On the openkore eventMacro wiki, the lock section tells "To lock all automacros, use lock all."
Usage of lock all in a macro or call results eventMacro complaining about there being no macro such as 'all'
[eventMacro] Error in macro 'lockallbug'
[eventMacro] Line index of the error '0'
[eventMacro] Script of the line 'lock all'
[eventMacro] Error message 'could not find automacro with name 'all''
When eventMacro file is reloaded by it's handle (calling eventMacro::parseAndHook) all automacro conditions will be set to '0' (not true) and will only be changed when something in kore changes to make them be verified.
We should have a way around this problem.
Is there a console equivalent on eventMacro? If not is there a function to detect if you are talking to npc?
Remove the need for --
when calling a macro, and give call
the full feature set of the eventMacro
console command... or at least the ability to pass arguments.
Current:
eventMacro foo -- arg1 arg2
call foo 10
(no ability to pass arguments)Suggested:
eventMacro foo arg1 arg2
call foo -repeat 10 arg1 arg2
In the actual macro plugin and still in eventMacro all macros are parsed during execution time, line by line, this should not be done this way, macros should have a parsing function that is called during load time.
If you use these conditions, the automacro won't show up in available macros anymore.
eventMacro should have a way of stopping a macro when the client disconnect and return to it later when back online.
There's currently no way to do dynamic inclusions and exclusions of macro files, macro plugin had macroinclude plugin, this feature must be included.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.