﻿<?xml version="1.0" encoding="utf-8"?>
<EasyQuestProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QuestsSorted>
    <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="RunCode" NameClass="// Change WRobot settings:&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.MaxUnitsNear=99;&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.CanAttackUnitsAlreadyInFight = true;&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.AttackElite = true;&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.AttackBeforeBeingAttacked = false;&#xD;&#xA;wManager.wManagerSetting.CurrentSetting.SearchRadius=40;&#xD;&#xA;" />
    <QuestsSorted Action="RunMacroLua" NameClass=".i u all" />
    <QuestsSorted Action="Pulse" NameClass="GoToDungeonShort" />
    <QuestsSorted Action="Wait" NameClass="2000" />
    <QuestsSorted Action="RunCode" NameClass="// PathFinder avoid obstacles:&#xD;&#xA;// wManager.Wow.Helpers.PathFinder.ReportBigDangerArea(new Vector3(3920.21167f, -3547.52246f, 134.244781f), 20f);&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;// Blacklist:&#xD;&#xA; wManager.wManagerSetting.AddBlackListNpcEntry(53488); // http://www.wowhead.com/npc=53488" />
    <QuestsSorted Action="Pulse" NameClass="BossObj2" />
    <QuestsSorted Action="Pulse" NameClass="Exit" />
    <QuestsSorted Action="Wait" NameClass="2000" />
    <QuestsSorted Action="Wait" NameClass="2000" />
    <QuestsSorted Action="GoToStep" NameClass="1" />
  </QuestsSorted>
  <NpcQuest />
  <Npc>
    <Npc>
      <Position X="7370.463" Y="4342.348" Z="127.2006" Type="Flying" />
      <Entry>85547</Entry>
      <Name>Barduun</Name>
      <GossipOption>-1</GossipOption>
      <Active>true</Active>
      <Faction>Neutral</Faction>
      <Type>Vendor</Type>
      <ContinentId>Draenor</ContinentId>
    </Npc>
    <Npc>
      <Position X="7400.561" Y="4335.775" Z="126.4069" Type="Flying" />
      <Entry>85545</Entry>
      <Name>Urkag</Name>
      <GossipOption>-1</GossipOption>
      <Active>true</Active>
      <Faction>Neutral</Faction>
      <Type>Repair</Type>
      <ContinentId>Draenor</ContinentId>
    </Npc>
    <Npc>
      <Position X="7400.561" Y="4335.775" Z="126.4069" Type="Flying" />
      <Entry>85545</Entry>
      <Name>Urkag</Name>
      <GossipOption>-1</GossipOption>
      <Active>true</Active>
      <Faction>Neutral</Faction>
      <Type>Vendor</Type>
      <ContinentId>Draenor</ContinentId>
    </Npc>
  </Npc>
  <Blackspots />
  <BlackGuids>
    <string>00780B00037C778D203A9092E0496EC0</string>
    <string>00780B0000FC784A203A9092E0489D40</string>
    <string>00780B00007C784A203A9092E0489D00</string>
    <string>00780B00007C784A203A9092E0489CC0</string>
    <string>00780B00007C784A203A9092E0489D40</string>
    <string>00780B00007C7863203A9092E0489CC0</string>
    <string>00780B0000FC7857203A9092E0489D40</string>
    <string>00780B00007C786F203A9092E0489D00</string>
    <string>00780B00007C7863203A9092E0489D00</string>
  </BlackGuids>
  <EasyQuests>
    <EasyQuest>
      <Name>Go To Dungeon Short</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="3547.693" Y="5088.335" Z="3.050343" />
          <Vector3 X="3560.13" Y="5080.913" Z="0" />
        </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.GruulsLair);</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>Boss_Obj_1</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="143.781" Y="190.478" Z="-11.4942" />
        </HotSpots>
        <EntryTarget>
          <int>18831</int>
        </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.Lua.LuaDoString("local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0  then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(1); ", "completedObj").ToLower() == "true");</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment>Kill Boss 1</Comment>
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>255</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Boss_Obj_2</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="163.4626" Y="363.3315" Z="1.305064" />
        </HotSpots>
        <EntryTarget>
          <int>21350</int>
          <int>19389</int>
        </EntryTarget>
        <IsGrinderNotQuest>true</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.Lua.LuaDoString("local _, _, numCriteria = C_Scenario.GetStepInfo(); if not numCriteria or numCriteria == 0  then completedObj = 'true'; return; end; local critID; _, _, completedObj,_,_,_,_,_,critID = C_Scenario.GetCriteriaInfo(2);", "completedObj").ToLower() == "true");</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>255</MaxLevel>
      <MinLevel>0</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Exit</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
          <Vector3 X="63.91341" Y="36.81126" Z="-4.22751" />
          <Vector3 X="60.11758" Y="30.41714" Z="-1.486041" />
        </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.Expansion01
);</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>
  <Script>
public class MyCustomScript
{
    static MyCustomScript()
    {
        // You can put here code to run when bot start, you can also add methods and classes.
    }
}
</Script>
  <OffMeshConnections />
</EasyQuestProfile>