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
}
About buffs by telling the name
Moderator: Moderators
Re: About buffs by telling the name
You can do this through of Regular Expressions.
@player("Player Name")
Returns player index of player <name>. If player <name> is not found, it returns -1.
-----
Like this :
do sp 29 ** i dont know what to put here**
To return index (binID), you can use this :do sp 29 <target binID>
@player("Player Name")
Returns player index of player <name>. If player <name> is not found, it returns -1.
-----
Like this :
It's an example how you will do your macro.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
}
}
Learn rules
-
- Noob
- Posts: 1
- Joined: 01 Oct 2017, 06:17
- Noob?: Yes
Re: About buffs by telling the name
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
if you read the manual it's very easy to make your priest buff with chat commands