Esempio n. 1
0
        private void AssignFlags()
        {
            if (BattleRegion != null)
            {
                BattleFlag flag = BattleRegion.GetEnumeratedItems().OfType <BattleFlag>().FirstOrDefault(i => i != null && i.ItemID == 17099);
                if (flag != null)
                {
                    TribalFlag         = flag;
                    flag.BattleSpawner = this;
                }

                flag = BattleRegion.GetEnumeratedItems().OfType <BattleFlag>().FirstOrDefault(i => i != null && i.ItemID == 1068);
                if (flag != null)
                {
                    MyrmidexFlag       = flag;
                    flag.BattleSpawner = this;
                }
            }
        }
Esempio n. 2
0
        private void FixFlags()
        {
            if (BattleRegion != null)
            {
                foreach (Item item in BattleRegion.GetEnumeratedItems())
                {
                    if (item is Static && (item.ItemID == 9))
                    {
                        item.Delete();
                    }
                    else if (item is BattleFlag)
                    {
                        item.Delete();
                    }
                }
            }

            Item st = new Static(0xA1F);

            st.MoveToWorld(new Point3D(913, 1871, 0), Map.TerMur);

            st = new Static(0xA1F);
            st.MoveToWorld(new Point3D(914, 1871, 0), Map.TerMur);

            BattleFlag bflag = new BattleFlag(0x42CB, 0);

            bflag.MoveToWorld(new Point3D(914, 1872, 5), Map.TerMur);

            st = new Static(0xA1F);
            st.MoveToWorld(new Point3D(913, 1792, 0), Map.TerMur);

            bflag = new BattleFlag(0x42C, 2520);
            bflag.MoveToWorld(new Point3D(914, 1793, 6), Map.TerMur);

            st = new Static(0x42D);
            st.MoveToWorld(new Point3D(913, 1793, 6), Map.TerMur);
            //bflag = new BattleFlag(0x42D, 2520);
            //bflag.MoveToWorld(new Point3D(913, 1793, 6), Map.TerMur);
        }