<?xml version="1.0"?>
<!--
#########################################################
# Profile: Gridania Leve Quests #
#########################################################
# Author: bdc #
#########################################################
# Version: 1.0.0 #
#########################################################
# Required Level: none #
#########################################################
# Required : #
# Only works Between Gontrant and Maisenta #
# U can change the LeveId number and the ItemNumber #
# in the code chunk to make it work for your desired #
# leve remove the repeatable if it is only 1 complete #
#########################################################
-->
<!-- User Configuration -->
<!DOCTYPE Profile [
<!ENTITY LeveIdNumber "167"> <!-- Id can be found on
http://xivdb.com in the url like
http://xivdb.com/?leve/59/Ceremonial-Spears -->
]>
<!-- End User Configuration -->
<Profile>
<Name>Leve Heart Maul</Name>
<BehaviorDirectory>Quest Behaviors</BehaviorDirectory>
<KillRadius>90</KillRadius>
<Order>
<While Condition= "HasAtLeast(2537,1)">
<If Condition="not IsOnMap(129)">
<If Condition="Managers.WorldManager.HasAetheryteId(8)">
<TeleportTo Name="Limsa Lominsa Lower Decks" AetheryteId="8" />
</If>
<If Condition="not Managers.WorldManager.HasAetheryteId(8)">
<Travel To="129" />
</If>
</If>
<NoCombatMoveTo Name="Aetheryte" XYZ="-88,19,0.37" />
<RunCode Name="TeleportToAftcastle " />
<NoCombatMoveTo Name="T'Mokkri" XYZ="-9.463,40,-10.7917" />
<PickupLeve LeveId= "167" NpcId= "1000970" LeveType= "Tradecraft" XYZ="-9.463,40,-10.7917" />
<TeleportTo Name="Quarrymill" AetheryteId="5" />
<NoCombatMoveTo Name="1001220" XYZ="167.3222,8.924738,-47.3231" />
<RunCode Name="TurnInArmoires " />
</While>
</Order>
<CodeChunks>
<CodeChunk Name="TurnInArmoires">
<![CDATA[
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.Managers.GameObjectManager.GetObjectByNPCId(1001220).Interact();
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.RemoteWindows.SelectIconString.ClickSlot(0);
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.RemoteWindows.Talk.Next();
await Buddy.Coroutines.Coroutine.Sleep(1000);
var lines = ff14bot.Managers.InventoryManager.FilledSlots;
foreach(var item in lines){
if (item.TrueItemId == 2537){ item.Handover();}
}
await Buddy.Coroutines.Coroutine.Sleep(3000);
ff14bot.RemoteWindows.Request.HandOver();
await Buddy.Coroutines.Coroutine.Sleep(3000);
ff14bot.RemoteWindows.Talk.Next();
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.RemoteWindows.JournalResult.Complete();
]]>
</CodeChunk>
<CodeChunk Name="RepeatableTurnIn">
<![CDATA[
ff14bot.RemoteWindows.Talk.Next();
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.RemoteWindows.SelectString.ClickSlot(0);
await Buddy.Coroutines.Coroutine.Sleep(1000);
var lines = ff14bot.Managers.InventoryManager.FilledSlots;
foreach(var item in lines){
if (item.TrueItemId == 2537){ item.Handover();}
}
await Buddy.Coroutines.Coroutine.Sleep(3000);
ff14bot.RemoteWindows.Request.HandOver();
await Buddy.Coroutines.Coroutine.Sleep(3000);
ff14bot.RemoteWindows.Talk.Next();
await Buddy.Coroutines.Coroutine.Sleep(1000);
ff14bot.RemoteWindows.JournalResult.Complete();
await Buddy.Coroutines.Coroutine.Sleep(10000);
]]>
</CodeChunk>
<CodeChunk Name="TeleportToAftcastle">
<![CDATA[
await Buddy.Coroutines.Coroutine.Sleep(500);
ff14bot.Managers.GameObjectManager.GetObjectByNPCId(8).Interact();
await Buddy.Coroutines.Coroutine.Sleep(1000);
if (ff14bot.RemoteWindows.SelectString.IsOpen)
ff14bot.RemoteWindows.SelectString.ClickSlot(0);
await Buddy.Coroutines.Coroutine.Sleep(1000);
if (ff14bot.RemoteWindows.SelectString.IsOpen)
ff14bot.RemoteWindows.SelectString.ClickSlot(0);
await Buddy.Coroutines.Coroutine.Sleep(5000);
]]>
</CodeChunk>
</CodeChunks>
</Profile>