About buffs by telling the name

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

Moderator: Moderators

Message
Author
tetrapack
Noob
Noob
Posts: 1
Joined: 18 Mar 2012, 00:40
Noob?: Yes

About buffs by telling the name

#1 Post 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
}

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: About buffs by telling the name

#2 Post 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.
Learn rules

Hyperion0777
Noob
Noob
Posts: 1
Joined: 01 Oct 2017, 06:17
Noob?: Yes

Re: About buffs by telling the name

#3 Post 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

Pachu
Plain Yogurt
Plain Yogurt
Posts: 55
Joined: 04 Apr 2008, 14:21
Noob?: No

Re: About buffs by telling the name

#4 Post by Pachu »

if you read the manual it's very easy to make your priest buff with chat commands

Post Reply