Esempio n. 1
0
        public virtual void UpdateChain()
        {
            if (ChainID != QuestChain.None && StartingMobile != null)
            {
                if (m_Owner.Chains.ContainsKey(ChainID))
                {
                    BaseChain chain = m_Owner.Chains[ChainID];

                    chain.CurrentQuest = GetType();
                    chain.Quester      = StartingMobile.GetType();
                }
                else
                {
                    m_Owner.Chains.Add(ChainID, new BaseChain(GetType(), StartingMobile.GetType()));
                }
            }
        }
Esempio n. 2
0
        public virtual void UpdateChain()
        {
            if (ChainID != QuestChain.None && StartingMobile != null)
            {
                if (m_Owner.Chains.ContainsKey(ChainID))
                {
                    BaseChain chain = m_Owner.Chains[ChainID];

                    chain.CurrentQuest = GetType();
                    chain.Quester      = StartingMobile.GetType();

                    if (Core.Debug)
                    {
                        Console.WriteLine();
                        Console.WriteLine("Updating quest chain: ");
                        Console.WriteLine("	CahinID: {0} ", ChainID.ToString());
                        Console.WriteLine("	CurrentQuest: {0} ", chain.CurrentQuest.ToString());
                        Console.WriteLine("	Quester: {0} ", chain.Quester.ToString());
                        Console.WriteLine();
                    }
                }
                else
                {
                    m_Owner.Chains.Add(ChainID, new BaseChain(GetType(), StartingMobile.GetType()));

                    if (Core.Debug)
                    {
                        Console.WriteLine();
                        Console.WriteLine("Adding quest chain: ");
                        Console.WriteLine("	CahinID: {0} ", ChainID.ToString());
                        Console.WriteLine("	CurrentQuest: {0} ", GetType().ToString());
                        Console.WriteLine("	Quester: {0} ", StartingMobile.GetType().ToString());
                        Console.WriteLine();
                    }
                }
            }
        }