openkore icon indicating copy to clipboard operation
openkore copied to clipboard

How to get console message using eventMacro

Open steveWin32 opened this issue 9 years ago • 10 comments

I tried reading the documentation but there are no things for eventmacro. macro has it but eventMacro doesn't what is the keyword condition for console /(insert test)/

steveWin32 avatar Sep 08 '17 18:09 steveWin32

There is none

Henrybk avatar Sep 08 '17 19:09 Henrybk

Are there any alternates. I want to write a automacro for novice quest and i want to know if the bot dies because it deletes my eventmacro

steveWin32 avatar Sep 08 '17 21:09 steveWin32

you can put an condition that he is 50% hp (when you dies as an novice you always start with 50% of hp) and a condition that checks the position. since it always revive at the same spot, you can use as an condition, like this:

automacro ifDieWhileLevelingto12 {
	CurrentHP >= 50%
	IsInCoordinate 95 21
	InMap new_1-3, new_2-3, new_3-3
	exclusive 1
	call {
	    do move &rand(103,105) &rand(36,38)
	    do talk &npc(/Trainer/) 
	    do talk resp 0
	    do talk resp /5/
    }
}

recommend check this coordinate, since this macro above was made for server bRO, it can be diffferent on your server

Nipodemos avatar Sep 08 '17 22:09 Nipodemos

And also when the bot can't calculate a route to x or if the bot cant talk to npc

steveWin32 avatar Sep 08 '17 22:09 steveWin32

@Henrybk
event macro work with hooks? like old macro plugin? hook packet\vender_blbla

alisonrag avatar Sep 08 '17 22:09 alisonrag

@alisonrag it has a condition SimpleHookEvent, but it dont save values like in the old macro plugin

Nipodemos avatar Sep 08 '17 22:09 Nipodemos

in this case we can use hook when your character die

alisonrag avatar Sep 08 '17 22:09 alisonrag

what about eval ? does it have eval as a condotion ?

c4c1n6kr3m1 avatar Sep 08 '17 23:09 c4c1n6kr3m1

You cannot use eval either

Nipodemos avatar Sep 09 '17 00:09 Nipodemos

@drunkenhammer use: SimpleHookEvent self_died

alisonrag avatar Sep 09 '17 17:09 alisonrag