Hassan Emprator |
2020-02-29 01:28 PM |
كويستت TeamWar مقدمه لي MohamedAymen
الكويستت عاملها عشانه عشان هوا طالبها بس هعملهاله برضو وفكرتها ان الحرب بتبقا لي تيمات بس محدش يقدر يخش في غير انو يكون في تيم
يله نبدا
االنبي سي وي الجايزه بتاعتهم
كود PHP:
#region TeamOfWar [10]
#region Team Of War [10]
case 66655:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Do you Want To Go To Team Of War Event!! ");
dialog.Option("Yes I want to Join.", 1);
dialog.Option("No Thanks Man.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 10 && DateTime.Now.Minute < 14)
{
if (client.Team != null && client.Team.TeamLeader)
{
foreach (Client.GameState Teammate in client.Team.Teammates)
{
if (Teammate != null)
{
Random R = new Random();
int Nr = R.Next(1, 3);
if (Nr == 1) Teammate.Entity.Teleport(2233, 45, 55);
if (Nr == 2) Teammate.Entity.Teleport(2233, 50, 55);
if (Nr == 3) Teammate.Entity.Teleport(2233, 55, 50);
client.Entity.RemoveFlag(Update.Flags.Ride);
client.Entity.PKMode = Game.Enums.PKMode.Team;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
dialog.Text("Pleas Open the Team Or sign up in the any team other. ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("Sorry You Dont Leader Team. ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Sign Up to War Of Team Event Every Hours in Time xx:10 To xx:14 . ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Prize Team Of War [10]
case 3010557:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " You neeD Claim your Prize Team Of War?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
Daily.CheackAlive19();
var Now64 = DateTime.Now;
if (DateTime.Now.Minute >= 15)
{
if (Daily.howmanyinmap19 == 1)
{
client.Entity.AddTopStatus(Update.Flags.TopFireTaoist, 2, DateTime.Now.AddMinutes(59));
client.Entity.ConquerPoints += 2000000;
client.Entity.BoundCps += 10;
Kernel.SendWorldMessage(new Message(" Congratulations " + client.Entity.Name + " You Win [2.000.000] ConquerPoints & [10] CpsBound you Earned War Team Of War.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 300, 278);
EntityTable.SaveEntity(client);
foreach (var clients in Program.Values)
{
if (clients.Entity.MapID == 2233)
{
clients.Entity.Teleport(1002, 300, 278);
clients.Send(new NpcReply(NpcReply.MessageBox, "Sorry Entity Good Luck Next Time ;) "));
}
}
}
else
{
dialog.Text("There are still " + Daily.howmanyinmap19 + " Entitys in the map kill it First To Claim Prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:15 To xx:15");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#endregion
وابحث عن
ضيف فيه
كود PHP:
public static void CheackAlive19()
{
howmanyinmap19 = 0;
foreach (Client.GameState client in Program.Values)
{
if (client.Entity.MapID == 2233 && client.Entity.Hitpoints >= 1)
{
howmanyinmap19 += 1;
MrHassan.Kernel.SendWorldMessage(new MrHassan.Network.GamePackets.Message("Entitys Alive in TeamOfWar Now: " + howmanyinmap19 + " ", System.Drawing.Color.Black, MrHassan.Network.GamePackets.Message.FirstRightCorner), Program.Values);
}
}
}
سيرش عا
كود PHP:
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps
ضيف
وسيرش عا
كود PHP:
public static readonly System.Collections.Generic.List<ulong> NotReady
ضيف
وسيرش عا
كود PHP:
public static readonly System.Collections.Generic.List<ushort> NoRev
ضيف
سيرش ع ا
كود PHP:
private void WorldTournaments(int time)
ضيف
كود PHP:
#region TeamOFWar [10]
if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 01)
{
Kernel.SendWorldMessage(new Message("TeamWar Was began ", Color.White, Message.TopLeft), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("TeamWar began Would you like to join?",
p => { p.Entity.Teleport(3690, 82, 63); }, null, 20);
}
#endregion
المابه هتضيفا في maps في القاعده هااا
هيا اه الكويستت في كل سورسات تقريبا بتاعت صموئيل بس اي انا نزلتها عشان هوا طلبها بس :o
|