Xolem 1 Posted November 15, 2016 Share Posted November 15, 2016 (edited) Hello guys, Right now i'm trying to program the druid starter quest in Dalaran and it has been a pain in the ass, so far. The quest consist on picking up the quest in Dalaran, then teleport to the druid area in Kalimdor and turn in the quest. In the meanwhile, the quest giver changes his position and ID. So far I have been managing to pick up the quest and do the teleport. but once there the bot will no turn in the quest. I have been working on that stuff for almost 20 hours straight now so it's quite a serious issue for me. Also if you find I have too much xml code and I should put more stuff in classes please do tell me. Here are the samples of code for the quest : C# : using wManager; using robotManager; public sealed class aSummonsFromMoonglade : QuestClass { public aSummonsFromMoonglade() { // http://www.wowhead.com/quest=40643 Name = "A Summons From Moonglade"; QuestId.Add(40643); } } XML <?xml version="1.0" encoding="utf-8"?> <QuesterProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <QuestFile>Intros\druid-intro.cs</QuestFile> <QuestsSorted> <QuestsSorted Action="WriteLog" NameClass="Compiling Legion introductory druid quests" /> <!-- 2: A Summons From Moonglade --> <QuestsSorted Action="PickUp" NameClass="aSummonsFromMoonglade" /> <QuestsSorted Action="If" NameClass="(wManager.Wow.Helpers.Quest.HasQuest(40643) && !wManager.Wow.Helpers.Quest.GetQuestCompleted(40643) && wManager.Wow.Helpers.Usefuls.MapZoneName != "Moonglade" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Reflet-de-Lune" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Claro de la Luna" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Radaluna" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Mondlichtung" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Clareira da Lua" && wManager.Wow.Helpers.Usefuls.MapZoneName != "Лунная поляна")" /> <!-- All languages supported --> <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(18960);" /> <QuestsSorted Action="EndIf" NameClass="" /> <QuestsSorted Action="TurnIn" NameClass="aSummonsFromMoonglade" /> </QuestsSorted> <NpcQuest> <NPCQuest Id="101061" Name="Archdruid Hamuul Runetotem" GameObject="false"> <PickUpQuests> <int>40643</int> </PickUpQuests> <Position> <X>-833.6385</X> <Y>4403.738</Y> <Z>737.4111</Z> <Type>None</Type> </Position> </NPCQuest> <NPCQuest Id="101064" Name="Archdruid Hamuul Runetotem" GameObject="false"> <TurnInQuests> <int>40643</int> </TurnInQuests> <Position> <X>8001.76</X> <Y>-2680.266</Y> <Z>512.0837</Z> <Type>None</Type> </Position> </NPCQuest> </NpcQuest> <Npc></Npc> <Blackspots></Blackspots> </QuesterProfile> Thanks in advance, not much hairs left on my head ;) Edited November 16, 2016 by Xolem Wrong section - Can a moderator move it to "Developers assistance" ? Link to comment https://wrobot.eu/forums/topic/4472-legion-quester-manual-profile-programming/ Share on other sites More sharing options...
Xolem 1 Posted November 18, 2016 Author Share Posted November 18, 2016 Bump Link to comment https://wrobot.eu/forums/topic/4472-legion-quester-manual-profile-programming/#findComment-20781 Share on other sites More sharing options...
Droidz 2738 Posted November 29, 2016 Share Posted November 29, 2016 Hello, Add wait time after cast, and try to turnin manually the quest with runcode step: if (wManager.Wow.Helpers.Quest.HasQuest(40643) && wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(8001, -2680, 512), 101064)) { wManager.Wow.Helpers.Quest.CompleteQuest(); } Xolem 1 Link to comment https://wrobot.eu/forums/topic/4472-legion-quester-manual-profile-programming/#findComment-21136 Share on other sites More sharing options...
Xolem 1 Posted November 29, 2016 Author Share Posted November 29, 2016 Thanks, had done the part interactwithnpc, but didn't knew about the method. Nice to know about it. CompleteQuest(); Link to comment https://wrobot.eu/forums/topic/4472-legion-quester-manual-profile-programming/#findComment-21142 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