22 lines
722 B
C#
22 lines
722 B
C#
using ServerCommon;
|
|
|
|
namespace GameServer
|
|
{
|
|
public class QuestChat : QuestBase
|
|
{
|
|
public QuestChat(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, string chatType, string msg) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
|
{
|
|
m_condition_1 = chatType;
|
|
m_condition_2 = msg;
|
|
}
|
|
|
|
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
|
{
|
|
if (!events.EventCondition1.Equals(m_condition_1)) return false;
|
|
|
|
if (m_condition_2.ToUpper().Contains(events.EventCondition2.ToUpper())) return true;
|
|
return false;
|
|
}
|
|
}
|
|
}
|