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?
About FCP Macro
Moderator: Moderators
-
- Plain Yogurt
- Posts: 51
- Joined: 02 Sep 2012, 11:09
- Noob?: No
- Location: Brazil - PR
-
- Developers
- Posts: 308
- Joined: 06 Jul 2012, 13:44
- Noob?: No
Re: About FCP Macro
just send the slave your $.map && $.pos and tell him to move there.
-
- Noob
- Posts: 15
- Joined: 25 Jun 2008, 21:23
- Noob?: Yes
Re: About FCP Macro
How am I suppose to do that in macro?ever_boy_ wrote:just send the slave your $.map && $.pos and tell him to move there.
-
- Noob
- Posts: 15
- Joined: 25 Jun 2008, 21:23
- Noob?: Yes
Re: About FCP Macro
ever_boy_ wrote:finally!! i dit! now I know hot to extract a player's pos and store it into a var:
you just need to change the playersID[0] to whatever ID you like, or a var which has the target ID.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 }
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