Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Prize LastMan[55]
- case 54235:
- 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 Need To Leave", 2);
- // dialog.Option("Potions HP / Magic", 3);
- dialog.Option("I don't care.", 0xff);
- dialog.Send();
- break;
- }
- case 1:
- {
- int alive = 0;
- foreach (GameState players in Kernel.GamePool.Values)
- if (players.Entity.MapID == 3333 && (!players.Entity.Dead))
- alive++;
- if (DateTime.Now.Minute >= 59)
- {
- if (alive == 1)
- {
- client.Entity.ConquerPoints += 1000;
- client.Entity.TreasuerPoints += 0;
- // client.Entity.OnlinePoints += 5;
- client.Entity.QuizPoints += 0;
- // client.Entity.MonstersPoints += 0;
- Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Winner AdultWar Pk Prize 1000 Cps.", System.Drawing.Color.Black, Message.Center), Program.Values);
- client.Entity.SendSpawn(client, true);
- client.Entity.Teleport(1002, 301, 280);
- 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:59");
- dialog.Option("okay", 0xff);
- dialog.Send();
- }
- break;
- }
- case 2:
- {
- {
- client.Entity.Teleport(1002, 302, 280);
- }
- break;
- }
- case 3:
- {
- INpc npc = null;
- if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
- {
- Data data = new Data(true);
- data.ID = Data.OpenWindow;
- data.TimeStamp = Time32.Now;
- data.dwParam = 0x1FA;
- data.wParam1 = npc.X;
- data.wParam2 = npc.Y;
- client.Send(data);
- }
- break;
- }
- }
- break;
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement