Protect The Priest Macro=)

Moderator: Moderators

Message
Author
Hexo55
Noob
Noob
Posts: 8
Joined: 19 Jan 2010, 22:57
Noob?: Yes

Re: Protect The Priest Macro=)

#31 Post by Hexo55 »

Hmm, my head is spinning :D . I already did create a sub get_distance which is used in sub monster_near_loc (sub get_distance is not an OK source function). Back to MiDaM's problem, why would sub monster_near_loc fail?

[EDIT]
I guess I found the problem,

Code: Select all

my ($x1, $y1, $x1, $y2) = @_;
duplicate $x1 variable.

niko123
Plain Yogurt
Plain Yogurt
Posts: 88
Joined: 11 Sep 2010, 19:00
Noob?: Yes

Re: Protect The Priest Macro=)

#32 Post by niko123 »

/wah..my priest wont pm the master i already set the followTarget.
Image

hunter101
Noob
Noob
Posts: 7
Joined: 29 Oct 2010, 12:06
Noob?: No

Re: Protect The Priest Macro=)

#33 Post by hunter101 »

################################
######PROTECT ME################
################################

automacro protectMe {
timeout 3
console /Monster (.*) \((\d+)\) attacks you/
call {
$mymap = $.map
$lockmap = @config (lockMap)
$master = @config (followTarget)
$follow = @config (follow)
$mon = $.lastMatch2
if ($follow = 0) stop
if ($mymap != $lockmap) stop
do pm "$master" xd a $mon
}
}

Can you edit this so that the slave lockmap is equal to the master lockmap? I think the reason for some people not working is because the lockmap is usually not set on the slave and only the master. What I have in mind is slave checks the current location of master and compare to own if not do not do the pm command.

hunter101
Noob
Noob
Posts: 7
Joined: 29 Oct 2010, 12:06
Noob?: No

Re: Protect The Priest Macro=)

#34 Post by hunter101 »

Ok I edited it a little removed lockmap because slave usually follows master anywhere
################################
######PROTECT ME################
################################

automacro protectMe {
timeout 3
player "name" -->change name
console /Monster (.*) \((\d+)\) attacks you/
call {
$master = @config (followTarget)
$follow = @config (follow)
$mon = $.lastMatch2
if ($follow = 0) stop
do pm "$master" xd a $mon
}
}

but I got a problem I want to use player name as @config (followTarget) how can I substitute that?

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=)

#35 Post by gamenikko »

but I got a problem I want to use player name as @config (followTarget) how can I substitute that?
change

Code: Select all

$master = yourMasterNameHere
Just like old times.

OrdinaryGuy
Noob
Noob
Posts: 1
Joined: 25 Mar 2009, 02:02
Noob?: No

Re: Protect The Priest Macro=)

#36 Post by OrdinaryGuy »

i wanna ask.....i get my slave work for recovery skill n pm the master..
but the master doen't triger anything...why?

madshark
Noob
Noob
Posts: 10
Joined: 02 Jan 2009, 12:48
Noob?: Yes

Re: Protect The Priest Macro=)

#37 Post by madshark »

OrdinaryGuy wrote:i wanna ask.....i get my slave work for recovery skill n pm the master..
but the master doen't triger anything...why?
if u use the recover macros, it will not pm the master..use macro protectMe at the slave and macro command for master ;)


Good macros..works well with me though

jea921
Human
Human
Posts: 26
Joined: 08 Nov 2010, 02:49
Noob?: No

Re: Protect The Priest Macro=)

#38 Post by jea921 »

encountered a problem..not all the monster# near the slave is the same as the monster# of the master..

if monster1 is labeled as #0 on the slave...their is a chance that monster1 is labeled as #1 or #2 (it will depend) on the master..

Post Reply