Files
2025-05-01 07:20:41 +09:00

22 lines
635 B
C#

using ServerCommon;
namespace GameServer;
public class QuestTpsPlayerKill : QuestBase
{
private Int32 m_kill_count = 0;
public QuestTpsPlayerKill(EQuestEventTargetType targetType, EQuestEventNameType eventNameType, int killCount) : base(targetType, eventNameType, 0, string.Empty, string.Empty, string.Empty)
{
m_kill_count = killCount;
}
public override bool checkSubValidTaskScript(QuestAttribute questAttribute, QuestEventInfo events)
{
var kill_count = int.Parse(events.EventCondition1);
if (m_kill_count >= kill_count) return true;
return false;
}
}