Hey all

I'm trying to make my own automatic meer hunting with pets script but having trouble with 2 subject.
First thing is script is not sees Meer Eternal or Captain etc. but it sees Blood Elemental. I guess the thing is Meer Eternal is blue, as you know and thats why Script not sees them. (Ofcourse this is my idea, could be anything else)
Second thing is script moves to target, I handle it

But its moving too close, so monster starting attack me. I'm using these codes for walk;
event pathfind #findx #findy
gosub scanJournalFor get_there
sub scanJournalFor
{
scanjournal #JINDEX
if %1 in #journal
{
return #true
}
else
{
return #false
}
}
sub waitForKill
{
finditem %target G_15
while #findkind <> -1
{
if #enemyID = N/A
{
set #ltargetid %target
Event Macro 13 9 ; use skill peacemaking
Event Macro 22 0 ; last target
wait 1s
msg %TankPet kill$
Event Macro 22 0 ; last target
wait 3s
msg %DamagePet kill$
Event Macro 22 0 ; last target
wait 1s
}
set %x #findx - #charposx
if %x < 0
{
set %x %x * -1
}
set %y #findy - #charposy
if %y < 0
{
set %y %y * -1
}
if %x > 1 || %y > 3
{
event pathfind #findx #findy
gosub scanJournalFor get_there
if #Result
{
set %bZone #false
set %attacking #false
set %target X
return #false
}
}
Waiting for your help, thanks.