Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------- ( Network\GamePackets\Update.cs ) ---------------------
- public class Flags3
- ConuqerSuperYellow = (uint)1UL << 23,
- ConuqerSuperBlue = (uint)1UL << 24,
- ConuqerSuperUnderBlue = (uint)1UL << 25,
- ----------------------------- ( npc.cs ) -----------------------
- #region Top ConuqerSuperYellow
- case 9756471:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [Top ConuqerSuperYellow] if you win Top ConuqerSuperYellow & CPs ?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("Not now.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 28)
- {
- client.Entity.Teleport(1052, 300, 280);
- }
- else
- {
- dialog.Text("[Top ConuqerSuperYellow] War is held during xx:21 To xx:23 in every Hour");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Top ConuqerSuperBlue
- case 9756472:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [Top ConuqerSuperBlue] if you win Top ConuqerSuperBlue & CPs ?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("Not now.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 05 && DateTime.Now.Minute <= 11)
- {
- client.Entity.Teleport(2090, 50, 50);
- }
- else
- {
- dialog.Text("[Top ConuqerSuperBlue] War is held during xx:24 To xx:26 in every Hour");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Top ConuqerSuperUnderBlue
- case 9756473:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [Top ConuqerSuperUnderBlue] if you win Top ConuqerSuperUnderBlue & CPs ?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("Not now.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 51 && DateTime.Now.Minute <= 55)
- {
- client.Entity.Teleport(1068, 50, 50);
- }
- else
- {
- dialog.Text("[Top ConuqerSuperUnderBlue] War is held during xx:27 To xx:29 in every Hour");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region SuperGuildNew Prize
- #region Winner Top ConuqerSuperYellow
- case 9756475:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- int alive = 0;
- foreach (MR_AlzwawyV1.Client.GameClient players in Program.GamePool)
- if (players.Entity.MapID == 1052 && (!players.Entity.Dead))
- alive++;
- Kernel.SendWorldMessage(new MR_AlzwawyV1.Network.GamePackets.Message("Players Alive in Top ConuqerSuperYellow: " + alive + " ", System.Drawing.Color.Black, MR_AlzwawyV1.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
- (DateTime.Now.Minute >= 29 && DateTime.Now.Minute <= 31)
- {
- if (alive == 1)
- {
- client.Entity.Update(_String.Effect, "cortege", true);
- client.Entity.ConquerPoints += 500000;
- client.Entity.AddFlag3(MR_AlzwawyV1.Network.GamePackets.Update.Flags3.ConuqerSuperYellow);
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + 500000 + " Cps For Winning Top ConuqerSuperYellow For This Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
- client.Entity.SendSpawn(client, true);
- client.Entity.Teleport(1002, 302, 278);
- EntityTable.SaveEntity(client);
- }
- else
- {
- dialog.Text("There are still " + alive + " players in the map kill him 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:21 To xx:23 ");
- dialog.Option("okay", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Winner Top ConuqerSuperBlue
- case 9756476:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- int alive = 0;
- foreach (MR_AlzwawyV1.Client.GameClient players in Program.GamePool)
- if (players.Entity.MapID == 2090 && (!players.Entity.Dead))
- alive++;
- Kernel.SendWorldMessage(new MR_AlzwawyV1.Network.GamePackets.Message("Players Alive in Top ConuqerSuperBlue: " + alive + " ", System.Drawing.Color.Black, MR_AlzwawyV1.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
- if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 14)
- {
- if (alive == 1)
- {
- client.Entity.Update(_String.Effect, "cortege", true);
- client.Entity.ConquerPoints += 500000;
- client.Entity.AddFlag3(MR_AlzwawyV1.Network.GamePackets.Update.Flags3.ConuqerSuperBlue);
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + 500000 + " Cps For Winning Top ConuqerSuperBlue For This Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
- client.Entity.SendSpawn(client, true);
- client.Entity.Teleport(1002, 302, 278);
- EntityTable.SaveEntity(client);
- }
- else
- {
- dialog.Text("There are still " + alive + " players in the map kill him 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:24 To xx:26 ");
- dialog.Option("okay", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Winner Top ConuqerSuperUnderBlue
- case 9756477:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- int alive = 0;
- foreach (MR_AlzwawyV1.Client.GameClient players in Program.GamePool)
- if (players.Entity.MapID == 1068 && (!players.Entity.Dead))
- alive++;
- Kernel.SendWorldMessage(new MR_AlzwawyV1.Network.GamePackets.Message("Players Alive in Top Top ConuqerSuperUnderBlue: " + alive + " ", System.Drawing.Color.Black, MR_AlzwawyV1.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
- if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 58)
- {
- if (alive == 1)
- {
- client.Entity.Update(_String.Effect, "cortege", true);
- client.Entity.ConquerPoints += 500000;
- client.Entity.AddFlag3(MR_AlzwawyV1.Network.GamePackets.Update.Flags3.ConuqerSuperUnderBlue);
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + 500000 + " Cps For Winning Top Top ConuqerSuperUnderBlue For This Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
- client.Entity.SendSpawn(client, true);
- client.Entity.Teleport(1002, 302, 278);
- EntityTable.SaveEntity(client);
- }
- else
- {
- dialog.Text("There are still " + alive + " players in the map kill him 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:27 To xx:29 ");
- dialog.Option("okay", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #endregion
- #region ConuqerSuperYellow
- if ((Now64.Minute == 22) && (Now64.Second == 28))
- {
- object[] name;
- name = new object[] { "ConuqerSuperYellow Top Have Started Go To Jion in TwinCity" };
- Kernel.SendWorldMessage(new Message(string.Concat(name), "ALLUSERS", "War", System.Drawing.Color.Red, 2500), Program.GamePool);
- Kernel.SendWorldMessage(new Message("ConuqerSuperYellow Top began!", Color.White, Message.TopLeft), Program.GamePool);
- client.MessageBox("ConuqerSuperYellow Top began!",
- p => { p.Entity.Teleport(1002, 330, 277); }, null, 60);
- }
- #endregion
- #region ConuqerSuperBlue
- if ((Now64.Minute == 51) && (Now64.Second == 55))
- {
- object[] name;
- name = new object[] { " ConuqerSuperBlue Top Have Started Go To Jion in TwinCity" };
- Kernel.SendWorldMessage(new Message(string.Concat(name), "ALLUSERS", "War", System.Drawing.Color.Red, 2500), Program.GamePool);
- Kernel.SendWorldMessage(new Message("ConuqerSuperBlue Top began!", Color.White, Message.TopLeft), Program.GamePool);
- client.MessageBox("ConuqerSuperBlue Top began!",
- p => { p.Entity.Teleport(1002, 336, 277); }, null, 60);
- }
- #endregion
- #region ConuqerSuperunderBlue
- if ((Now64.Minute == 05) && (Now64.Second == 11))
- {
- object[] name;
- name = new object[] { "ConuqerSuperunderBlue Top Quest Have Started Go To Jion in TwinCity" };
- Kernel.SendWorldMessage(new Message(string.Concat(name), "ALLUSERS", "War", System.Drawing.Color.Red, 2500), Program.GamePool);
- Kernel.SendWorldMessage(new Message("ConuqerSuperunderBlue Top began!", Color.White, Message.TopLeft), Program.GamePool);
- client.MessageBox("ConuqerSuperunderBlue Top began!",
- p => { p.Entity.Teleport(1002, 340, 277); }, null, 60);
- }
- #endregion
- data base
- npc
- 9756471 0 0 TopSuperYellow 2 30430 -1 1002 329 274
- 9756472 0 0 TopSuperBlue 2 30430 -1 1002 335 274
- 9756473 0 0 SuperUnderBlue 2 30430 -1 1002 340 274
- 9756475 0 0 Prize 2 1340 -1 1052 300 280
- 9756476 0 0 Prize 2 1340 -1 2090 50 50
- 9756477 0 0 Prize 2 1340 -1 1068 50 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement