.png)
الموضوع باين من عنوانو طبعا 
وفى نفس الملف ابحث عن
واقفلو من السالب -
وارمى دة تحتو
وبعدين خش علي النفي كات و ضيف المابه دي
وبعدين الانبسيهات فى النافى كات
خش علي Npcs.cs
#region FasterMan By MrBevo
#region join Faster Man
case 60701://id
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey mr " + client.Entity.Name + " Do you want to start the event's fastest man? ");
dialog.Option("Yes I want.", 1);
dialog.Option("what this.", 2);
dialog.Option("no thx", 255);
dialog.Avatar(35);
dialog.Send();
break;
}
case 1:
{
if ((DateTime.Now.Minute >= 40) && (DateTime.Now.Minute < 45))
{
if (World.Faster == false)
{
client.Entity.Teleport(1655, 322, 249);
}
else
{
dialog.Text("Sorey mr " + client.Entity.Name + " You Cant Join now Because Frist man Won ");
dialog.Option("Yes I want.", 255);
break;
}
}
else
{
dialog.Text("Sory mr : " + client.Entity.Name + " Come Sign Up In xx.40 ??");
dialog.Option("Yes I want.", 255);
break;
}
break;
}
case 2:
{
client.Send(new Message("http://www.teamxor.net/", System.Drawing.Color.Red, Network.GamePackets.Message.Website));
break;
}
}
break;
}
#endregion join
#region oute
case 60702:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Gratz Mr : " + client.Entity.Name + " Please click OK to complete the event and get a prize");
dialog.Option("Yes.", 1);
dialog.Option("no thx", 255);
dialog.Avatar(35);
dialog.Send();
break;
}
case 1:
{
if (World.Faster == false)
{
uint FirstPrize = 1000;
client.Entity.ConquerPoints += FirstPrize;
client.Entity.Teleport(1002, 304, 286);
// client.Entity.TopFastestman1 = 1;
World.Faster = true;
Kernel.SendWorldMessage(new Message("Mr: " + client.Entity.Name + " has won the first place award " + FirstPrize + " Cps Of Fastest man Event!", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
if (World.Faster == true && World.Faster1 == false)
{
uint secondPrize = 750;
client.Entity.ConquerPoints += secondPrize;
// client.Entity.TopFastestman2 = 1;
client.Entity.Teleport(1002, 304, 286);
World.Faster1 = true;
Kernel.SendWorldMessage(new Message("Mr: " + client.Entity.Name + " has won the second place award " + secondPrize + " Of Fastest man Event!", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
if (World.Faster == true && World.Faster1 == true && World.Faster2 == false)
{
uint ThirdPrize = 500;
client.Entity.ConquerPoints += ThirdPrize;
// client.Entity.TopFastestman3 = 1;
client.Entity.Teleport(1002, 304, 286);
World.Faster2 = true;
Kernel.SendWorldMessage(new Message("Mr: " + client.Entity.Name + " has won the Third place award " + ThirdPrize + " Of Fastest man Event!", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
break;
}
}
break;
}
#endregion oute
#endregion faster man
وبعدين خش علي World.cs
وحط الاكواد دي
وحط الاكواد دي
public static bool Faster = false;
public static bool Faster1 = false;
public static bool Faster2 = false; #region Clan War وارمى دة تحتو
#region FasterMan
if (client.Entity.MapID == 1655)
{
client.Entity.AddFlag(Update.Flags.Cyclone);
}
if (Faster2 == true)
{
if (client.Entity.MapID == 1655)
{
client.Entity.Teleport(1002, 304, 286);
}
}
var Lego = DateTime.Now;
if ((DateTime.Now.Minute == 40) && (DateTime.Now.Second == 01 ))
{
Faster = false;
Faster1 = false;
Faster2 = false;
Kernel.SendWorldMessage(new Message("Fastest man Event has started now .", System.Drawing.Color.White, Message.Center), Program.GamePool);
client.MessageBox("Fastest man War Has Started You Need Sign up ?.",
(p) => { p.Entity.Teleport(6672, 61, 33); }, null, 60);
}
#endregion FasterMan 1655 1645 7 0 60701 0 0 FastermanJoin 2 45410 -1 6672 57 35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
60702 0 0 FasterManOute 2 45410 -1 1655 214 209 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
هل أعجبك الموضوع؟! ↓

0 التعليقات