i see there is the following handler:
OUT_OF_TERRITORY()
anybody knows if it can solve my problem ?
anw here what i wrote in order the mob turn back to his initial spawn location if someone try to kill him in Coliseum Area:
Code:
int RA_x11 = 146923;
int RA_y11 = 44711;
int RA_x12 = 152070;
int RA_y12 = 44711;
int RA_x13 = 152070;
int RA_y13 = 48730;
int RA_x14 = 146923;
int RA_y14 = 48730;
EventHandler ATTACKED(attacker)
{
if (
(RA_x11<myself.sm.x) && (myself.sm.x<RA_x12) &&
(RA_x14<myself.sm.x) && (myself.sm.x<RA_x13) &&
(RA_y14<myself.sm.y) && (myself.sm.y<RA_y11) &&
(RA_y13<myself.sm.y) && (myself.sm.y<RA_y12)
) {
Say("You make me waste my time " + attacker.name + ", cya !");
InstantTeleport(myself.sm, myself.start_x, myself.start_y, myself.start_z);
}
}
Not tested yet, it seems correct ?