Page 1 of 1

About buffs by telling the name

Posted: 03 Apr 2012, 07:16
by tetrapack
Im planning to make a macro that enable the priest to buffs the other name mentioned by his party member. unfortunately i got some errors with the targets, any help will be appreciated. Thanks

automacro buffsThisName {
party "hey priest please buffs this $name"
call buffs
}

macro buffs {
do sp 34 ** i dont know what to put here**
do sp 29 ** i dont know what to put here**
do sit
}

Re: About buffs by telling the name

Posted: 03 Apr 2012, 18:12
by SkylorD
You can do this through of Regular Expressions.
do sp 29 ** i dont know what to put here**
do sp 29 <target binID>
To return index (binID), you can use this :

@player("Player Name")

Returns player index of player <name>. If player <name> is not found, it returns -1.

-----


Like this :
automacro GM {
console /The player (.*) was died by a GM/i
call {
log "The player $.lastMatch1 was died by a GM"
log "I want trade with this player, can i do ?"
$playerID = @player($.lastMatch1)
do pm "$playerID" Quit, Gm is near and kill you
}
}
It's an example how you will do your macro.

Re: About buffs by telling the name

Posted: 01 Oct 2017, 06:25
by Hyperion0777
Im a noob on this can someone explain this further.. sorry I know this i an old post but im also trying to know how to do this macro

Re: About buffs by telling the name

Posted: 03 Oct 2017, 16:44
by Pachu
if you read the manual it's very easy to make your priest buff with chat commands