Start adding missing scripts Part3

This commit is contained in:
hondacrx
2022-07-06 23:53:47 -04:00
parent 8cfd263fea
commit ba6c30add4
39 changed files with 5180 additions and 27 deletions
+1 -2
View File
@@ -529,8 +529,7 @@ namespace Scripts.World.GameObjects
me.UseDoorOrButton();
if (player.GetQuestStatus(QuestIds.MissingFriends) == QuestStatus.Incomplete)
{
List<Creature> childrenList = new();
me.GetCreatureListWithEntryInGrid(childrenList, CreatureIds.CaptiveChild, SharedConst.InteractionDistance);
List<Creature> childrenList = me.GetCreatureListWithEntryInGrid(CreatureIds.CaptiveChild, SharedConst.InteractionDistance);
foreach (Creature creature in childrenList)
{
player.KilledMonsterCredit(CreatureIds.CaptiveChild, creature.GetGUID());
+2 -4
View File
@@ -655,8 +655,7 @@ namespace Scripts.World.NpcSpecial
ObjectGuid DoSearchForTargets(ObjectGuid lastTargetGUID)
{
List<Creature> targets = new();
me.GetCreatureListWithEntryInGrid(targets, CreatureIds.TorchTossingTargetBunny, 60.0f);
List<Creature> targets = me.GetCreatureListWithEntryInGrid(CreatureIds.TorchTossingTargetBunny, 60.0f);
targets.RemoveAll(creature => creature.GetGUID() == lastTargetGUID);
if (!targets.Empty())
@@ -1292,8 +1291,7 @@ namespace Scripts.World.NpcSpecial
_events.Reset();
_scheduler.Schedule(TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2), fillListTask =>
{
List<Creature> creatureList = new();
me.GetCreatureListWithEntryInGrid(creatureList, CreatureIds.BrewfestReveler, 5.0f);
List<Creature> creatureList = me.GetCreatureListWithEntryInGrid(CreatureIds.BrewfestReveler, 5.0f);
foreach (Creature creature in creatureList)
if (creature != me)
_revelerGuids.Add(creature.GetGUID());