コード例 #1
0
 private void EventSink_CraftSuccess(CraftSuccessEventArgs e)
 {
     if (e.Crafter is PlayerMobile && e.CraftedItem.GetType() == m_Item)
     {
         AchievmentSystem.SetAchievementStatus(e.Crafter as PlayerMobile, this, e.CraftedItem.Amount);
     }
 }
コード例 #2
0
        private void EventSink_ResourceHarvestSuccess(ResourceHarvestSuccessEventArgs e)
        {
            var player = e.Harvester as PlayerMobile;

            if (e.Resource.GetType() == m_Item)
            {
                AchievmentSystem.SetAchievementStatus(player, this, e.Resource.Amount);
            }
        }
コード例 #3
0
        private void EventSink_OnKilledBy(OnKilledByEventArgs e)
        {
            var player = e.KilledBy as PlayerMobile;

            if (player != null && e.Killed.GetType() == m_Mobile)
            {
                AchievmentSystem.SetAchievementStatus(player, this, 1);
            }
        }
コード例 #4
0
        private void EventSink_OnEnterRegion(OnEnterRegionEventArgs e)
        {
            if (e == null || e.Region == null || e.From == null || e.Region.Name == null)
            {
                return;
            }
            var player = e.From as PlayerMobile;

            if (e.Region.Name.Contains(m_Region) && player != null)
            {
                AchievmentSystem.SetAchievementStatus(player, this, 1);
            }
        }
コード例 #5
0
ファイル: AcheivmentEntry.cs プロジェクト: MythikGN/Mythik
 public override void OnClick()
 {
     AchievmentSystem.OpenGump(_from, _target);
 }