Slave move on PM(x, y) and Heal

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

Moderator: Moderators

Message
Author
skyscraper11
Noob
Noob
Posts: 4
Joined: 20 Aug 2013, 21:26
Noob?: No

Slave move on PM(x, y) and Heal

#1 Post by skyscraper11 »

i have this macro, when the masters' HP is low and it is siting they will PM their coordinates to their (single)Slave and it will come to them and heal them, but my problem is, when 1 master has low HP and sits it will PM the slave and another master has low HP it will PM the slave too, then the master who first PM'ed the Slave will be left and regenerate its HP and will be waiting for nothing while the second master will be healed, how can i make my Slave heal the first master who PM'ed when sudden PM was received by my Slave and will not go to the 2nd master if the first PM'ed master is not yet healed, and the Slave will heal the first who PM'ed and will go to the 2nd who PM'ed the Slave after the master's HP is fully healed , help?please? :(

Macro of Slave

automacro FindMaster {
pm /x (.*) (.*) (.*)/
call {
$masmap = $.lastMatch1
$masmapx = $.lastMatch2
$masmapy = $.lastMatch3
do conf follow 0
do move $masmap $masmapx $masmapy
}
}

automacro okay {
pm /ty/
call {
do conf follow 1
}
}

Macro of Masters

automacro HealMe {
console /You are sitting/
call {
do pm "Elite`" x $.map $.pos
}
}

automacro Done {
hp >= 90%
run-once 1
call {
do pm "Elite`" ty
}
}


btw, the Slave has one master following so he will not be staying on one place and being attacked by aggressives monsters.

Bobthebuilder
Noob
Noob
Posts: 19
Joined: 29 Sep 2013, 06:25
Noob?: No

Re: Slave move on PM(x, y) and Heal

#2 Post by Bobthebuilder »

for the slave, check out "exclusive" so when the first PM triggers, the second will not interrupt it.

http://wiki.openkore.com/index.php?title=Macro_plugin

and the

Code: Select all

automacro HealMe {
 console /You are sitting/
 call {
 do pm "Elite`" x $.map $.pos
 }
}
change it to something like

Code: Select all

automacro HealMe {
	console /Your are sitting/
	call hmmmmm
}

macro hmmmmm {
	do pm "Elite`" x $.map $.pos
	pause 15
	call hmmmmm
}

skyscraper11
Noob
Noob
Posts: 4
Joined: 20 Aug 2013, 21:26
Noob?: No

Re: Slave move on PM(x, y) and Heal

#3 Post by skyscraper11 »

wew, thanks a lot :D it worked smoothly :mrgreen:

Post Reply