Exemple #1
0
 private void EventSink_CraftSuccess(CraftSuccessEventArgs e)
 {
     if (e.Crafter is PlayerMobile && e.CraftedItem.GetType() == m_Item)
     {
         AchievementSystem.SetAchievementStatus(e.Crafter as PlayerMobile, this, e.CraftedItem.Amount);
     }
 }
Exemple #2
0
        private void EventSink_OnKilledBy(OnKilledByEventArgs e)
        {
            var player = e.KilledBy as PlayerMobile;

            if (player != null && e.Killed.GetType() == m_Mobile)
            {
                AchievementSystem.SetAchievementStatus(player, this, 1);
            }
        }
Exemple #3
0
        private void EventSink_ResourceHarvestSuccess(ResourceHarvestSuccessEventArgs e)
        {
            var player = e.Harvester as PlayerMobile;

            if (e.Resource.GetType() == m_Item)
            {
                AchievementSystem.SetAchievementStatus(player, this, e.Resource.Amount);
            }
        }
Exemple #4
0
        private void EventSink_OnEnterRegion(OnEnterRegionEventArgs e)
        {
            if (e == null || e.NewRegion == null || e.From == null || e.NewRegion.Name == null)
            {
                return;
            }
            var player = e.From as PlayerMobile;

            if (e.NewRegion.Name.Contains(m_Region) && player != null)
            {
                AchievementSystem.SetAchievementStatus(player, this, 1);
            }
        }
Exemple #5
0
 public override void OnClick()
 {
     AchievementSystem.OpenGump(_from, _target);
 }