openkore icon indicating copy to clipboard operation
openkore copied to clipboard

dealing Log Message in eventMacro

Open hubertyang88 opened this issue 4 years ago • 8 comments

------------------ Openkore Issues Template ------------------

  • Openkore version git:
  • Server:
  • Bug Report / Feature Request: I am trying eventMacro for its advanced function I found all kinds Msg like LocalMsg SystemMsg , PubMsg , but can't find a trigger like ‘console’ in macro to deal prompt text . So , is there not an event ‘console’ in eventMacro? I read some source code of macro plugin , there is a sub checkConsole to deal console Msg , but I don't really understand how plugin works .

After some failed tryings,it turns out this feature is important for me to transform my macro to eventmacro , could you please add some code to deal "Log Message" ?

  • Summary:

hubertyang88 avatar Feb 14 '21 07:02 hubertyang88

Nope, there is not a event in eventmacro to handle console messages. It was developed like this to be smooth and fast

alisonrag avatar Feb 14 '21 14:02 alisonrag

I see, THX

hubertyang88 avatar Feb 15 '21 06:02 hubertyang88

https://openkore.com/wiki/PubMsg

ya4ept avatar Feb 15 '21 06:02 ya4ept

PubMsg is for someone speak in public , it will not be triggered by console Msg like "you are now attacking xxx" , Anyway, eventmacro is much better than macro.

hubertyang88 avatar Feb 15 '21 08:02 hubertyang88

for sure has a hook to what you are looking for. if not exists, you can open a feature request so we can add to source code

alisonrag avatar Feb 15 '21 14:02 alisonrag

can you print or paste what kind of message do you want to handle?

alisonrag avatar Feb 21 '21 05:02 alisonrag

Some error messages , such like" I lost my master " or "fail to attack" , some log message , such like message showed by "exp monster", those messages are not triggered by packets . I understand eventMacro is all about event . Can an event triggered by what shows in console? or is it against the concept of eventMacro,cause this event will constantly checking?

hubertyang88 avatar Feb 21 '21 10:02 hubertyang88

@Henrybk

ya4ept avatar Aug 30 '21 02:08 ya4ept