Esempio n. 1
0
        protected void ShowNextOnscreenMessage()
        {
            if (m_NextOnscreenMessageIndex < m_TextPieces.Count)
            {
                if (IsNpcInReach())
                {
                    m_LastOnscreenBox = OpenTibiaUnity.WorldMapStorage.AddOnscreenMessage(m_Position, 0, m_Speaker, 0, MessageModes.NpcFrom,
                                                                                          m_TextPieces[m_NextOnscreenMessageIndex]);

                    m_MinTimeForNextOnscreenMessage = OpenTibiaUnity.TicksMillis + (int)MessageStorage.s_GetTalkDelay(m_TextPieces[m_NextOnscreenMessageIndex]);
                    m_NextOnscreenMessageIndex++;
                }
                else
                {
                    m_NextOnscreenMessageIndex = m_TextPieces.Count;
                }
            }
        }
Esempio n. 2
0
        protected void ShowNextOnscreenMessage()
        {
            if (_nextOnscreenMessageIndex < _textPieces.Count)
            {
                if (IsNpcInReach())
                {
                    _lastOnscreenBox = OpenTibiaUnity.WorldMapStorage.AddOnscreenMessage(_position, 0, _speaker, 0, MessageModeType.NpcFrom,
                                                                                         _textPieces[_nextOnscreenMessageIndex]);

                    _minTimeForNextOnscreenMessage = OpenTibiaUnity.TicksMillis + (int)MessageStorage.s_GetTalkDelay(_textPieces[_nextOnscreenMessageIndex]);
                    _nextOnscreenMessageIndex++;
                }
                else
                {
                    _nextOnscreenMessageIndex = _textPieces.Count;
                }
            }
        }