[help] location not @config

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

Moderator: Moderators

Mendes11
Noob
Noob
Posts: 5
Joined: 28 Dec 2012, 12:49
Noob?: Yes

[help] location not @config

#1 Post by Mendes11 »

hi,
I don't have a clue on what should I do to this code work :
CONFIG.TXT

blabla ve_fild03 201 112

MACRO.TXT

automacro test {
location not @config(blabla)
call x
}

can anyone help me on this one?? ;D

I saw something using this : eval ($::field->baseName eq $::config{lockMap})
but this one appears to be only for map name, not the coordinates too...

Thanks
ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: [help] location not @config

#2 Post by ptcarino »

Mendes11 wrote:automacro test {
location not @config(blabla)
call x
}
http://openkore.com/index.php/Macro_plugin#Events
Mendes11 wrote:eval ($::field->baseName eq $::config{lockMap})
dunno where you got this one but it's not supposed to be used as an example of an automacro event.

you should read more on the documentation
http://openkore.com/index.php/Macro_plugin
Image
Mendes11
Noob
Noob
Posts: 5
Joined: 28 Dec 2012, 12:49
Noob?: Yes

Re: [help] location not @config

#3 Post by Mendes11 »

Well... the manual don't say anything about using variables on location...
ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: [help] location not @config

#4 Post by ptcarino »

Mendes11 wrote:Well... the manual don't say anything about using variables on location...
because you're not really suppose to.

Code: Select all

location [not] <mapname [<x1> <y1> [<x2> <y2>]] [, ...]
did you really read the manual?

anyway.. you now have the proper format. i think you can solve it on your own now.
Image