示例#1
0
 /// <summary>
 /// Drop a wall out in front of the dueling players, Also Initialize the countdown and wall removal
 /// </summary>
 public void DropWall()
 {
     m_CountDown = 10;
     if (m_WallNorthToSouth)
     {
         for (int index = m_WallMidPoint.Y - m_WallExtendWidth; index <= m_WallMidPoint.Y + m_WallExtendWidth; index++)
         {
             StonePaversDark block = new StonePaversDark();
             block.ItemID = m_WallID; //generic wall
             block.Hue    = m_WallHue;
             block.MoveToWorld(new Point3D(m_WallMidPoint.X, index, m_WallMidPoint.Z), m_MapLocation);
             m_WallList.Add(block);
         }
     }
     else
     {
         for (int index = m_WallMidPoint.X - m_WallExtendWidth; index <= m_WallMidPoint.X + m_WallExtendWidth; index++)
         {
             StonePaversDark block = new StonePaversDark();
             block.ItemID = m_WallID; //generic wall
             block.Hue    = m_WallHue;
             block.MoveToWorld(new Point3D(index, m_WallMidPoint.Y, m_WallMidPoint.Z), m_MapLocation);
             m_WallList.Add(block);
         }
     }
     Timer.DelayCall(TimeSpan.FromSeconds(9.0), new TimerCallback(RemoveWall_OnTick));
     BcastTimeLeft();
     Timer.DelayCall(TimeSpan.FromSeconds(2.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(4.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(6.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(8.0), new TimerCallback(BcastTimeLeft));
 }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt( );

            m_Owner = ( Mobile )reader.ReadMobile( );

            m_FrontWall = ( StonePaversDark )reader.ReadItem( );
            m_BackWall  = ( StonePaversDark )reader.ReadItem( );
        }
        public void AddItems()
        {
            this.GetWorldLocation();

            StonePaversDark first = new StonePaversDark();

            first.MoveToWorld(new Point3D(this.X, this.Y - 1, this.Z), this.Map);
            FrontWall = first;
            first.Hue = 10;

            StonePaversDark second = new StonePaversDark();

            second.MoveToWorld(new Point3D(this.X, this.Y + 1, this.Z), this.Map);
            BackWall = second;
        }
        public override void OnRegister()
        {
            base.OnRegister();

            this.playerMobileBackupList.Clear();

            this.m_WallList = new List<Item>();

            List<Point3D> positionList = new List<Point3D>();
            positionList.Add(new Point3D(8, 873, -29));
            positionList.Add(new Point3D(9, 873, -29));
            positionList.Add(new Point3D(10, 873, -29));
            positionList.Add(new Point3D(11, 873, -29));
            positionList.Add(new Point3D(12, 873, -29));
            positionList.Add(new Point3D(13, 873, -29));
            positionList.Add(new Point3D(14, 873, -29));

            positionList.Add(new Point3D(17, 1197, -6));
            positionList.Add(new Point3D(18, 1197, -6));
            positionList.Add(new Point3D(19, 1197, -6));
            positionList.Add(new Point3D(20, 1197, -6));
            positionList.Add(new Point3D(21, 1197, -6));
            positionList.Add(new Point3D(22, 1197, -6));

            foreach (Point3D point3D in positionList)
            {
                StonePaversDark block = new StonePaversDark();
                block.ItemID = this.m_WallID;
                block.Hue = this.m_WallHue;
                block.MoveToWorld(point3D, Map.Ilshenar);
                this.m_WallList.Add(block);
            }
        }
示例#5
0
 /// <summary>
 /// Drop a wall out in front of the dueling players, Also Initialize the countdown and wall removal
 /// </summary>
 public void DropWall()
 {
     m_CountDown = 10;
     if (m_WallNorthToSouth)
     {
         for (int index = m_WallMidPoint.Y - m_WallExtendWidth; index <= m_WallMidPoint.Y + m_WallExtendWidth; index++)
         {
             StonePaversDark block = new StonePaversDark();
             block.ItemID = m_WallID; //generic wall
             block.Hue = m_WallHue;
             block.MoveToWorld(new Point3D(m_WallMidPoint.X, index,m_WallMidPoint.Z), m_MapLocation);
             m_WallList.Add(block);
         }
     }
     else
     {
         for (int index = m_WallMidPoint.X - m_WallExtendWidth; index <= m_WallMidPoint.X + m_WallExtendWidth; index++)
         {
             StonePaversDark block = new StonePaversDark();
             block.ItemID = m_WallID; //generic wall
             block.Hue = m_WallHue;
             block.MoveToWorld(new Point3D(index, m_WallMidPoint.Y, m_WallMidPoint.Z), m_MapLocation);
             m_WallList.Add(block);
         }
     }
     Timer.DelayCall(TimeSpan.FromSeconds(9.0), new TimerCallback(RemoveWall_OnTick));
     BcastTimeLeft();
     Timer.DelayCall(TimeSpan.FromSeconds(2.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(4.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(6.0), new TimerCallback(BcastTimeLeft));
     Timer.DelayCall(TimeSpan.FromSeconds(8.0), new TimerCallback(BcastTimeLeft));
 }
示例#6
0
        public void AddItems()
        {
            this.GetWorldLocation();

            StonePaversDark first = new StonePaversDark();
            first.MoveToWorld(new Point3D(this.X, this.Y - 1, this.Z), this.Map);
            FrontWall = first;
            first.Hue = 10;

            StonePaversDark second = new StonePaversDark();
            second.MoveToWorld(new Point3D(this.X, this.Y + 1, this.Z), this.Map);
            BackWall = second;
        }
示例#7
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt( );

            m_Owner = ( Mobile )reader.ReadMobile( );

            m_FrontWall = ( StonePaversDark )reader.ReadItem( );
            m_BackWall = ( StonePaversDark )reader.ReadItem( );
        }