Getting a Coater Macro to work properly...

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

Moderator: Moderators

Message
Author
coffeepoppy
Noob
Noob
Posts: 5
Joined: 06 Jul 2014, 16:15
Noob?: Yes

Getting a Coater Macro to work properly...

#1 Post by coffeepoppy »

I'm trying to make an automacro that coats when you pm the character a specific text....
I'm not sure why this isn't working.
It keeps saying
match: wrong # of argument (a*)()


This is my macro

automacro coat {
pm (a*)[,$.lastpmMsg]
call {
do ai manual
pause 1
do sp(479)
}
timeout 20
}


What am I doing wrong? I am stupid new and maybe I am missing something...
:( Any help is super appreciated... and any explanation is awesome.

coffeepoppy
Noob
Noob
Posts: 5
Joined: 06 Jul 2014, 16:15
Noob?: Yes

Re: Getting a Coater Macro to work properly...

#2 Post by coffeepoppy »

I think I'm missing how to get the bot to target the person that pm's him.... hmmmm

coffeepoppy
Noob
Noob
Posts: 5
Joined: 06 Jul 2014, 16:15
Noob?: Yes

Re: Getting a Coater Macro to work properly...

#3 Post by coffeepoppy »

Figured it out.

automacro Coater {
pm /coat/i
run-once 1
call Coat

}

macro Coat {
do stand
do sp 479 $.lastpm
pause 1
pause 1
release Coater
}


So I get for a template it would be as such...
***delete from the three stars and replace with description between***

automacro ***name 1*** {
pm /***text you want to pm***/i
run-once 1
call ***name 2***

}

macro ***name 2*** {
do stand
do sp ***skill number*** $.lastpm
pause 1
pause 1
release ***name 1***
}

Post Reply