################################
######COMMAND###################
################################
automacro Command {
console /\(From: (.*)\) : xd (.*)/
call {
#####NOTE : edit $town to the map you are using storage and auto buys!####
$town = Geffen #edit this!
$mymap = $.map
$xd = $.lastMatch1
$xd2 = $.lastMatch2
if ($mymap == $town) goto DeadMa
do $xd2
pause 0.5
do pm "$xd" I'll protect you..
stop
:DeadMa
stop
}
}
in Slave
################################
######PROTECT ME################
################################
automacro ProtectMe {
timeout 8
console /Monster (.*) \((\d+)\) attacks you/
call {
$mymap = $.map
$lockmap = @config (lockMap)
$master = @config (followTarget)
$mon = $.lastMatch2
if ($mymap == $lockmap) goto help
:help
do pm "$master" xd a $mon
if ($mymap != $lockmap) goto stop
:stop
stop
}
}