Esempio n. 1
0
        private void CheckForQuestProgress()
        {
            TokenHandler tokenHandler = LegacyLogic.Instance.WorldManager.Party.TokenHandler;

            if (m_killedCoreMonsters >= 10 && tokenHandler.GetTokens(557) == 0)
            {
                tokenHandler.AddToken(557);
            }
            else if (m_killedCoreMonsters >= 20 && tokenHandler.GetTokens(558) == 0)
            {
                tokenHandler.AddToken(558);
            }
            else if (m_killedCoreMonsters >= 30 && tokenHandler.GetTokens(559) == 0)
            {
                tokenHandler.AddToken(559);
            }
            else if (m_killedCoreMonsters >= 40 && tokenHandler.GetTokens(560) == 0)
            {
                tokenHandler.AddToken(560);
            }
            else if (m_killedCoreMonsters >= 50 && tokenHandler.GetTokens(561) == 0)
            {
                tokenHandler.AddToken(561);
            }
        }
        protected override void DoExecute()
        {
            TokenHandler tokenHandler = LegacyLogic.Instance.WorldManager.Party.TokenHandler;

            tokenHandler.AddToken(m_tokenID);
            FinishExecution();
        }