﻿<?xml version="1.0" encoding="utf-16"?>
<EasyQuestProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QuestsSorted>
    <QuestsSorted Action="RunLuaCode" NameClass="ResetInstances();" />
    <QuestsSorted Action="None" NameClass="How to works this profile: (orginal from Druidz, only changed/add a few things)&#xD;&#xA;(you need know base in &quot;Easy Quests&quot; and small know base in Lua/C#)&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;1:&#xD;&#xA;-  Change WRobot settings to works in dungeon (step 1 RunCode).&#xD;&#xA;&#xD;&#xA;2:&#xD;&#xA;- Create new quest to go to dungeon portal named &quot;Go To Dungeon&quot;.&#xD;&#xA;- In this quest I put &quot;True&quot; at the option &quot;Not required in quest log&quot; (because it is not an real quest).&#xD;&#xA;- At the option &quot;Is complete condition&quot; I put &quot;return (wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.Strateholme);&quot; (if you want make profile for another dungeon change SunkenTemple (you can found map name of your current position in &quot;Dev tools&quot; button &quot;Me/Target position&quot;).&#xD;&#xA;- I change &quot;Quest type&quot; to &quot;KillAndLoot&quot; (you don't need to kill mobs to go to dungeon but if you don't add &quot;target entry&quot; WRobot only go to Hotspots).&#xD;&#xA;- Now you need to add a hotspot behind the portal (so that bot through it) (it is not easy, you need to go to gate and click quickly on button &quot;+ Add my position&quot; before load screen (during load screen and in dungeon the continent and base position  change, WRobot cannot make path between two continent) (tip: use Click to Move (Right click in game to get time to return to WRobot window)). Another possibilitiy is: find out the nearest point in front of the portal before you get telepored, Click &quot;Add my position&quot; and edit the file with an editor and add 0,5 to your position (x or y or both)&#xD;&#xA;&#xD;&#xA;3: &#xD;&#xA;- Now, I create new quest to kill http://www.wowhead.com/npc=8443/avatar-of-hakkar named &quot;Kill Avatar Of Hakkar&quot;.&#xD;&#xA;- In this quest I put &quot;True&quot; at the option &quot;Not required in quest log&quot; (because it is not an real quest).&#xD;&#xA;- At the option &quot;Is complete condition&quot; I put &quot;return (wManager.Wow.Helpers.Lua.LuaDoString(&quot;local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0  then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(3);if critID ~= 24920 then completedObj = 'true'; end;&quot;, &quot;completedObj&quot;).ToLower() == &quot;true&quot;);&quot;, replace 3 by objective id, if objective is completed, WRobot go to next step (quest). (go to end of this text to get script to get objectives id)&#xD;&#xA;- For this objective I need to click on game object for spawn http://www.wowhead.com/npc=8443/avatar-of-hakkar, I use quest type &quot;Gatherer&quot;, I add in hotspots the positions of targets (to force agro) and the position of game object (for spawn), in object entry I add game object for spawn boss.&#xD;&#xA;- (...)&#xD;&#xA;- I make one quest by dungeon objective, in this profile I have juste changed objective number in &quot;Is complete condition&quot; and use quest type &quot;KillAndLoot&quot; for others objectives.&#xD;&#xA;&#xD;&#xA;4:&#xD;&#xA;- Create new quest to exit dungeon (like the quest &quot;Go To Dungeon&quot;, just replace in &quot;Is complete condition&quot; &quot;==&quot; by &quot;!=&quot;).&#xD;&#xA;&#xD;&#xA;5:&#xD;&#xA;- Make/Add steps (with tools &quot;Quests order editor&quot;) (At the end of steps list, add step type &quot;RunLuaCode&quot; with  &quot;ResetInstances()&quot; to reset dungeon and add step type &quot;GoToStep&quot; with the first step number of your profile (default 0) to run this profile in loop automaticly).&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;HELPFULS:&#xD;&#xA;&#xD;&#xA;Get objectives ID:&#xD;&#xA;In main WRobot window, go to tab &quot;Tools&quot;, click on button &quot;Development Tools&quot;, put this text in textbox (without ___):&#xD;&#xA;___________________________________________________________________&#xD;&#xA;local stageName, stageDescription, numCriteria = C_Scenario.GetStepInfo();  &#xD;&#xA;local idObj = 1;&#xD;&#xA;for idObj = 1, numCriteria do&#xD;&#xA; local criteriaString, criteriaType, completed, quantity, totalQuantity, flags, assetID, quantityString, criteriaID, duration, elapsed = C_Scenario.GetCriteriaInfo(idObj);&#xD;&#xA; if (completed) then&#xD;&#xA;  print(idObj .. ' ' .. criteriaString .. ':' .. criteriaID .. ': Completed' );&#xD;&#xA; else&#xD;&#xA;  print(idObj .. ' ' .. criteriaString .. ':' .. criteriaID .. ': In Progress' );&#xD;&#xA; end&#xD;&#xA;end&#xD;&#xA;___________________________________________________________________&#xD;&#xA;&#xD;&#xA;and click on button &quot;Lua (...&quot;, this write in your wow chat list of objectives." />
    <QuestsSorted Action="Pulse" NameClass="GoToDungeonShort" />
    <QuestsSorted Action="Wait" NameClass="5000" />
    <QuestsSorted Action="Pulse" NameClass="GoNext1" />
    <QuestsSorted Action="Pulse" NameClass="GoNext2" />
    <QuestsSorted Action="Pulse" NameClass="Exit" />
    <QuestsSorted Action="Wait" NameClass="5000" />
    <QuestsSorted Action="RunLuaCode" NameClass="ResetInstances();" />
    <QuestsSorted Action="Wait" NameClass="8000" />
    <QuestsSorted Action="GoToStep" NameClass="1" />
  </QuestsSorted>
  <NpcQuest />
  <Npc />
  <Blackspots />
  <BlackGuids />
  <EasyQuests>
    <EasyQuest>
      <Name>Go To Dungeon Short</Name>
      <QuestId />
      <QuestType>FollowPath</QuestType>
      <QuestClass xsi:type="FollowPathEasyQuestClass">
        <Path>
          <Vector3 X="-351.643" Y="3061.006" Z="-12.71367" Type="Flying" />
          <Vector3 X="-354.7122" Y="3065.412" Z="-12.88482" Type="Flying" />
          <Vector3 X="-361.1647" Y="3075.925" Z="-13.2466" Type="Flying" />
          <Vector3 X="-366.3717" Y="3087.067" Z="-13.53286" Type="Flying" />
        </Path>
        <IsCompleteWhenAtLastPath>false</IsCompleteWhenAtLastPath>
        <ForceToStartFirstPosition>true</ForceToStartFirstPosition>
        <IsHotSpots>false</IsHotSpots>
        <IsLoop>false</IsLoop>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.HellfireRampart);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>KillWatchkeeperGargolmar</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="-362.4539" Y="3064.599" Z="-15.12852" />
          <Vector3 X="-1180.706" Y="1461.916" Z="768.4411" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return !(wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo2D(new robotManager.Helpful.Vector3(-1180.706, 1444.952, 74.18292)) &gt; 30); </IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>GoNext1</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="-1326.531" Y="1663.632" Z="68.8125" />
          <Vector3 X="-1286.348" Y="1674.077" Z="68.70319" />
          <Vector3 X="-1270.382" Y="1655.057" Z="69.06777" />
          <Vector3 X="-1247.677" Y="1644.44" Z="67.86628" />
          <Vector3 X="-1255.018" Y="1588.636" Z="68.55849" />
          <Vector3 X="-1264.564" Y="1565.395" Z="68.62844" />
          <Vector3 X="-1278.044" Y="1542.625" Z="68.57365" />
          <Vector3 X="-1289.557" Y="1538.001" Z="68.58757" />
          <Vector3 X="-1286.966" Y="1490.966" Z="68.59082" />
          <Vector3 X="-1234.042" Y="1475.474" Z="68.56089" />
          <Vector3 X="-1220.72" Y="1463.338" Z="68.56899" />
          <Vector3 X="-1204.088" Y="1443.525" Z="68.53256" />
          <Vector3 X="-1177.287" Y="1445.848" Z="68.42431" />
          <Vector3 X="-1180.536" Y="1481.382" Z="68.45497" />
          <Vector3 X="-1153.712" Y="1496.278" Z="68.41574" />
          <Vector3 X="-1171.344" Y="1509.509" Z="68.44753" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return !(wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo2D(new robotManager.Helpful.Vector3(-1171.344, 1509.509, 68.44753)) &gt; 15); </IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>GoNext2</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="-1179.637" Y="1517.932" Z="68.46143" />
          <Vector3 X="-1205.617" Y="1534.178" Z="68.54449" />
          <Vector3 X="-1214.404" Y="1543.621" Z="68.55061" />
          <Vector3 X="-1218.939" Y="1531.685" Z="68.56161" />
          <Vector3 X="-1240.601" Y="1561.348" Z="91.04189" />
          <Vector3 X="-1262.533" Y="1589.687" Z="92.14743" />
          <Vector3 X="-1292.129" Y="1595.172" Z="91.76807" />
          <Vector3 X="-1299.891" Y="1588.3" Z="91.77891" />
          <Vector3 X="-1316.061" Y="1613.214" Z="91.74926" />
          <Vector3 X="-1298.486" Y="1634.937" Z="91.74868" />
          <Vector3 X="-1286.034" Y="1636.744" Z="91.72971" />
          <Vector3 X="-1271.243" Y="1628.231" Z="91.6718" />
          <Vector3 X="-1169.571" Y="1696.025" Z="91.53418" />
          <Vector3 X="-1119.399" Y="1718.076" Z="89.44628" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return !(wManager.Wow.ObjectManager.ObjectManager.Me.Position.DistanceTo2D(new robotManager.Helpful.Vector3(-1119.399, 1718.076, 89.44628)) &gt; 10); </IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Exit</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="-1321.905" Y="1637.558" Z="89.15712" />
          <Vector3 X="-1329.04" Y="1636.8" Z="84.07551" />
          <Vector3 X="-1343.396" Y="1643.31" Z="68.68745" />
          <Vector3 X="-1360.453" Y="1633.182" Z="68.45575" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId != (int)wManager.Wow.Enums.ContinentId.HellfireRampart);;</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
  </EasyQuests>
</EasyQuestProfile>