초기커밋
This commit is contained in:
21
GameServer/Contents/Quest/QuestChecker/QuestChat.cs
Normal file
21
GameServer/Contents/Quest/QuestChecker/QuestChat.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user