So Basically what I do there is make an invis mob where I want the mob to leash back too... called say T.pl With your code
Quote:
if ($timer eq "LeashCheck") {
$LeashedID = $entity_list->GetMobByNpcTypeID(1001);
$distanceCHK = $LeashedID->CalculateDistance($x, $y, $z);
#This will calculate the distance between this mob at current location
# and the mob that is leashed to it.
if ($distanceCHK >= 500) { #Whatever distance you want
$LeashedID->WipeHateList();
$LeashedID0->GMMove($x, $y, $z, 1);
#Clears hate list of leashed mob and warps it back to first mob.
}
}
|
Raid Mob ID 1001 lets say....
And the mob will Leash Back to that point right?
Just a bit confused as to how this works ..
King