/// <summary> /// Handles quest events. /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <param name="args"></param> public override void Notify(DOLEvent e, object sender, EventArgs args) { base.Notify(e, sender, args); GamePlayer player = sender as GamePlayer; if (player == null) { return; } if (player.IsDoingQuest(typeof(MagicalBacklash)) == null) { return; } if (Step == 1 && e == GameLivingEvent.EnemyKilled) { EnemyKilledEventArgs gArgs = (EnemyKilledEventArgs)args; if (gArgs.Target.Name.IndexOf(LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Hib.MagicalBacklash.Notify.Text1")) >= 0) { if (!OrchardNipperKilled.IsAchieved) { OrchardNipperKilled.Advance(); return; } } } }
/// <summary> /// Handles quest events. /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <param name="args"></param> public override void Notify(DOLEvent e, object sender, EventArgs args) { base.Notify(e, sender, args); GamePlayer player = sender as GamePlayer; if (player == null) { return; } if (player.IsDoingQuest(typeof(AfterTheAccident)) == null) { return; } if (Step == 1 && e == GameLivingEvent.EnemyKilled) { EnemyKilledEventArgs gArgs = (EnemyKilledEventArgs)args; if (gArgs.Target.Name.IndexOf(LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Alb.AfterTheAccident.Notify.Text1")) >= 0) { if (!punySkeletonGoal.IsAchieved) { punySkeletonGoal.Advance(); return; } } } }
/// <summary> /// Handles quest events. /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <param name="args"></param> public override void Notify(DOLEvent e, object sender, EventArgs args) { base.Notify(e, sender, args); GamePlayer player = sender as GamePlayer; if (player == null) { return; } if (player.IsDoingQuest(typeof(DredgeUpAPledge)) == null) { return; } if (Step == 1 && e == GameLivingEvent.EnemyKilled) { EnemyKilledEventArgs gArgs = (EnemyKilledEventArgs)args; if (gArgs.Target.Name.IndexOf(LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Alb.DredgeUpAPledge.Notify")) >= 0) { if (!banditPledgesKilled.IsAchieved) { banditPledgesKilled.Advance(); return; } } } }
/// <summary> /// Handles quest events. /// </summary> /// <param name="e"></param> /// <param name="sender"></param> /// <param name="args"></param> public override void Notify(DOLEvent e, object sender, EventArgs args) { base.Notify(e, sender, args); GamePlayer player = sender as GamePlayer; if (player == null) { return; } if (player.IsDoingQuest(typeof(CemmethsOrders)) == null) { return; } if (Step == 1 && e == GameLivingEvent.EnemyKilled) { EnemyKilledEventArgs gArgs = (EnemyKilledEventArgs)args; if (gArgs.Target.Name.IndexOf(LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Alb.CemmethsOrders.Notify.Text1")) >= 0) { if (!SkeletonsKilled.IsAchieved) { SkeletonsKilled.Advance(); return; } } if (gArgs.Target.Name.IndexOf(LanguageMgr.GetTranslation(ServerProperties.Properties.SERV_LANGUAGE, "Alb.CemmethsOrders.Notify.Text2")) >= 0) { if (!DecayingGhoulsKilled.IsAchieved) { DecayingGhoulsKilled.Advance(); return; } } } }