المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : مسااااااعده


body2020
2020-04-30, 11:41 AM
عندى فى انبى سى بتاع war المفروض يطلع لسالة للعيبه تسألهم هينضموا ولا لا وتبعتهم لل npc بتاع الوير علشان يدخلهم بس عندى الوير بتشتغل عادى من غير ما فى رسايل تظهر

body2020
2020-04-30, 12:14 PM
برجاء المساعده

midoazoz
2020-04-30, 01:52 PM
حطلها رساله خد

Kernel.SendWorldMessage(new Message("GUildWar has began! ]", Color.Red, Message.Center), Program.Values);
foreach (var client in Program.Values)

client.MessageBox("GuildWar Started Would You Like To join?",
p => { p.Entity.Teleport(1002, 321, 255); }, null);

في طرق كتير بس دي اسهلها

Hassan Emprator
2020-04-30, 01:53 PM
ضيف ال 2 دول في world

سيرش عا
private void WorldTournaments(int time)

ضيف

#region GuildWar
if (GuildWar.IsWar)
{
if (Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(3))
{
GuildWar.ScoreSendStamp = Time32.Now;
GuildWar.SendScores();
}

}
if ((Now64.Hour >= 00 && Now64.Hour <= 21) && Now64.DayOfWeek == DayOfWeek.Sunday)
{
if (!GuildWar.IsWar)
{
GuildWar.Start();
foreach (Client.GameState client in Kernel.GamePool.Values)
{
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Entity.Dead)
{
EventAlert alert = new EventAlert
{
StrResID = 10515,
Countdown = 60,
UK12 = 1
};
client.Entity.StrResID = 10515;
client.Send(alert);
}
}
}
}
if (GuildWar.IsWar)
{
if (Now64.Hour == 22 && Now64.Second <= 00)
{
GuildWar.Flame10th = false;
GuildWar.End();
}
}
#endregion
#region GuildWar
if ((Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00) && (Now64.DayOfWeek == DayOfWeek.Sunday))
{
Kernel.SendWorldMessage(new Message("Guild War now work will end at 22:00 Server time have Chance To Get [500.000 Cps] !", Color.White, Message.BroadcastMessage), Program.Values);
foreach (var client in Program.Values)
client.MessageBox(" Guild War now work will end at 22:00 Server time?",
p => { p.Entity.Teleport(1002, 224, 237); }, null, 20);
}
#endregion

Hassan Emprator
2020-04-30, 01:54 PM
حطلها رساله خد

kernel.sendworldmessage(new message("guildwar has began! ]", color.red, message.center), program.values);
foreach (var client in program.values)

client.messagebox("guildwar started would you like to join?",
p => { p.entity.teleport(1002, 321, 255); }, null);

في طرق كتير بس دي اسهلها

او زي ما قالك ميدو كاد بالظبط

body2020
2020-04-30, 02:15 PM
دا كود ال npcs الى رسالتهم مش بتظهر هم كانوا كلهم فى npc واحد وانا عملت منهم اكتر من npc
#region ConquerPK
if (Now64.Minute == 00 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("ConquerPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("ConquerPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 318, 273); }, null, 20);
}
#endregion
#region DemonHellPK
if (Now64.Minute == 07 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("DemonHellPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("DemonHellPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 317, 285); }, null, 20);
}
#endregion
#region HorsePK
if (Now64.Minute == 14 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("HorsePK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("HorsePK began! Would you like to join?",
p => { p.Player.Teleport(1002, 309, 285); }, null, 20);
}
#endregion
#region SpeedPK
if (Now64.Minute == 21 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("SpeedPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("SpeedPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 309, 298); }, null, 20);
}
#endregion
#region The Prince
if (Now64.Minute == 28 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("The Prince began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The Prince began! Would you like to join?",
p => { p.Player.Teleport(1002, 318, 299); }, null, 20);
}
#endregion
#region The Duke
if (Now64.Minute == 35 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("The Duke began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("The Duke began! Would you like to join?",
p => { p.Player.Teleport(1002, 309, 272); }, null, 20);
}
#endregion
#region ChampionPK
if (Now64.Minute == 42 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("ChampionPK began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("ChampionPK began! Would you like to join?",
p => { p.Player.Teleport(1002, 326, 260); }, null, 20);
}
#endregion
#region Final-WaR
if (Now64.Minute == 28 && Now64.Second == 05)
{
Kernel.SendWorldMessage(new Message("Final-WaR began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("Final-WaR began! Would you like to join?",
p => { p.Player.Teleport(1002, 313, 281); }, null, 20);
}
#endregion

Hassan Emprator
2020-04-30, 02:23 PM
اهاااااااااا يصحبي بنحسبك بتتكلم عا الوار نفسه امسك توب توب واعمله رساله زي اي توب عندك

body2020
2020-04-30, 02:33 PM
اهاااااااااا يصحبي بنحسبك بتتكلم عا الوار نفسه امسك توب توب واعمله رساله زي اي توب عندك
الرسالة هتكون تحت ال npc ولا فى ال world
وفى كلمه اسمه null, 20 فى اخر كل انبى سى فى الكود الى حاطه فوق دا بيتغير؟