buffing certain players

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

Moderator: Moderators

krisma
Human
Human
Posts: 36
Joined: 05 Mar 2009, 07:47
Noob?: Yes

buffing certain players

#1 Post by krisma »

can someone help me with this macro
i want to buff certain characters of mine whos not in a guild
i dont want other players to abuse my priest
my problem on this one is that it only triggers when name1 does the emotion
it doesnt trigger if name2,3 and 4 does it.

automacro buffed {
console /\[dist=(.*)\] (name1|name2]|name3|name4) \((\d+)\): \*Cell signal power 1/3(?!)*/i
exclusive 1
call {
$name = $.lastMatch2
do chat leave
do sp 2515 $.lastMatch2
pause 2
do sp 34 $.lastMatch2
do sp 29 $.lastMatch2
pause 2
do sp 361 $.lastMatch2
}
}
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: buffing certain players

#2 Post by ever_boy_ »

krisma wrote:can someone help me with this macro
i want to buff certain characters of mine whos not in a guild
i dont want other players to abuse my priest
my problem on this one is that it only triggers when name1 does the emotion
it doesnt trigger if name2,3 and 4 does it.

automacro buffed {
console /\[dist=(.*)\] (name1|name2]|name3|name4) \((\d+)\): \*Cell signal power 1/3(?!)*/i
exclusive 1
call {
$name = $.lastMatch2
do chat leave
do sp 2515 $.lastMatch2
pause 2
do sp 34 $.lastMatch2
do sp 29 $.lastMatch2
pause 2
do sp 361 $.lastMatch2
}
}

try this:

Code: Select all

console /^\[dist=(.*)\] (name[1234]) \((\d+)\): (\*Flag 6\*)$/
don't ever forget to escape the special characters like (, ), *, using the backslash \