For everything NOT server specific support. Do NOT ask for connectivity help here!.
Moderator: Moderators
-
nyak00
- Noob

- Posts: 13
- Joined: 15 Apr 2012, 02:35
- Noob?: No
#1
Post
by nyak00 »
Hello, can you help me w/ my macro? I want to extract the monster number on console but it seems kore doesn't read my macro..
Attack Looter: Magmaring
(2) looted Jellopy
here's my macro
Code: Select all
automacro overbrand {
console /Attack Looter: Magmaring ((.*))/
map ve_fild03
sp >= 5%
exclusive 1
call {
$x = $.lastMatch1
pause 2
do sm 2317 $x 5
release overbrand
}
}
I'm getting the message,
Syntax error in function 'sm'(why can't I attach pictures here? I'm getting an error message..)
-
SkylorD
- Moderators

- Posts: 1196
- Joined: 16 Dec 2011, 02:53
- Noob?: No
- Location: Brazil
#2
Post
by SkylorD »
This :
Code: Select all
Attack Looter: Magmaring (2) looted Jellopy
Is equal to :
Code: Select all
Attack Looter: Magmaring \((\d+)\) looted Jellopy
You can use this too :
Code: Select all
automacro overbrand {
console /Attack Looter: Magmaring ((.*))/
map ve_fild03
sp >= 5%
exclusive 1
call {
$x = $.lastMonster
$id = @monster($x)
pause 2
do sm 2317 $id 5
release overbrand
}
}
Learn rules
-
nyak00
- Noob

- Posts: 13
- Joined: 15 Apr 2012, 02:35
- Noob?: No
#3
Post
by nyak00 »
SkylorD wrote:This :
Code: Select all
automacro overbrand {
console /Attack Looter: Magmaring ((.*))/
map ve_fild03
sp >= 5%
exclusive 1
call {
$x = $.lastMonster
$id = @monster($x)
pause 2
do sm 2317 $id 5
release overbrand
}
}
it works! thanks!!
-------
how do you extract this one?