Page 1 of 1

Macro for checking tk mission

Posted: 04 Aug 2018, 11:29
by kamirie
Good Day,
I'm trying to create a macro for tk mission , I have this line

Code: Select all

automacro check {
console /Target died/ 
run-once 1
call { 
do ss 493 
release check
}
}
After the tk killed a mob , it will cast tk mission skill. How can I capture the event result

Code: Select all

[TaeKwon Mission] Target Monster : Poporing (0%)
So I can create a macro that will move my TK to where the mob isin this case poporing . This line is not being recognized as a console or system text ( I tested both) as I tried to create this line

Code: Select all

automacro poporing {
console /[TaeKwon Mission] Target Monster : Poporing (0%)/
  call {
 do ai manual
 do c @go 2
 do conf lockMap pay_fild04
 do reload config
 do ai auto
 timeout 4
}
}
Or is there any other/efficient way to the tk missions?

Re: Macro for checking tk mission

Posted: 04 Aug 2018, 12:15
by fadreus
kamirie wrote:After the tk killed a mob , it will cast tk mission skill. How can I capture the event result

CODE: SELECT ALL
[TaeKwon Mission] Target Monster : Poporing (0%)
Refer here:
http://forums.openkore.com/viewtopic.ph ... 00#p281000
kamirie wrote:Or is there any other/efficient way to the tk missions?
Hmm, I already deleted all macros collection including mine.
But, the idea I used before was simply using command exp monster after target died.
The trigger is : Target died > exp monster > 100 will trigger TK mission and command exp reset.

Here's the example:

Code: Select all

automacro Dead {
	console /Target died/
	call {
		do exp monster
	}
}

automacro 100 {
	console /<monster name><da space in consolee><100>/
	call {
		do 493
		do exp reset
	}
}

This will reduce the time to kill 100 by not casting TK mission every each kill.
Some problem that might happen is when Killing Steal, DC, or lag or something, da kill count is 100 but the real mission is not completed, just remove exp reset by another trigger or something.

I don't keep old macros coz I have fun re-learning everything again and again and improving mine each time I wrote new one :D

Re: Macro for checking tk mission

Posted: 05 Aug 2018, 21:31
by kamirie
Refer here:
viewtopic.php?f=27&t=212673&p=281000#p281000
Thanks for this. Was able to make it work.

Still doing test on what will function efficiently

Re: Macro for checking tk mission

Posted: 06 Aug 2018, 01:02
by kamirie
I tried to make exp mosnter as my trigger. How can i use this info for console trigger?

Code: Select all

--------- Monster Killed Count ---------
#   ID     Name                    Count
0   1002   Training Poring         55
1   1007   Training Fabre          14
2   1063   Lunatic                 21

Total number of killed monsters: 89
I have this as the trigger but it doesn't tigger the automacro

Code: Select all

console /[0-9]+1002	Training	Poring	55/
Got it to work with this

Code: Select all

console /[0-9](.*)+1002(.*)+Training Poring(.*)+20/

Re: Macro for checking tk mission

Posted: 08 Aug 2018, 14:43
by SkylorD
kamirie wrote:I tried to make exp mosnter as my trigger. How can i use this info for console trigger?

Code: Select all

--------- Monster Killed Count ---------
#   ID     Name                    Count
0   1002   Training Poring         55
1   1007   Training Fabre          14
2   1063   Lunatic                 21

Total number of killed monsters: 89
I have this as the trigger but it doesn't tigger the automacro

Code: Select all

console /[0-9]+1002	Training	Poring	55/


Got it to work with this

Code: Select all

console /[0-9](.*)+1002(.*)+Training Poring(.*)+20/
55+14+21=89? haha

You need use @eval (return $::monsters_Killed[#]{name})

Re: Macro for checking tk mission

Posted: 08 Aug 2018, 21:51
by kamirie
SkylorD wrote:
kamirie wrote:I tried to make exp mosnter as my trigger. How can i use this info for console trigger?

Code: Select all

--------- Monster Killed Count ---------
#   ID     Name                    Count
0   1002   Training Poring         55
1   1007   Training Fabre          14
2   1063   Lunatic                 21

Total number of killed monsters: 89
I have this as the trigger but it doesn't tigger the automacro

Code: Select all

console /[0-9]+1002	Training	Poring	55/


Got it to work with this

Code: Select all

console /[0-9](.*)+1002(.*)+Training Poring(.*)+20/
55+14+21=89? haha

You need use @eval (return $::monsters_Killed[#]{name})
haha , not sure about that result from kore. I have this codes purely using the old macro plugin. Can I use macro plugin and eventmacro side by side?