كود PHP:
#region Teleport City (1128)
case 1128:
{
if (client.Entity.Dead == true)
break;
if (client.Map.IsDynamic()) break;
if (client.Entity.MapID == 1038 || client.Entity.MapID == 1783)
break;
if (client.Entity.MapID == 6001)
break;
if (client.Entity.MapID == 7852)
break;
if (client.Map.BaseID == 700 && client.Entity.MapID != 700)
break;
if (client.Entity.MapID == 601)
break;
p1128 vp = new p1128(false);
vp.Deserialize(packet);
switch (vp.UID)
{
case 0:
{
switch (vp.UID2)
{
case 1:
client.Entity.Teleport(1002, 429, 378);
break;
case 2:
client.Entity.Teleport(1011, 188, 264);
break;
case 3:
client.Entity.Teleport(1020, 565, 562);
break;
case 4:
client.Entity.Teleport(1000, 500, 650);
break;
case 5:
client.Entity.Teleport(1015, 717, 571);
break;
case 6:
client.Entity.Teleport(1002, 429, 378);
break;
case 7:
client.Entity.Teleport(1011, 188, 264);
break;
case 8:
client.Entity.Teleport(1002, 622, 677);
break;
case 9:
client.Entity.Teleport(1002, 567, 783);
break;
case 10:
client.Entity.Teleport(1002, 323, 629);
break;
case 11:
client.Entity.Teleport(1002, 119, 449);
break;
case 12:
client.Entity.Teleport(1002, 622, 677);
break;
case 13:
client.Entity.Teleport(1002, 622, 677);
break;
case 14:
client.Entity.Teleport(1002, 622, 677);
break;
case 15:
client.Entity.Teleport(1002, 622, 677);
break;
case 16:
client.Entity.Teleport(1002, 622, 677);
break;
case 17:
client.Entity.Teleport(1002, 622, 677);
break;
case 18:
client.Entity.Teleport(1002, 622, 677);
break;
case 19:
client.Entity.Teleport(1002, 622, 677);
break;
case 20:
client.Entity.Teleport(1002, 622, 677);
break;
case 21:
client.Entity.Teleport(1002, 622, 677);
break;
case 22:
client.Entity.Teleport(1002, 622, 677);
break;
case 23:
client.Entity.Teleport(1002, 622, 677);
break;
case 24:
client.Entity.Teleport(1002, 622, 677);
break;
case 25:
client.Entity.Teleport(1002, 622, 677);
break;
case 26:
client.Entity.Teleport(1002, 622, 677);
break;
case 27:
client.Entity.Teleport(1002, 622, 677);
break;
case 28:
client.Entity.Teleport(1002, 622, 677);
break;
case 29:
client.Entity.Teleport(1002, 622, 677);
break;
case 30:
client.Entity.Teleport(1002, 622, 677);
break;
case 31:
client.Entity.Teleport(1002, 622, 677);
break;
case 32:
client.Entity.Teleport(1002, 622, 677);
break;
case 33:
client.Entity.Teleport(1002, 622, 677);
break;
case 34:
client.Entity.Teleport(1002, 622, 677);
break;
{
}
default: Console.WriteLine("Unknown 1128 portal subtype 1 : " + vp.UID2); break;
}
break;
}
case 1:
{
switch (vp.UID2)
{
case 1:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1002, 429, 378);
}
}
client.Entity.Teleport(1002, 429, 378);
break;
case 2:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1011, 188, 264);
}
}
client.Entity.Teleport(1011, 188, 264);
break;
case 3:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1020, 565, 562);
}
}
client.Entity.Teleport(1020, 565, 562);
break;
case 4:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1000, 500, 650);
}
}
client.Entity.Teleport(1000, 500, 650);
break;
case 5:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1015, 717, 571);
}
}
client.Entity.Teleport(1015, 717, 571);
break;
case 6:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1002, 429, 378);
}
}
client.Entity.Teleport(1002, 429, 378);
break;
case 7:
foreach (Client.GameState teammate in client.Entity.Owner.Team.Teammates)
{
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, teammate.Entity.X, teammate.Entity.Y) <= 18)
{
teammate.Entity.Teleport(1011, 188, 264);
}
}
client.Entity.Teleport(1011, 188, 264);
break;
{
}
default: Console.WriteLine("Unknown 1128 portal subtype 2 : " + vp.UID2); break;
}
break;
}
default:
Console.WriteLine("Unknown 1128 subtype: " + vp.UID); break;
}
break;
}
#endregion