About FCP Macro

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

Moderator: Moderators

5e13ct
Plain Yogurt
Plain Yogurt
Posts: 51
Joined: 02 Sep 2012, 11:09
Noob?: No
Location: Brazil - PR

Re: About FCP Macro

#11 Post by 5e13ct »

1° Bot or player
*Send a PM the bot to go to the location
*do pm $nome movimentar prontera x y <<<

automacro negociar {
pm /Estou indo negociar!/i
$nome = $.lastpm
do ai manual
pause 2
log Permitindo negociações.
do conf dealAuto 0
do move prontera x y
do pause 5
do pm $nome movimentar prontera x y
}

*BOT 2
*go to place when PM is: movimentar

automacro responder1 {
pm /movimentar (.*)/i
call {
$nome = $.lastpm
log Nome gravado.
pause 3
log $nome esta me chamando para negociar.
do pause 1
do pause 1
do conf dealAuto 0
pause 1
log Permitindo negociações.
do pause 1
do pm $.lastpm Estou indo espere.
do move $.lastMatch1
log Iniciando loop
while ($.pos != $.lastMatch1) as loop
log Ainda não cheguei!
pause 10
end loop
log Estou no local certo.
do pm $nome Cheguei!
pause 5
do deal
}
}

Was that it?
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: About FCP Macro

#12 Post by ever_boy_ »

just send the slave your $.map && $.pos and tell him to move there.
barakuda
Noob
Noob
Posts: 15
Joined: 25 Jun 2008, 21:23
Noob?: Yes

Re: About FCP Macro

#13 Post by barakuda »

ever_boy_ wrote:just send the slave your $.map && $.pos and tell him to move there.
How am I suppose to do that in macro?
barakuda
Noob
Noob
Posts: 15
Joined: 25 Jun 2008, 21:23
Noob?: Yes

Re: About FCP Macro

#14 Post by barakuda »

ever_boy_ wrote:finally!! i dit! now I know hot to extract a player's pos and store it into a var:

Code: Select all

macro qwe {
	$x = @eval ($::players{$::playersID[0]}->{pos}{x})
	$y = @eval ($::players{$::playersID[0]}->{pos}{y})
	log target player's coordinates = $x $y
}
you just need to change the playersID[0] to whatever ID you like, or a var which has the target ID.

It worked! But the problem is, it does not give the exact coordinates of my char but 2cell away from it. Ex my coordinates is 150 150, then it will go to 148 148