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); } }
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); } }
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); } }
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); } }
public override void OnClick() { AchievmentSystem.OpenGump(_from, _target); }