Hello everyone!
I'm trying so hard to understand how to use macros, I read the plugins page on wiki, installed the macros folder and I still can't figure out how to use correctly the macros.
Actually I'm trying to set up 2 macros:
1) Auto use butterfly wings ( http://forums.openkore.com/viewtopic.php?f=33&t=7940 )
2) Avoid traps ( http://forums.openkore.com/viewtopic.php?f=16&t=13056 )
So what I need to do exactly?
Save the macros code to .pl file and put them in openkore/plugins/ ?
For example, like this:
openkore/plugins/butterfly_w.pl
openkore/plugins/avoidTrap.pl
Or I need to write the code directly in to the openkore/control/macros.txt?
Also I need to change something in config.txt?
Really, I tryed almost everything, when I type macro list my output is blank.
Openkore don't load my macros or can't found them ( macro not found or error in queue error.)
Can someone please help me a little bit?
Can't figure out how to use macros.
Moderator: Moderators
Re: Can't figure out how to use macros.
Follow the example reported in the article:
Create a blank file, with the nomde macros.txt, in the control folder.
[url=svn://svn.code.sf.net/p/openkore/code/plugins/macro/trunk/]SVN files[/url] should be inside the folder plugins/macro/Macro
Code: Select all
openkore
|-- openkore.pl
|-- control
| |-- macros.txt
|-- fields
|-- logs
|-- plugins
| |-- macro
| | |-- Macro
| | | |-- Automacro.pm
| | | |-- Data.pm
| | | |-- Parser.pm
| | | |-- Script.pm
| | | |-- Utilities.pm
| | |-- macro.pl
|-- src
|-- tables
[url=svn://svn.code.sf.net/p/openkore/code/plugins/macro/trunk/]SVN files[/url] should be inside the folder plugins/macro/Macro
Re: Can't figure out how to use macros.
This is what I have done.
Now?
Where I need to put the macro code?
In a stand alone file or inside the macros.txt?
Now?
Where I need to put the macro code?
In a stand alone file or inside the macros.txt?
Re: Can't figure out how to use macros.
Why would an independent file?
Must be within the macros.txt
Must be within the macros.txt