/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////INITIALIZEEVENT--INITIALIZEEVENT--///////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////STARTPVPENVENT - STARTPVPEVENT/////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Starts the PvP Event /// </summary> public void StartPvP() { if (!Running) { Running = true; AcceptingPlayers = true; LastEvent = DateTime.UtcNow; BCastTimer = new BroadcastTimer(this, TimeSpan.FromSeconds(BroadCastTickDelay), TimeSpan.FromSeconds(BroadCastTickDelay)); BCastTimer.Start(); string text = "A Bridge Event is starting up. Type [joinbridge To Join."; World.Broadcast(m_BroadcastHue, true, String.Format("{0}", text)); switch (Utility.Random(4)) { case 0: // Wooden Chest SunriseScroll Scroll = new SunriseScroll(); Scroll.MoveToWorld(new Point3D(6952, 2121, 5), Map.Felucca); // <-------Place the reward on the other platform break; case 1: // Metal Chest BankBell Bell = new BankBell(); Bell.MoveToWorld(new Point3D(6952, 2121, 5), Map.Felucca); // <-------Place the reward on the other platform break; case 2: // Metal Golden Chest SunriseScroll Scrolls = new SunriseScroll(); Scrolls.MoveToWorld(new Point3D(6952, 2121, 5), Map.Felucca); // <-------Place the reward on the other platform break; case 3: // Keg ScrollBinderDeed Scroll2 = new ScrollBinderDeed(); Scroll2.MoveToWorld(new Point3D(6952, 2121, 5), Map.Felucca); // <-------Place the reward on the other platform break; } } }
/// <summary> /// Starts the PvP Event /// </summary> public void StartPvP() { if (!Running) { Running = true; AcceptingPlayers = true; LastEvent = DateTime.Now; BCastTimer = new BroadcastTimer(this, TimeSpan.FromSeconds(BroadCastTickDelay), TimeSpan.FromSeconds(BroadCastTickDelay)); BCastTimer.Start(); string text = "A Player Vs Player Event is starting up in 5 minutes. Type [joinpvp To Join."; World.Broadcast(m_BroadcastHue, true, String.Format("{0}", text)); } }