Ejemplo n.º 1
0
        public static void Configure()
        {
            EventSink.WorldSave     += OnSave;
            EventSink.WorldLoad     += OnLoad;
            EventSink.QuestComplete += CompleteQuest;
            EventSink.OnKilledBy    += OnKilledBy;

            Systems = new List <PointsSystem>();

            QueensLoyalty       = new QueensLoyalty();
            VoidPool            = new VoidPool();
            DespiseCrystals     = new DespiseCrystals();
            ShameCrystals       = new ShameCrystals();
            CasinoData          = new CasinoData();
            Blackthorn          = new BlackthornData();
            CleanUpBritannia    = new CleanUpBritanniaData();
            ViceVsVirtue        = new ViceVsVirtueSystem();
            TreasuresOfKotlCity = new KotlCityData();

            CityLoyaltySystem.ConstructSystems();
            ArenaSystem       = new PVPArenaSystem();
            Khaldun           = new KhaldunData();
            TreasuresOfDoom   = new DoomData();
            SorcerersDungeon  = new SorcerersDungeonData();
            RisingTide        = new RisingTide();
            DoomGauntlet      = new DoomGauntlet();
            TreasuresOfTokuno = new TreasuresOfTokuno();
            VirtueArtifacts   = new VirtueArtifactsSystem();
            FellowshipData    = new FellowshipData();
        }
Ejemplo n.º 2
0
        protected override void OnTarget(Mobile m, object targeted)
        {
            if (targeted is Item item)
            {
                if (!item.IsChildOf(m_Mobile))
                {
                    return;
                }

                double points = CleanUpBritanniaData.GetPoints(item);

                if (points == 0)
                {
                    m_Mobile.SendLocalizedMessage(1151271); // This item has no turn-in value for Clean Up Britannia.
                }
                else if (points < 1)
                {
                    m_Mobile.SendLocalizedMessage(1151272); // This item is worth less than one point for Clean Up Britannia.
                }
                else if (points == 1)
                {
                    m_Mobile.SendLocalizedMessage(1151273); // This item is worth approximately one point for Clean Up Britannia.
                }
                else
                {
                    m_Mobile.SendLocalizedMessage(1151274, points.ToString()); //This item is worth approximately ~1_VALUE~ points for Clean Up Britannia.
                }
                m_Mobile.Target = new AppraiseforCleanupTarget(m_Mobile);
            }
            else
            {
                m_Mobile.SendLocalizedMessage(1151271); // This item has no turn-in value for Clean Up Britannia.
                m_Mobile.Target = new AppraiseforCleanupTarget(m_Mobile);
            }
        }
Ejemplo n.º 3
0
        protected override void OnTarget(Mobile m, object targeted)
        {
            if (targeted is Item)
            {
                Item item = (Item)targeted;

                double points = CleanUpBritanniaData.GetPoints(item);

                if (points == 0)
                {
                    m_Mobile.SendLocalizedMessage(1151271); // This item has no turn-in value for Clean Up Britannia.
                }
                else if (points < 1)
                {
                    m_Mobile.SendLocalizedMessage(1151272, points.ToString()); // This item is worth less than one point for Clean Up Britannia.
                }
                else if (points == 1)
                {
                    m_Mobile.SendLocalizedMessage(1151273, points.ToString()); // This item is worth approximately one point for Clean Up Britannia.
                }
                else
                {
                    m_Mobile.SendLocalizedMessage(1151274, points.ToString()); //This item is worth approximately ~1_VALUE~ points for Clean Up Britannia.
                }
            }
            else
            {
                m_Mobile.SendLocalizedMessage(1151271); // This item has no turn-in value for Clean Up Britannia.
            }
        }
Ejemplo n.º 4
0
        public static void Configure()
        {
            EventSink.WorldSave += OnSave;
            EventSink.WorldLoad += OnLoad;

            Systems = new List <PointsSystem>();

            QueensLoyalty    = new QueensLoyalty();
            VoidPool         = new VoidPool();
            DespiseCrystals  = new DespiseCrystals();
            ShameCrystals    = new ShameCrystals();
            CasinoData       = new CasinoData();
            Blackthorn       = new BlackthornData();
            CleanUpBritannia = new CleanUpBritanniaData();

            CityLoyaltySystem.ConstructSystems();
        }
Ejemplo n.º 5
0
        public static void Configure()
        {
            EventSink.WorldSave += OnSave;
            EventSink.WorldLoad += OnLoad;

            Systems = new List <PointsSystem>();

            QueensLoyalty       = new QueensLoyalty();
            VoidPool            = new VoidPool();
            DespiseCrystals     = new DespiseCrystals();
            ShameCrystals       = new ShameCrystals();
            CasinoData          = new CasinoData();
            Blackthorn          = new BlackthornData();
            CleanUpBritannia    = new CleanUpBritanniaData();
            ViceVsVirtue        = new ViceVsVirtueSystem();
            TreasuresOfKotlCity = new KotlCityData();

            CityLoyaltySystem.ConstructSystems();
            ArenaSystem = new PVPArenaSystem();
            Khaldun     = new KhaldunData();
        }