|
|
|
أفضل جواب - كتبه Hassan Emprator
|
|
فويد StartWar اقفل من سالب وبدله كلو بي دا كود:
|
public static void StartWar()
{
try
{
if (IsWar)
EndWar();
IsWar = true;
WarStart = DateTime.Now;
if (!Constants.PKFreeMaps.Contains(Map.ID))
Constants.PKFreeMaps.Add(Map.ID);
Kernel.SendWorldMessage(new Message(" GuildScoreWar War began ", Color.White, Message.BroadcastMessage), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("You Want To Join GuildScoreWar and Got Cps from the War [30.000] ConquerPoints & [20.000] CpsBound?",
p => { p.Entity.Teleport(1002, 260, 143); }, null, 60);
Map.Npcs.Clear();
#region StatuesPole
Pole = new Network.GamePackets.SobNpcSpawn();
Pole.UID = Map.EntityUIDCounter2.Next;
Pole.Mesh = 1137;
Pole.Type = (Enums.NpcType)10;
Pole.X = 222;
Pole.Y = 131;
Pole.ShowName = true;
Pole.Sort = 17;
Pole.Hitpoints = 20000000;
Pole.MaxHitpoints = 20000000;
Pole.Name = "GuildScoreWar";
Pole.MapID = Map.ID;
#endregion
#region RightGate
LeftGate = new Network.GamePackets.SobNpcSpawn();
LeftGate.UID = 84523;
LeftGate.Mesh = 277;
LeftGate.Type = (Enums.NpcType)26;
LeftGate.X = (ushort)282;
LeftGate.Y = (ushort)143;
LeftGate.Hitpoints = 10000000;
LeftGate.MaxHitpoints = 10000000;
LeftGate.MapID = Map.ID;
LeftGate.Mesh = (ushort)(240 + LeftGate.Mesh % 10);
#endregion
#region LeftGate
RightGate = new Network.GamePackets.SobNpcSpawn();
RightGate.UID = 84524;
RightGate.Mesh = 277;
RightGate.Type = (Enums.NpcType)26;
RightGate.X = (ushort)175;
RightGate.Y = (ushort)138;
RightGate.Hitpoints = 10000000;
RightGate.MaxHitpoints = 10000000;
RightGate.MapID = Map.ID;
#endregion
Map.AddNpc(LeftGate);//.Npcs.Add(LeftGate.UID, LeftGate);
Map.AddNpc(RightGate);//.Npcs.Add(RightGate.UID, RightGate);
Map.AddNpc(Pole);
}
catch (Exception ex)
{
Console.WriteLine(ex);
Program.SaveException(ex);
}
}
public static void StartWar()
{
try
{
if (IsWar)
EndWar();
IsWar = true;
WarStart = DateTime.Now;
if (!Constants.PKFreeMaps.Contains(Map.ID))
Constants.PKFreeMaps.Add(Map.ID);
Kernel.SendWorldMessage(new Message(" GuildScoreWar War began ", Color.White, Message.BroadcastMessage), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("You Want To Join GuildScoreWar and Got Cps from the War [30.000] ConquerPoints & [20.000] CpsBound?",
p => { p.Entity.Teleport(1002, 260, 143); }, null, 60);
Map.Npcs.Clear();
#region StatuesPole
Pole = new Network.GamePackets.SobNpcSpawn();
Pole.UID = Map.EntityUIDCounter2.Next;
Pole.Mesh = 1137;
Pole.Type = (Enums.NpcType)10;
Pole.X = 222;
Pole.Y = 131;
Pole.ShowName = true;
Pole.Sort = 17;
Pole.Hitpoints = 20000000;
Pole.MaxHitpoints = 20000000;
Pole.Name = "GuildScoreWar";
Pole.MapID = Map.ID;
#endregion
#region RightGate
LeftGate = new Network.GamePackets.SobNpcSpawn();
LeftGate.UID = 84523;
LeftGate.Mesh = 277;
LeftGate.Type = (Enums.NpcType)26;
LeftGate.X = (ushort)282;
LeftGate.Y = (ushort)143;
LeftGate.Hitpoints = 10000000;
LeftGate.MaxHitpoints = 10000000;
LeftGate.MapID = Map.ID;
LeftGate.Mesh = (ushort)(240 + LeftGate.Mesh % 10);
#endregion
#region LeftGate
RightGate = new Network.GamePackets.SobNpcSpawn();
RightGate.UID = 84524;
RightGate.Mesh = 277;
RightGate.Type = (Enums.NpcType)26;
RightGate.X = (ushort)175;
RightGate.Y = (ushort)138;
RightGate.Hitpoints = 10000000;
RightGate.MaxHitpoints = 10000000;
RightGate.MapID = Map.ID;
#endregion
Map.AddNpc(LeftGate);//.Npcs.Add(LeftGate.UID, LeftGate);
Map.AddNpc(RightGate);//.Npcs.Add(RightGate.UID, RightGate);
Map.AddNpc(Pole);
}
catch (Exception ex)
{
Console.WriteLine(ex);
Program.SaveException(ex);
}
}
|
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| حل الايرور ده | messi55 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2021-01-16 08:03 PM |
| حل الايرور ده يارجاله معلش | messi55 | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-12-20 01:12 PM |
| حل الايرور دا | walid88 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-10-01 05:50 PM |
| حل الايرور ده | karem010 | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-07-17 04:12 AM |
| ممكن حل الايرور ده | abdocoder | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-05-13 01:43 AM |