Hmm, my head is spinning . 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?
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.
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?