示例#1
0
        public virtual void OnAccept()
        {
            m_Owner.PlaySound(AcceptSound);
            m_Owner.SendLocalizedMessage(1049019);               // You have accepted the Quest.
            m_Owner.Quests.Add(this);

            // give items if any
            for (int i = 0; i < m_Objectives.Count; i++)
            {
                BaseObjective objective = m_Objectives[i];

                objective.OnAccept();
            }

            if (m_Quester is BaseEscort)
            {
                BaseEscort escort = (BaseEscort)m_Quester;

                if (escort.SetControlMaster(m_Owner))
                {
                    escort.Quest = this;

                    escort.LastSeenEscorter = DateTime.Now;
                    escort.StartFollow();
                    escort.AddHash(Owner);
                    escort.Say(1042806, "destination");                        // Lead on! Payment will be made when we arrive at ~1_DESTINATION~!
                    m_Owner.LastEscortTime = DateTime.Now;
                }
            }

            // tick tack
            StartTimer();
        }
示例#2
0
        public virtual void OnAccept()
        {
            this.m_Owner.PlaySound(this.AcceptSound);
            this.m_Owner.SendLocalizedMessage(1049019); // You have accepted the Quest.
            this.m_Owner.Quests.Add(this);

            // give items if any
            for (int i = 0; i < this.m_Objectives.Count; i++)
            {
                BaseObjective objective = this.m_Objectives[i];

                objective.OnAccept();
            }

            if (this.m_Quester is BaseEscort)
            {
                BaseEscort escort = (BaseEscort)this.m_Quester;

                if (escort.SetControlMaster(this.m_Owner))
                {
                    escort.Quest            = this;
                    escort.LastSeenEscorter = DateTime.UtcNow;
                    escort.StartFollow();
                    escort.AddHash(this.Owner);

                    Region region = escort.GetDestination();

                    if (region != null)
                    {
                        escort.Say(1042806, region.Name); // Lead on! Payment will be made when we arrive at ~1_DESTINATION~!
                    }
                    else
                    {
                        escort.Say(1042806, "destination"); // Lead on! Payment will be made when we arrive at ~1_DESTINATION~!
                    }
                    this.m_Owner.LastEscortTime = DateTime.UtcNow;
                }
            }

            // tick tack
            this.StartTimer();
        }
        public virtual void OnAccept()
        {
            m_Owner.PlaySound(AcceptSound);
            m_Owner.SendLocalizedMessage(1049019);             // You have accepted the Quest.
            m_Owner.Quests.Add(this);

            // give items if any
            for (int i = 0; i < m_Objectives.Count; i++)
            {
                BaseObjective objective = m_Objectives[i];

                objective.OnAccept();
            }

            /*
             * if (m_Quester is BaseEscort)
             * {
             *      BaseEscort escort = (BaseEscort)m_Quester;
             *
             *      if (escort.SetControlMaster(m_Owner))
             *      {
             *              escort.Quest = this;
             *              escort.LastSeenEscorter = DateTime.UtcNow;
             *              escort.StartFollow();
             *              escort.AddHash(Owner);
             *
             *              Region region = escort.GetDestination();
             *
             *              if (region != null)
             *                      escort.Say(1042806, region.Name); // Lead on! Payment will be made when we arrive at ~1_DESTINATION~!
             *              else
             *                      escort.Say(1042806, "destination"); // Lead on! Payment will be made when we arrive at ~1_DESTINATION~!
             *
             *              m_Owner.LastEscortTime = DateTime.UtcNow;
             *      }
             * }
             */
            // tick tack
            StartTimer();
        }