Protect The Priest Macro=)

Moderator: Moderators

Message
Author
n00b
Human
Human
Posts: 33
Joined: 09 Dec 2009, 01:18
Noob?: No

Re: Protect The Priest Macro=)

#11 Post by n00b »

gamenikko wrote:
n00b wrote:the macros protect priest is not working when PM asd a 1-0 command the master bot wont react.
my bad hehehe i forgot to change a character, its ok now ^_^

thank you it workd :D

ne3n
Noob
Noob
Posts: 5
Joined: 26 Jan 2010, 23:59
Noob?: Yes
Location: san pedro laguna phil.
Contact:

Re: Protect The Priest Macro=)

#12 Post by ne3n »

sir nikko... why is that every time may slave pm the master to help the slave... the master doesn't react??



(slave) macro trigger protectThepriest
pm'ing the master a 1


(master) recieve pm a 1



the master doest react.... :geek:

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Protect The Priest Macro=)

#13 Post by gamenikko »

ne3n wrote:sir nikko... why is that every time may slave pm the master to help the slave... the master doesn't react??



(slave) macro trigger protectThepriest
pm'ing the master a 1


(master) recieve pm a 1



the master doest react.... :geek:
maybe u didnt use the macro for MASTER thats the command macro, use that
Just like old times.

googley71
Human
Human
Posts: 21
Joined: 06 Dec 2009, 11:30
Noob?: Yes

Re: Protect The Priest Macro=)

#14 Post by googley71 »

What should I do to it when this situation comes:

The Master is storaging
then the slave triggers the macro
the Master is stucked and doesnt close the storage

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Protect The Priest Macro=)

#15 Post by gamenikko »

googley71 wrote:What should I do to it when this situation comes:

The Master is storaging
then the slave triggers the macro
the Master is stucked and doesnt close the storage
take a look at the new version of the macro i added ignore if at town, to prevent your scenario
Just like old times.

User avatar
twist3d
Testers Team
Testers Team
Posts: 94
Joined: 09 Sep 2009, 04:34
Noob?: No
Location: USA

Re: Protect The Priest Macro=)

#16 Post by twist3d »

why not use @config (saveMap) ; for $town

also I combined your two slave saving macros as my slaves are only Priests that I wish to use this for (any other class can handle themselves or teleport imo)

automacro statusRecover {
run-once 1
class Priest
console /Monster (.*) \((\d+)\) attacks you /i
call statusRecoverynow
timeout 8
}
macro statusRecoverynow {
$m = $.lastMatch2
$mymap = $.map
$lockmap = @config (lockMap)
$master = @config (followTarget)
$mon = $.lastMatch2
do sm 72 $m
if ($mymap != $lockmap) goto stop
do pm "$master" xd a $mon
:stop
stop
release statusRecover
}

also, couldn't you just authorize each of your bots to each other, and remove the XD portion of the PM macro so that it automatically "a <mon>" so it would look like this:

automacro statusRecover {
run-once 1
class Priest
console /Monster (.*) \((\d+)\) attacks you /i
call statusRecoverynow
timeout 8
}
macro statusRecoverynow {
$m = $.lastMatch2
do sm 72 $m
$mymap = $.map
$lockmap = @config (lockMap)
$master = @config (followTarget)
$mon = $.lastMatch2
if ($mymap != $lockmap) goto stop
do pm "$master" a $mon
:stop
stop
release statusRecover
}

and if the bot was in town it would just say : "<mon> not found!" and continue on its ai route?
Member since 09/09/09, botter since its first creation days. Thanks Kura for the original Kore.

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Protect The Priest Macro=)

#17 Post by gamenikko »

why not use @config (saveMap) ; for $town
not all players put saveMap option on their configs, and sometimes players have different kafra maps than where they are saved.
also, couldn't you just authorize each of your bots to each other, and remove the XD portion of the PM macro so that it automatically "a <mon>" so it would look like this:
remember in my party search macro you shoudnt put your priest at your master's authorization in short u couldnt use "a" command because ur priest is not authorized
also I combined your two slave saving macros as my slaves are only Priests that I wish to use this for (any other class can handle themselves or teleport imo)
=)
Just like old times.

ne3n
Noob
Noob
Posts: 5
Joined: 26 Jan 2010, 23:59
Noob?: Yes
Location: san pedro laguna phil.
Contact:

Re: Protect The Priest Macro=)

#18 Post by ne3n »

hi again sir nikko, sir i have a question again :mrgreen: ...


sir nikko im having having this error sayin'


Error in function 'a' <attack monster>
monster does not exist....


whats the problem here sir nikko??

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Protect The Priest Macro=)

#19 Post by gamenikko »

ne3n wrote:hi again sir nikko, sir i have a question again :mrgreen: ...


sir nikko im having having this error sayin'


Error in function 'a' <attack monster>
monster does not exist....


whats the problem here sir nikko??
its normal, as iv said, bots doesnt always see same monster ids, but sometimes they do, its normal
Just like old times.

ne3n
Noob
Noob
Posts: 5
Joined: 26 Jan 2010, 23:59
Noob?: Yes
Location: san pedro laguna phil.
Contact:

Re: Protect The Priest Macro=)

#20 Post by ne3n »

thanks again sir nikko... :mrgreen:

Post Reply