public override void OnStart()
        {
            QuestBehaviorBase.UsageCheck_ScheduledForDeprecation(this, "InteractWith");

            Lua.Events.AttachEvent("CONFIRM_BINDER", HandleConfirmBinder);

            this.UpdateGoalText(0, _goalText);
        }
Ejemplo n.º 2
0
        public override void OnStart()
        {
            QuestBehaviorBase.UsageCheck_ScheduledForDeprecation(this, "EscortGroup");

            // This reports problems, and stops BT processing if there was a problem with attributes...
            // We had to defer this action, as the 'profile line number' is not available during the element's
            // constructor call.
            OnStart_HandleAttributeProblem();

            // If the quest is complete, this behavior is already done...
            // So we don't want to falsely inform the user of things that will be skipped.
            if (!IsDone)
            {
                _configMemento = new ConfigMemento();

                // Disable any settings that may interfere with the escort --
                // When we escort, we don't want to be distracted by other things.
                // NOTE: these settings are restored to their normal values when the behavior completes
                // or the bot is stopped.
                CharacterSettings.Instance.HarvestHerbs    = false;
                CharacterSettings.Instance.HarvestMinerals = false;
                CharacterSettings.Instance.LootChests      = false;
                ProfileManager.CurrentProfile.LootMobs     = false;
                CharacterSettings.Instance.NinjaSkin       = false;
                CharacterSettings.Instance.SkinMobs        = false;

                var mobNames =
                    (from mob in ObjectManager.GetObjectsOfType <WoWUnit>()
                     where ObjectId.Contains((int)mob.Entry)
                     let mobName = Utility.GetObjectNameFromId((int)mob.Entry)
                                   orderby mobName
                                   select mobName)
                    .Distinct();

                this.UpdateGoalText(QuestId, string.Format("Escorting {0}", string.Join(", ", mobNames)));
            }
        }
Ejemplo n.º 3
0
        public override void OnStart()
        {
            QuestBehaviorBase.UsageCheck_ScheduledForDeprecation(this, "EscortGroup");

            this.UpdateGoalText(_questId);
        }