示例#1
0
        public static void SetupSampleAmbusherQuest()
        {
            InitQuest();

            // must forgive 5 Ambushers
            AmbusherQuest.AddNPCInteraction(NPCId.WitchwingAmbusher, 5);
            QuestMgr.AddQuest(AmbusherQuest);

            var entry = NPCMgr.GetEntry(NPCId.WitchwingAmbusher);

            entry.BeforeDeath += OnBeforeAmbusherDeath;

            // check if our guy has forgiven the ambusher yet
            ChatMgr.MessageSent += CheckAmbusherRelease;
        }