Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region ChampionPk
- case 333333:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- client.Entity.Update(_String.Effect, "break_start", true);
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [ChampionPK] if you win ChampionPK.Top & CPs ?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("Not now.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 09)
- {
- client.Entity.Teleport(5956, 50, 50);
- }
- else
- {
- dialog.Text("[ChampionPK] War is held during xx:06 To xx:09 in every Hour");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region ChampionPK Prize
- case 333366:
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- client.Entity.Update(_String.Effect, "break_start", true);
- 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.", 0xff);
- dialog.Send();
- break;
- }
- case 1:
- {
- int alive = 0;
- foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
- if (players.Entity.MapID == 5956 && (!players.Entity.Dead))
- alive++;
- if (DateTime.Now.Minute >= 9 && DateTime.Now.Minute <= 10)
- {
- if (alive == 1)
- {
- client.Entity.ConquerPoints += CPanel.HQuests;
- client.IncreaseExperience(client.ExpBall, false);
- client.IncreaseExperience(client.ExpBall, false);
- client.IncreaseExperience(client.ExpBall, false);
- client.IncreaseExperience(client.ExpBall, false);
- client.IncreaseExperience(client.ExpBall, false);
- client.Entity.Teleport(1002, 429, 378);
- client.Entity.AddFlag3(HarryPotter.Network.GamePackets.Update.Flags2.Top2Fire);
- Kernel.SendWorldMessage(new Message(string.Concat(new object[] { "Congratulations! ", client.Entity.Name, " claimed the prize 100000 Cps for winning the ChampionPK for this Hour." }), System.Drawing.Color.Black, 0x7db), HarryPotter.Program.Values);
- client.Entity.SendSpawn(client, true);
- // client.Entity.Teleport(0x3ea, 0x1ad, 0x17a);
- new Game.Statue(client.Entity.SpawnPacket);
- EntityTable.SaveEntity(client);
- }
- else
- {
- dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
- dialog.Option("okay", 0xff);
- dialog.Send();
- }
- }
- else
- {
- dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:10");
- dialog.Option("okay", 0xff);
- dialog.Send();
- }
- break;
- }
- }
- break;
- #endregion
- #region TopConquer
- #region TopConquer
- case 221141:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopConquer?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 22)
- {
- Random R = new Random();
- int Nr = R.Next(1, 7);
- if (Nr == 1) client.Entity.Teleport(1702, 33, 34);
- if (Nr == 2) client.Entity.Teleport(1702, 67, 34);
- if (Nr == 3) client.Entity.Teleport(1702, 33, 34);
- if (Nr == 4) client.Entity.Teleport(1702, 67, 34);
- if (Nr == 5) client.Entity.Teleport(1702, 33, 34);
- if (Nr == 6) client.Entity.Teleport(1702, 67, 34);
- if (Nr == 7) client.Entity.Teleport(1702, 68, 57);
- }
- else
- {
- dialog.Text("TopConquer is held during xx:20 to xx:22 in every Hour you have 2 min to sign-up ");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Winner of TopConquer
- case 22441:
- {
- 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:
- {
- Daily.CheackAlive11();
- if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 25)
- {
- if (Daily.howmanyinmap11 == 1)
- {
- //HellEartH.Game.ConquerStructures.ClassPk.ClassPks = false;
- client.Entity.Teleport(1002, 429, 378);
- client.Entity.ConquerPoints += CPanel.HQuests;
- //Game.Flags.AddTopConquer(client);
- client.Entity.AddTopStatus(Update.Flags2.WeeklyTop8Pk, DateTime.Now.AddHours(1));
- client.Entity.AddFlag2(HarryPotter.Network.GamePackets.Update.Flags2.WeeklyTop8Pk);
- Kernel.SendWorldMessage(new Message("Congratulations, " + client.Entity.Name + " has won TopConquer War and Claimed 100,000 cps!", System.Drawing.Color.White, Message.Center), Program.Values);
- }
- else
- {
- dialog.Text("There are still " + Daily.howmanyinmap11 + " players 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:22");
- dialog.Option("okay", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #endregion
- #region TopMasters
- #region TopMasters
- case 32541:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopMasters?.");
- dialog.Option("Yes Please", 1);
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 23)
- {
- Random R = new Random();
- int Nr = R.Next(1, 7);
- if (Nr == 1) client.Entity.Teleport(1701, 33, 34);
- if (Nr == 2) client.Entity.Teleport(1701, 67, 34);
- if (Nr == 3) client.Entity.Teleport(1701, 33, 34);
- if (Nr == 4) client.Entity.Teleport(1701, 67, 34);
- if (Nr == 5) client.Entity.Teleport(1701, 33, 34);
- if (Nr == 6) client.Entity.Teleport(1701, 67, 34);
- if (Nr == 7) client.Entity.Teleport(1701, 68, 57);
- }
- else
- {
- dialog.Text("TopMasters is held during xx:22 to xx:23 you have 2 min to sign up ");
- dialog.Option("I don't care.", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Winner of TopMasters
- case 32542:
- {
- 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:
- {
- Daily.CheackAlive10();
- if (DateTime.Now.Minute >= 23 && DateTime.Now.Minute <= 25)
- {
- if (Daily.howmanyinmap10 == 1)
- {
- client.Entity.Teleport(1002, 429, 378);
- client.Entity.ConquerPoints += CPanel.HQuests;
- // Game.Flags.AddTopMaster(client)
- // client.Entity.AddTopStatus(Update.Flags.WeeklyPKChampion, DateTime.Now.AddHours(1));
- Kernel.SendWorldMessage(new Message("Congratulations, " + client.Entity.Name + " has won TopMaster War and Claimed 100,000 cps!", System.Drawing.Color.White, Message.Center), Program.Values);
- }
- else
- {
- dialog.Text("There are still " + Daily.howmanyinmap10 + " players 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:23");
- dialog.Option("okay", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #endregion
- #region SS and FB
- case 50545:
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
- {
- dialog.Text("your Are an archer You can't join this arena.");
- dialog.Option("I see.", 255);
- dialog.Avatar(116);
- dialog.Send();
- break;
- }
- var weps = client.Weapons;
- if ((weps.Item1 != null && weps.Item1.ID / 1000 != 410) && (weps.Item2 != null && weps.Item2.ID / 1000 != 410) && (weps.Item1 != null && weps.Item1.ID / 1000 != 420) && (weps.Item2 != null && weps.Item2.ID / 1000 != 420))
- {
- client.Send(new Message("You need to wear only blade or sword!", Color.Red, Message.Talk));
- return;
- }
- dialog.Text("Hello " + client.Entity.Name + " I am a teleporter, I can teleport you to 1 Hit arena ,You can't use cheap skills in this map You can only use this skills [FastBlade,ScentSword], So you can play .");
- dialog.Option("Yea Teleport me Please !!", 1);
- dialog.Option("Just passing by.", 255);
- dialog.Avatar(234);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (Matrix_Times.Start.FBSS)
- {
- client.Entity.RemoveFlag(Update.Flags.Ride);
- client.Entity.Hitpoints = 1;
- client.Entity.Teleport(1707, 50, 50);
- break;
- }
- else
- {
- dialog.Text("Not Now Only at xx:55 to xx:57");
- dialog.Option("I see.", 255);
- dialog.Avatar(116);
- dialog.Send();
- break;
- }
- }
- }
- break;
- }
- #endregion
- #region Winner of SS FB
- case 5658821:
- {
- 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 (HarryPotter.Client.GameState players in Kernel.GamePool.Values)
- if (players.Entity.MapID == 1707 && (!players.Entity.Dead))
- alive++;
- if (Matrix_Times.End.FBSS)
- {
- if (alive == 1)
- {
- client.Entity.ConquerPoints += CPanel.HQuests;
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed (( " + CPanel.HQuests + " CPs)) for winning the Top SS & FB for this Hour.", System.Drawing.Color.Black, Message.Talk), Program.Values);
- client.Entity.SendSpawn(client, true);
- client.Entity.Teleport(1002, 429, 378);
- EntityTable.SaveEntity(client);
- }
- else
- {
- dialog.Text("There are still " + alive + " players 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:58 ");
- dialog.Option("Ok I Sorry ", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
- #region Cyclone War Prize
- case 0x1978://6521
- switch (npcRequest.OptionID)
- {
- case 0:
- dialog.Text("Hello " + client.Entity.Name + " did u finish Race Get ur prize ");
- dialog.Option("Give me my prize ", 1);
- break;
- case 1:
- if (World.cycolne)
- {
- client.Entity.race = 0;
- uint cycx = CPanel.BQuests;
- client.Entity.ConquerPoints += cycx;
- Kernel.SendWorldMessage(new Message("Gratz! " + client.Entity.Name + " has Finish Cycolne Speed And Won 100000 Cps ", System.Drawing.Color.Red, 0x7db), Program.Values);
- client.Entity.RemoveFlag(0x800000L);
- World.cycolne = false;
- }
- break;
- }
- break;
- #endregion
- #region Cyclone War Sign Up
- case 0x1979://6520
- switch (npcRequest.OptionID)
- {
- case 0:
- dialog.Text("Hello " + client.Entity.Name + " this Is Cyclone Speed Race Start Evrey Hour in xx:50 ");
- dialog.Option("let me join", 1);
- break;
- case 1:
- if (World.cycolne)
- {
- client.Entity.race = 1;
- dialog.Text("You Have Signed Up Wait 1 min ");
- dialog.Send();
- }
- else
- {
- dialog.Text("This is not the right time Come Later ");
- dialog.Option("okay", 0xff);
- dialog.Send();
- }
- break;
- }
- break;
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement