Openkore: Console condition in eventMacro?

Created on 12 Sep 2017  路  5Comments  路  Source: OpenKore/openkore

Hello community, maybe I am missing something, but how can I trigger an automacro in eventMacro plugin that triggers with console text as condition?

in macro plugin, you can use console <text>[1] as an automacro condition, why this is not the case in eventMacro?

[1] http://openkore.com/index.php/Macro_plugin#Conditions_2

Most helpful comment

You can do it with my update #1118

automacro auto_lex_aeterna {
    SimpleHookEvent is_casting
    call {
        do sm "Lex Aeterna" $.SimpleHookEventLastTargetID
    }
}

this hook gives such vars:
sourceID targetID source target skillID skill time castTime x y
u can look what is stored there and use it for ur needs

All 5 comments

eventmacro does not have this condition.
be more specific and we can hel you with another alternative

thanks, being more specific, here is what I am want to port to autoMacro:

automacro auto_lex_aeterna {
    console /Player (.*) \((\d+)\) is casting (.*) on Monster (.*) \((\d+)\).*/i
    call {
        do sm "Lex Aeterna" $.lastMatch5
    }
}

there is an alternative for this in autoMacro?

You can do it with my update #1118

automacro auto_lex_aeterna {
    SimpleHookEvent is_casting
    call {
        do sm "Lex Aeterna" $.SimpleHookEventLastTargetID
    }
}

this hook gives such vars:
sourceID targetID source target skillID skill time castTime x y
u can look what is stored there and use it for ur needs

thanks!, I am going to try it

is there a way to specify in the arguments of kore, the eventMacros file? like:

kore.exe --event_macros=path

or at least a way to specify other file than eventMacros file in the config.txt?

I don't know if you can (I think you can) specify another file, but you can !include any file you want from eventMacros.txt

http://openkore.com/index.php/!include

I'm closing this as the main issue was solved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shacalif picture shacalif  路  5Comments

Sensuii picture Sensuii  路  4Comments

lututui picture lututui  路  5Comments

Bleu01 picture Bleu01  路  3Comments

Jangsunsuk picture Jangsunsuk  路  4Comments