Пример #1
0
    public static void Main()
    {
        var abyssalScepter   = new Scepter();
        var aegisOfTheLegion = new Aegis();
        var itemsList        = new List <IAbilityPower>();

        itemsList.Add(abyssalScepter);
        itemsList.Add(aegisOfTheLegion);

        var power = itemsList[0].abilityPower;
    }
Пример #2
0
        public static void OnNetworkStatusChanged(Aegis.Client.NetworkStatus status)
        {
            _instance.PerformOnMainThread(() =>
            {
                if (status == Aegis.Client.NetworkStatus.Connected)
                    _instance._lbConnectionStatus.Text = "Connected";

                else if (status == Aegis.Client.NetworkStatus.ConnectionFailed)
                    _instance._lbConnectionStatus.Text = "Connection failed";

                else if (status == Aegis.Client.NetworkStatus.Disconnected)
                    _instance._lbConnectionStatus.Text = "Disconnected";

                else if (status == Aegis.Client.NetworkStatus.SessionForceClosed)
                    _instance._lbConnectionStatus.Text = "Force closed";
            });
        }
        public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0: //Close Gump
            {
                from.CloseGump(typeof(ArtifactGump));
                break;
            }

            case 1:  // Axe of the Heavens
            {
                Item item = new AxeOfTheHeavens();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 2: // Blade of insanity
            {
                Item item = new BladeOfInsanity();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 3: //Blade of the Righteous
            {
                Item item = new BladeOfTheRighteous();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 4: //Bone Crusher
            {
                Item item = new BoneCrusher();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 5: //Breath of the Dead
            {
                Item item = new BreathOfTheDead();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 6: //Frostbringer
            {
                Item item = new Frostbringer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 7: //Legacy of the Dread Lord
            {
                Item item = new LegacyOfTheDreadLord();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 8: //Serpent's Fang
            {
                Item item = new SerpentsFang();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 9: //Staff of the Magi
            {
                Item item = new StaffOfTheMagi();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 10: //The Beserker's Maul
            {
                Item item = new TheBeserkersMaul();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 11: //The Dragon Slayer
            {
                Item item = new TheDragonSlayer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 12: //Titans Hammer
            {
                Item item = new TitansHammer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 13: //The Taskmaster
            {
                Item item = new TheTaskmaster();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 14: //Zyronic Claw
            {
                Item item = new ZyronicClaw();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 15: //The Dryad Bow
            {
                Item item = new TheDryadBow();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 16: //Armor of Fortune
            {
                Item item = new ArmorOfFortune();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 17: //Gauntlets of Nobility
            {
                Item item = new GauntletsOfNobility();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 18: //Helm of Insight
            {
                Item item = new HelmOfInsight();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 19: //Holy Knights Breastplate
            {
                Item item = new HolyKnightsBreastplate();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 20: //Jackal's Collar
            {
                Item item = new JackalsCollar();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 21: //Leggings of Bane
            {
                Item item = new LeggingsOfBane();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 22: //Midnight Bracers
            {
                Item item = new MidnightBracers();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 23: //Ornate Crown of the Harrower
            {
                Item item = new OrnateCrownOfTheHarrower();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 24: //Shadow Dancer Leggings
            {
                Item item = new ShadowDancerLeggings();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 25: //Inquisitor's Resolution
            {
                Item item = new InquisitorsResolution();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 26: //Tunic of Fire
            {
                Item item = new TunicOfFire();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 27: //Voice of the Fallen King
            {
                Item item = new VoiceOfTheFallenKing();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 29: //Bracelet of Health
            {
                Item item = new BraceletOfHealth();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 30: //Ornament of the Magician
            {
                Item item = new OrnamentOfTheMagician();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 31: //Ring of the Elements
            {
                Item item = new RingOfTheElements();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 32: //Ring of the Vile
            {
                Item item = new RingOfTheVile();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 34: //Aegis
            {
                Item item = new Aegis();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 35: //Arcane Shield
            {
                Item item = new ArcaneShield();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 36: //Divine Countenance
            {
                Item item = new DivineCountenance();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 37: //Hat of the Magi
            {
                Item item = new HatOfTheMagi();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 38: //Hunters Headdress
            {
                Item item = new HuntersHeaddress();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 39: //Spirit of the Totem
            {
                Item item = new SpiritOfTheTotem();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }
            }
        }