im work a monster added & Portal now...

..just w8 for upload the file..
Monster added 80% finishing...
Portal 10%.. i have problem

need know how i get this code: (Red Color)
Code:
if (map == (short)Maps.TwinCity)
{
if (MyMath.PointDistance[COLOR="Red"](x, y, 963, 557)[/COLOR] < 10)
{
To[0] = (short)Maps.PhoenixCastle;
To[1] = 11;
To[2] = 376;
}
else if (MyMath.PointDistance[COLOR="Red"](x, y, 555, 964)[/COLOR] < 10)
{
To[0] = (short)Maps.ApeMoutain;
To[1] = 381;
To[2] = 21;
}
i need help where i get it the code...thanks...