27 lines
799 B
C#
27 lines
799 B
C#
using ServerCommon;
|
|
|
|
namespace GameServer
|
|
{
|
|
public class QuestMail : QuestBase
|
|
{
|
|
public QuestMail(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, string msg) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
|
|
{
|
|
m_condition_1 = msg;
|
|
}
|
|
|
|
|
|
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
|
|
{
|
|
switch (m_name_type)
|
|
{
|
|
case EQuestEventNameType.RECEIVED:
|
|
return true;
|
|
case EQuestEventNameType.SENDED:
|
|
if (m_condition_1.Contains(events.EventCondition1)) return true;
|
|
break;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|