Can't figure out how to use macros.

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
anon2020
Noob
Noob
Posts: 7
Joined: 20 Nov 2013, 02:59
Noob?: Yes

Can't figure out how to use macros.

#1 Post by anon2020 »

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. :cry:
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?

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: Can't figure out how to use macros.

#2 Post by Kaspy »

Follow the example reported in the article:

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
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
Image

anon2020
Noob
Noob
Posts: 7
Joined: 20 Nov 2013, 02:59
Noob?: Yes

Re: Can't figure out how to use macros.

#3 Post by anon2020 »

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?

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: Can't figure out how to use macros.

#4 Post by Kaspy »

Why would an independent file?
Must be within the macros.txt
Image

Post Reply