Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////handle.cs////
- #region Allowed Skills
- if (SpellTable.WeaponSpells.ContainsKey(spellID))
- {
- if (!attack.weaponspell)
- {
- attacker.AttackPacket = null;
- return;
- }
- }
- if (attacker.Owner.LobbyGroup != null || attacker.MapID == 1707)
- {
- if (spellID != 1045 || spellID != 1046)
- {
- attacker.AttackPacket = null;
- return;
- }
- }
- if (spellID == 1045 || spellID == 1046)
- {
- if (attack.Attacked != 0)
- {
- attacker.AttackPacket = null;
- return;
- }
- }
- #endregion
- ///////////////////////////
- ///world.cs////
- #region Top SS&FB Pk
- if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 00)
- {
- client.MessageBox("Top SS&FB Started! You Wana Join?",
- (p) => { p.Entity.Teleport(1002, 407, 459); },
- (p) => { p.Send("You still can join!"); }, 300);
- }
- #endregion Top SS&FB Pk
- //////////////////////////////
- /////Npcs.cs//////
- #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 (Conquer_Online_Server.Client.GameState players in Kernel.GamePool.Values)
- if (players.Entity.MapID == 1707 && (!players.Entity.Dead))
- alive++;
- if (DateTime.Now.Minute >= 44 && DateTime.Now.Minute <= 50)
- {
- if (alive == 1)
- {
- client.Entity.ConquerPoints += 10000;
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed (( 10,000 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 --:44 To--:50 ");
- dialog.Option("Ok I Sorry ", 255);
- dialog.Send();
- break;
- }
- break;
- }
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement