Пример #1
0
        public static void Configure()
        {
            EventSink.WorldSave     += OnSave;
            EventSink.WorldLoad     += OnLoad;
            EventSink.QuestComplete += CompleteQuest;
            EventSink.OnKilledBy    += OnKilledBy;
            EventSink.PlayerDeath   += OnKilledByPlayerDeath;
            // EventSink.PlayerMurdered += OnKilledByPlayerMurder;

            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();

            PvMPoints = new PvMPoints();
            PvPPoints = new PvPPoints();
        }
Пример #2
0
        public void SetPoints(PlayerMobile pm, double points)
        {
            PointsEntry entry = GetEntry(pm);

            if (entry != null)
            {
                entry.Points = points;
                pm.SendMessage($"У вас {(int)PvPPoints.GetPoints(pm)} PvM Points");
                pm.SendMessage($"У вас {(int)PvMPoints.GetPoints(pm)} PvP Points");
            }
        }