#region Escamas
if (DateTime.Now.Hour >= 20)
{
//Escamas en CiudadDragon
#region Escama1 - CiudadDragon - 850,651
ushort CordX = 850;
ushort CordY = 651;
if (client.Entity.MapID == 1002)
{
if (client.Entity.X == CordX && client.Entity.Y == CordY && Network.PacketHandler.EscamaDragon1 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaDragon1 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX, CordY) > 17)
{
client.Effect = false;
Entity.EscamaDragon1 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX, CordY) < 17)
{
if (Entity.EscamaDragon1 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1002;
floorItemx.X = CordX;
floorItemx.Y = CordY;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaDragon1 == false)
{
client.Send(floorItemx);
}
Entity.EscamaDragon1 = true;
}
}
}
#endregion
#region Escama2 - CiudadDragon - 939,570
ushort CordX2 = 939;
ushort CordY2 = 570;
if (client.Entity.MapID == 1002)
{
if (client.Entity.X == CordX2 && client.Entity.Y == CordY2 && Network.PacketHandler.EscamaDragon2 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaDragon2 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX2, CordY2) > 17)
{
client.Effect = false;
Entity.EscamaDragon2 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX2, CordY2) < 17)
{
if (Entity.EscamaDragon2 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1002;
floorItemx.X = CordX2;
floorItemx.Y = CordY2;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaDragon2 == false)
{
client.Send(floorItemx);
}
Entity.EscamaDragon2 = true;
}
}
}
#endregion
#region Escama3 - CiudadDragon - 387,369
ushort CordX3 = 387;
ushort CordY3 = 369;
if (client.Entity.MapID == 1002)
{
if (client.Entity.X == CordX3 && client.Entity.Y == CordY3 && Network.PacketHandler.EscamaDragon2 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaDragon3 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX3, CordY3) > 17)
{
client.Effect = false;
Entity.EscamaDragon3 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX3, CordY3) < 17)
{
if (Entity.EscamaDragon3 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1002;
floorItemx.X = CordX3;
floorItemx.Y = CordY3;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaDragon3 == false)
{
client.Send(floorItemx);
}
Entity.EscamaDragon3 = true;
}
}
}
#endregion
#region Escama4 - CiudadDragon - 445 231
ushort CordX4 = 445;
ushort CordY4 = 231;
if (client.Entity.MapID == 1002)
{
if (client.Entity.X == CordX4 && client.Entity.Y == CordY4 && Network.PacketHandler.EscamaDragon4 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaDragon4 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX4, CordY4) > 17)
{
client.Effect = false;
Entity.EscamaDragon4 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX4, CordY4) < 17)
{
if (Entity.EscamaDragon4 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1002;
floorItemx.X = CordX4;
floorItemx.Y = CordY4;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaDragon4 == false)
{
client.Send(floorItemx);
}
Entity.EscamaDragon4 = true;
}
}
}
#endregion
//Escamas en MercadoDeCambio
#region Escama5 - MercadoDeCambio - 115,353
ushort CordX5 = 115;
ushort CordY5 = 353;
if (client.Entity.MapID == 1036)
{
if (client.Entity.X == CordX5 && client.Entity.Y == CordY5 && Network.PacketHandler.EscamaMercado4 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaMercado4 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX5, CordY5) > 17)
{
client.Effect = false;
Entity.EscamaMercado4 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX5, CordY5) < 17)
{
if (Entity.EscamaMercado4 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1036;
floorItemx.X = CordX5;
floorItemx.Y = CordY5;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaMercado4 == false)
{
client.Send(floorItemx);
}
Entity.EscamaMercado4 = true;
}
}
}
#endregion
#region Escama6 - MercadoDeCambio - 160,101
ushort CordX6 = 160;
ushort CordY6 = 101;
if (client.Entity.MapID == 1036)
{
if (client.Entity.X == CordX6 && client.Entity.Y == CordY6 && Network.PacketHandler.EscamaMercado1 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaMercado1 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX6, CordY6) > 17)
{
client.Effect = false;
Entity.EscamaMercado1 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX6, CordY6) < 17)
{
if (Entity.EscamaMercado1 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1036;
floorItemx.X = CordX6;
floorItemx.Y = CordY6;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaMercado1 == false)
{
client.Send(floorItemx);
}
Entity.EscamaMercado1 = true;
}
}
}
#endregion
#region Escama7 - MercadoDeCambio - 098,200
ushort CordX7 = 098;
ushort CordY7 = 200;
if (client.Entity.MapID == 1036)
{
if (client.Entity.X == CordX7 && client.Entity.Y == CordY7 && Network.PacketHandler.EscamaMercado2 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaMercado2 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX7, CordY7) > 17)
{
client.Effect = false;
Entity.EscamaMercado2 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX7, CordY7) < 17)
{
if (Entity.EscamaMercado2 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1036;
floorItemx.X = CordX7;
floorItemx.Y = CordY7;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaMercado2 == false)
{
client.Send(floorItemx);
}
Entity.EscamaMercado2 = true;
}
}
}
#endregion
#region Escama8 - MercadoDeCambio - 213,310
ushort CordX8 = 213;
ushort CordY8 = 310;
if (client.Entity.MapID == 1036)
{
if (client.Entity.X == CordX8 && client.Entity.Y == CordY8 && Network.PacketHandler.EscamaMercado3 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaMercado3 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX8, CordY8) > 17)
{
client.Effect = false;
Entity.EscamaMercado3 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX8, CordY8) < 17)
{
if (Entity.EscamaMercado3 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1036;
floorItemx.X = CordX8;
floorItemx.Y = CordY8;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaMercado3 == false)
{
client.Send(floorItemx);
}
Entity.EscamaMercado3 = true;
}
}
}
#endregion
#region Escama9 - MercadoDeCambio - 228 156
ushort CordX9 = 228;
ushort CordY9 = 156;
if (client.Entity.MapID == 1036)
{
if (client.Entity.X == CordX9 && client.Entity.Y == CordY9 && Network.PacketHandler.EscamaMercado4 == false)
{
Random R = new Random();
int Nr = R.Next(1, 4);
if (Nr == 1) { client.MoneySave += 1000; client.Send(new Network.GamePackets.Message("Has sacado 1000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 2) { client.MoneySave += 10000; client.Send(new Network.GamePackets.Message("Has sacado 10000 de plata de la escama.", System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft)); }
if (Nr == 3) { client.Inventory.Add(1088001, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado un Meteorito en una Escama. Felicidades!"); }
if (Nr == 4) { client.Inventory.Add(1088000, 0, 1); OpenConquer.Network.PacketHandler.WorldMessage("" + client.Entity.Name + " Ha encontrado una BolaDeDragón en una Escama. Felicidades!"); }
Network.PacketHandler.EscamaMercado4 = true;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX9, CordY9) > 17)
{
client.Effect = false;
Entity.EscamaMercado4 = false;
}
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, CordX9, CordY9) < 17)
{
if (Entity.EscamaMercado4 == false)
{
client.Effect = true;
Network.GamePackets.FloorItem floorItemx = new Network.GamePackets.FloorItem(true);
floorItemx.ItemID = 11;
floorItemx.MapID = 1036;
floorItemx.X = CordX9;
floorItemx.Y = CordY9;
floorItemx.Type = Network.GamePackets.FloorItem.Effect;
if (Network.PacketHandler.EscamaMercado4 == false)
{
client.Send(floorItemx);
}
Entity.EscamaMercado4 = true;
}
}
}
#endregion
}
#endregion[/quote]
Esto es algo que tiene la source OpenConquer 1.9.2 por eso nadie tiene esto
$image-0a1b3988-d63b-4de3-a8ca-b3f2af3cb281