More refactoring of code.
This commit is contained in:
@@ -177,12 +177,12 @@ namespace Scripts.EasternKingdoms.Karazhan.Midnight
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(25), task =>
|
||||
{
|
||||
Unit target = null;
|
||||
var t_list = me.GetThreatManager().getThreatList();
|
||||
var t_list = me.GetThreatManager().GetThreatList();
|
||||
List<Unit> target_list = new List<Unit>();
|
||||
|
||||
foreach (var itr in t_list)
|
||||
{
|
||||
target = Global.ObjAccessor.GetUnit(me, itr.getUnitGuid());
|
||||
target = Global.ObjAccessor.GetUnit(me, itr.GetUnitGuid());
|
||||
if (target && !target.IsWithinDist(me, 8.00f, false) && target.IsWithinDist(me, 25.0f, false))
|
||||
target_list.Add(target);
|
||||
|
||||
|
||||
@@ -692,7 +692,7 @@ namespace Scripts.EasternKingdoms.Karazhan.OperaEvent
|
||||
{
|
||||
public npc_grandmother(Creature creature) : base(creature) { }
|
||||
|
||||
public override void sGossipSelect(Player player, uint menuId, uint gossipListId)
|
||||
public override void GossipSelect(Player player, uint menuId, uint gossipListId)
|
||||
{
|
||||
if (menuId == RedRidingHood.OptionWhatPhatLewtsYouHave && gossipListId == 0)
|
||||
{
|
||||
@@ -1378,7 +1378,7 @@ namespace Scripts.EasternKingdoms.Karazhan.OperaEvent
|
||||
{
|
||||
public npc_barnes() : base("npc_barnes") { }
|
||||
|
||||
class npc_barnesAI : npc_escortAI
|
||||
class npc_barnesAI : NpcEscortAI
|
||||
{
|
||||
public npc_barnesAI(Creature creature) : base(creature)
|
||||
{
|
||||
@@ -1518,7 +1518,7 @@ namespace Scripts.EasternKingdoms.Karazhan.OperaEvent
|
||||
{
|
||||
base.UpdateAI(diff);
|
||||
|
||||
if (HasEscortState(eEscortState.Paused))
|
||||
if (HasEscortState(EscortState.Paused))
|
||||
{
|
||||
if (TalkTimer <= diff)
|
||||
{
|
||||
|
||||
@@ -681,7 +681,7 @@ namespace Scripts.EasternKingdoms
|
||||
{
|
||||
public npc_salanar_the_horseman(Creature creature) : base(creature) { }
|
||||
|
||||
public override void sGossipSelect(Player player, uint menuId, uint gossipListId)
|
||||
public override void GossipSelect(Player player, uint menuId, uint gossipListId)
|
||||
{
|
||||
if (menuId == MiscConst.GossipSalanarMenu && gossipListId == MiscConst.GossipSalanarOption)
|
||||
{
|
||||
@@ -939,7 +939,7 @@ namespace Scripts.EasternKingdoms
|
||||
}
|
||||
|
||||
[Script]
|
||||
class npc_scarlet_miner : npc_escortAI
|
||||
class npc_scarlet_miner : NpcEscortAI
|
||||
{
|
||||
public npc_scarlet_miner(Creature creature) : base(creature)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user