camelot10 155 Posted March 12, 2017 Share Posted March 12, 2017 This question connected mostly to Kayn and Altrius for Demon hunters. Quest description have all quest ids, example: 39261 //http://www.wowhead.com/quest=39261/call-of-the-illidari 39047 //http://www.wowhead.com/quest=39047/call-of-the-illidari in NPC list i have both npcs. Kayn first in list, and have Turn In ids: 39261 Altrius second in list and have Turn In ids: 39047 When i choosed Kayn quest turnin successfully. But when i choose Altrius, its dont. I suppose Quester search first npc in list who have in Turn In any of QuestId related to that quest. But i need to get First NPC with exact turn-in id equal to current active quest ID, not WHOLE list of QuestId any tips? what i can do ? @Droidz Link to comment https://wrobot.eu/forums/topic/5365-one-quest-multple-quest-ids-multiple-npc-pickturnin/ Share on other sites More sharing options...
camelot10 155 Posted March 13, 2017 Author Share Posted March 13, 2017 maded dirty hook public static bool ClearKaynIfAltriusChoosed() { if (ChoosedKayn) return false; var kayn = new List<int>(){ //DH class hall 99247, 95240, //DH vengeance artifact //DH havoc artifact //DH azsuna }; foreach (var npc in Quest.NPCList) { if (kayn.Contains(npc.Id)) { Log(" (Hook) Clear NPC='" + npc.Name + "' PickUp and TurnIn quests, because player choosed Altrius."); npc.PickUpQuests.Clear(); npc.TurnInQuests.Clear(); } } return true; } Link to comment https://wrobot.eu/forums/topic/5365-one-quest-multple-quest-ids-multiple-npc-pickturnin/#findComment-24738 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now