MACRO HELP Skill on player

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

jhay22
Noob
Noob
Posts: 2
Joined: 28 Aug 2012, 00:40
Noob?: Yes

MACRO HELP Skill on player

#1 Post by jhay22 »

utomacro sample {
console /Player (.*) \(\d+\) is casting Magnificat on/i
exclusive 1
call {
$dist = $.lastmatch1
$i = $.lastMatch3
do sp 277 $i 1
stop
}
}

THANK YOU TO IN ADVANCE

my problem was if they someone cast like Magnificat (it is only example) my macro triggered but my char used spell or skill on other player not the one who cast the Magnificat.. (sorry for the bad english)

please help..
jhay22
Noob
Noob
Posts: 2
Joined: 28 Aug 2012, 00:40
Noob?: Yes

Re: MACRO HELP Skill on player

#2 Post by jhay22 »

please help..
Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: MACRO HELP Skill on player

#3 Post by Dark Airnel »

You don't have value for $.lastMatch3

Try this:

Code: Select all

automacro sample {
console /Player (.*) \((\d+)\) is casting Magnificat on/i
exclusive 1
call {
$i = $.lastMatch2
do sp 277 $i 1
stop
}
}
If you meant distance by $dist then you are using it incorrectly. $.lastMatch1 should be the player's name.