Imagens
Program.cs
PacketHandle.cs
NPC.cs
DATABASE:
Download : SQL multiupload.com 8ZPUAJ5CS2
DONATION WARS, ANTIGO MAIS DOS BOM'S ELE SÓ NÃO FOI MUITO DIVULGADO OS POUCOS QUE SABIAM DELE MANTIVERAM MEIO QUE SEM DIVULGAR
Program.cs
- Código:
static void CharacterThread_Execute()
{
Time32 Now = Time32.Now;
foreach (Client.GameState client in ServerBase.Kernel.GamePool.Values)
{
if (client.Socket.Connected)
{
if (client.Entity.HandleTiming)
{
- Código:
#region Donation War
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour == 18 && DateTime.Now.Minute == 47 && DateTime.Now.Second == 00)
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Hour == 18 && DateTime.Now.Minute == 47 && DateTime.Now.Second == 00)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Donation War has Started! You Wana Join?");
npc.OptionID = 167;
client.Send(npc.ToArray());
}
}
#endregion
PacketHandle.cs
- Código:
if (req.InteractType == NpcReply.MessageBox)
- Código:
if (client.Map.BaseID != 6001 && !client.Entity.Dead && req.OptionID == 167)//Donation War
{
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.King)
{
client.Entity.Teleport(1166, 50, 50);//Kings Map
}
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Prince)
{
client.Entity.Teleport(1167, 50, 50);//Princes Map
}
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Duke)
{
client.Entity.Teleport(1168, 50, 50);//Duke Map
}
}
NPC.cs
- Código:
case 0:
{
dialog.Text("Hello! " + client.Entity.Name + " You Can Here Take Ur PRiz If U R the Only One Online Here !");
dialog.Option("I am The Last One Here Give Me The Reward Now.", 1);
dialog.Option("No Thanks .", 255);
dialog.Avatar(34);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values)
if (players.Entity.MapID == 1168 && (!players.Entity.Dead))
alive++;
if (alive == 1 && DateTime.Now.Minute <= 45 && DateTime.Now.Minute >= 00)
{
client.Entity.ConquerPoints += 500000;
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 500 K ConquerPoints for winning the Donaiton War (The Best Duke / Dukess).", System.Drawing.Color.Red, Message.Center), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize OR u need to wait in 00 Mint");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Donation War Princes Priz
case 451:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello! " + client.Entity.Name + " You Can Here Take Ur PRiz If U R the Only One Online Here !");
dialog.Option("I am The Last One Here Give Me The Reward Now.", 1);
dialog.Option("No Thanks .", 255);
dialog.Avatar(34);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values)
if (players.Entity.MapID == 1167 && (!players.Entity.Dead))
alive++;
if (alive == 1 && DateTime.Now.Minute <= 45 && DateTime.Now.Minute >= 00)
{
client.Entity.ConquerPoints += 1000000;
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 1 M ConquerPoints for winning the Donaiton War (The Best Prince / Princess).", System.Drawing.Color.Red, Message.Center), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize OR u need to wait in 00 Mint");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Donation War Kings Priz
case 450:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello! " + client.Entity.Name + " You Can Here Take Ur PRiz If U R the Only One Online Here !");
dialog.Option("I am The Last One Here Give Me The Reward Now.", 1);
dialog.Option("No Thanks .", 255);
dialog.Avatar(34);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.Values)
if (players.Entity.MapID == 1166 && (!players.Entity.Dead))
alive++;
if (alive == 1 && DateTime.Now.Minute <= 45 && DateTime.Now.Minute >= 00)
{
client.Entity.ConquerPoints += 1500000;
Conquer_Online_Server.ServerBase.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 1.500 M ConquerPoints for winning the Donaiton War (The Best King / Queen).", System.Drawing.Color.Red, Message.Center), Conquer_Online_Server.ServerBase.Kernel.GamePool.Values);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 429, 378);
}
else
{
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize OR u need to wait in 00 Mint");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Donation War SignUp
case 449:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello! " + client.Entity.Name + " You Can Here SignUp Donation War in Sunday in 18:45 For Kings , Princes and Dukes Only !! Do U Wanna To SignUp ??");
dialog.Option("SignUp Me Now.", 1);
dialog.Option("No Thanks .", 255);
dialog.Avatar(34);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday && DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 00)
{
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.King)
{
client.Entity.Teleport(1166, 50, 50);//Kings Map
}
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Prince)
{
client.Entity.Teleport(1167, 50, 50);//Princes Map
}
if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Duke)
{
client.Entity.Teleport(1168, 50, 50);//Duke Map
}
}
else
{
dialog.Text("This IS not the right time");
dialog.Option("Okey", 255);
dialog.Avatar(15);
dialog.Send();
}
break;
}
}
break;
}
#endregion
DATABASE:
- Código:
INSERT INTO `maps` VALUES ('1166', '1005', '0001', '0000');
INSERT INTO `maps` VALUES ('1167', '1005', '0001', '0000');
INSERT INTO `maps` VALUES ('1168', '1005', '0001', '0000');
INSERT INTO `npcs` VALUES ('0450', '0', '0', 'DonationWar Kings Priz GameHac', '0002', '7080', '-1', '1166', '0052', '0074', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '?·?·?¢?·?·?¢?¢?', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('0451', '0', '0', 'DonationWar Princes Priz GameH', '0002', '7080', '-1', '1167', '0052', '0074', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '?·?·?¢?·?·?¢?¢?', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('0452', '0', '0', 'DonationWar Dukes Priz GameH', '0002', '7080', '-1', '1168', '0052', '0074', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '?·?·?¢?·?·?¢?¢?', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('0449', '0', '0', 'DonationWar SignUp GameHacker', '0002', '7080', '-1', '1002', '0448', '0381', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '?·?·?¢?·?·?¢?¢?', '0000', '00', '00', '0000', '00', null);
Download : SQL multiupload.com 8ZPUAJ5CS2
DONATION WARS, ANTIGO MAIS DOS BOM'S ELE SÓ NÃO FOI MUITO DIVULGADO OS POUCOS QUE SABIAM DELE MANTIVERAM MEIO QUE SEM DIVULGAR