<?xml version="1.0" encoding="utf-8"?>
<Profile xmlns="http://tempuri.org/ProfileSchema.xsd" xmlns:xsi="http://tempuri.org/ProfileSchema.xsd">
  <Name>Core</Name>
  <GameParams quest="101758" step="1" act="A3" difficulty="Inferno" resumeFromSave="True" isPrivate="True" numGames="-1" />
  <KillMonsters>True</KillMonsters>
  <PickupLoot>True</PickupLoot>
  <Order>

    <!--New Game Stuck Parameters-->

    <TrinityIf condition="NephalemValorCount() == 0">
      <LogMessage output="*~*~*~*NO NEPH VALOR*~*~*~*? Must of been stuck, now loading Fallen_START_" />
      <TrinityLoadProfile file="Fallen_START_.xml" exit="true" />
    </TrinityIf>

    <TrinityIf condition="not ZetaDia.CurrentWorldId == 119290">
      <UseTownPortal questId="1" />
    </TrinityIf>

    <!--Town Run ~Currently Disabled due to broken code in Trinity-->

    <!--TrinityIf condition="Me.IsInTown">
      <TrinityTownRun questId="101758" stepId="1" />
    </TrinityIf-->

    <!--Off to Core-->

    <While condition="ZetaDia.CurrentWorldId == 172909">
      <LogMessage message="In Town?" />
      <UseWaypoint questId="1" stepId="1" actorId="6442" x="402.5403" y="414.342" z="1.5338" waypointNumber="10" />
      <WaitTimer questId="1" stepId="1" waitTime="1000" />
      <LogMessage message="Fallen Core" />
    </While>

    <!--Move To-->

    <TrinityIf condition="ZetaDia.CurrentWorldId == 119290">
      <TrinityRandomWait min="650" max="800" />
      <LogMessage message="Alright let's head towards Azmodan" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="1135.791" y="740.225" z="0.100" unsafeRandomDistance="5" name="Core 1" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="1063.031" y="707.362" z="0.100" unsafeRandomDistance="5" name="Core 2" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="928.973" y="732.079" z="1.623" unsafeRandomDistance="5" name="Core 3" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="773.256" y="634.876" z="0.100" unsafeRandomDistance="5" name="Core 4" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="734.198" y="545.070" z="0.100" unsafeRandomDistance="5" name="Core 5" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="554.814" y="568.745" z="0.100" unsafeRandomDistance="5" name="Core 6" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="531.046" y="707.412" z="0.622" unsafeRandomDistance="5" name="Core 7" />
      <TrinityMoveTo questId="1" navigation="true" pathPrecision="15" x="325.264" y="725.272" z="0.100" unsafeRandomDistance="5" name="Core 8" />
      <LogMessage message="Should be done about now." />
      <UseTownPortal questId="1" />
    </TrinityIf>

    <!--v^v^v^v^v^v^v-->

    <While condition="ZetaDia.CurrentWorldId == 172909">
      <WaitWhile questId="1" condition="not Me.IsInTown" />
      <TrinityLoadProfile file="Rakkis.xml" exit="false" />
    </While>
  </Order>
</Profile>