Jump to content

Recommended Posts

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) &amp;&amp; !wManager.Wow.Helpers.Quest.GetQuestCompleted(40643) 
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Moonglade&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Reflet-de-Lune&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Claro de la Luna&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Radaluna&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Mondlichtung&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Clareira da Lua&quot;
         &amp;&amp; wManager.Wow.Helpers.Usefuls.MapZoneName != &quot;Лунная поляна&quot;)" />  <!-- 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 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

  • 2 weeks later...

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();
            }

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...