• Visit Rebornbuddy
  • Unspoil nodes need lil help

    Discussion in 'Community Developer Forum' started by ajerul, Mar 10, 2015.

    1. ajerul

      ajerul New Member

      Joined:
      Mar 10, 2015
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      hello, im kind a new to this whole coding.
      i wrote, edited and referred to previous work by Zamphire

      Code:
      <Profile>
      	<Name>miner test</Name>
      	<KillRadius>50</KillRadius>
      	<Order>
      		<While Condition="True">	
      			<!-- Idle Start -->
      			<If Condition="IsTimeBetween(23,1)">
      				<If Condition="not IsOnMap(129)">
      					<TeleportTo Name="Limsa Lominsa" AetheryteId="8" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition ="IsTimeBetween(23,1)" />
      			</If>
      			<!-- Darksteel Ore -->
      			<If Condition="IsTimeBetween(1,4)">
      				<If Condition="not IsOnMap(155)">
      					<TeleportTo Name="Camp Dragonhead" AetheryteId="23" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition="Core.Player.CurrentGP &lt; 600" />
      				<Gather Loops='1'>
      					<GatherObject>Unspoiled Mineral Deposit</GatherObject>
      					<HotSpots>
      						<Hotspot Z="-71.25455" Y="295.1528" X="274.5798" Radius="500"/>
      					</HotSpots>
      					<Slot>2</Slot> <!-- Darksteel Ore -->
      					<GatheringSkillOrder>
      						<GatheringSkill SpellName="Toil of the Mountaineer" TimesToCast="1" />
      						<GatheringSkill SpellName="Unearth II" TimesToCast="1" />
      						<GatheringSkill SpellName="Deep Vigor" TimesToCast="1" />
      					</GatheringSkillOrder>
      				</Gather>
      				<TeleportTo Name="Horizon" AetheryteId="17" />
      				<WaitWhile Condition ="IsTimeBetween(1,5)" />
      			</If>
      			<!-- Water cluster -->
      			<If Condition="IsTimeBetween(5,7)">
      				<If Condition="not IsOnMap(140)">
      					<TeleportTo Name="Horizon" AetheryteId="17" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition="Core.Player.CurrentGP &lt; 600" />
      				<Gather Loops='1'>
      					<GatherObject>Unspoiled Rocky Outcrop</GatherObject>
      					<HotSpots>
      						<Hotspot Z="351.9217" Y="41.43418" X="-150.1802" Radius="500"/>
      					</HotSpots>
      					<ItemNames>
      						<ItemName>Grade 3 Thanalan Topsoil</ItemName>
      						<ItemName>Water Cluster</ItemName>
      					</ItemNames>
      					<GatheringSkillOrder>
      						<GatheringSkill SpellName="Toil of the Mountaineer" TimesToCast="1" />
      						<GatheringSkill SpellName="Sharp Vision" TimesToCast="1" />
      						<GatheringSkill SpellName="Deep Vigor" TimesToCast="1" />
      					</GatheringSkillOrder>
      				</Gather>
      				<TeleportTo Name="Camp Tranquil" AetheryteId="6" />
      				<WaitWhile Condition ="IsTimeBetween(5,7)" />
      			</If>
      			<!-- Umbral Rock -->
      			<If Condition="IsTimeBetween(7,9)">
      				<If Condition="not IsOnMap(153)">
      					<TeleportTo Name="Camp Tranquil" AetheryteId="6" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition="Core.Player.CurrentGP &lt; 600" />
      				<Gather Loops='1'>
      					<GatherObject>Unspoiled Rocky Outcrop</GatherObject>
      					<HotSpots>
      						<Hotspot Z="521.4088" Y="2.006799" X="-238.5004" Radius="500"/>
      					</HotSpots>
      					<Slot>6</Slot> <!-- Umbral Rock -->
      					<GatheringSkillOrder>
      						<GatheringSkill SpellName="King's Yield II" TimesToCast="1" />
      						<GatheringSkill SpellName="Sharp Vision" TimesToCast="1" />
      					</GatheringSkillOrder>
      				</Gather>
      				<TeleportTo Name="Camp Drybone" AetheryteId="18" />
      				<WaitWhile Condition ="IsTimeBetween(7,9)" />
      			</If>		
      			<!-- Greg Worm & Gold Ore -->
      			<If Condition="IsTimeBetween(9,12)">
      				<If Condition="not IsOnMap(145)">
      					<TeleportTo Name="Camp Drybone" AetheryteId="18" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition="Core.Player.CurrentGP &lt; 600" />
      				<Gather Loops='1'>
      					<GatherObject>Unspoiled Mineral Deposit</GatherObject>
      					<HotSpots>
      						<Hotspot Z="-11.36177" Y="10.22671" X="306.1508" Radius="500"/>
      					</HotSpots>
      					<ItemNames>
      						<ItemName>Gregarious Worm</ItemName>
      						<ItemName>Gold Ore</ItemName>
      					</ItemNames>
      					<GatheringSkillOrder>
      						<GatheringSkill SpellName="Toil of the Mountaineer" TimesToCast="1" />
      						<GatheringSkill SpellName="Unearth II" TimesToCast="1" />
      						<GatheringSkill SpellName="Deep Vigor" TimesToCast="1" />
      					</GatheringSkillOrder>
      				</Gather>
      				<TeleportTo Name="Summerford Farms" AetheryteId="52" />
      				<WaitWhile Condition ="IsTimeBetween(9,19)" />
      			</If>
      			<!-- Fire Cluster -->
      			<If Condition="IsTimeBetween(19,21)">
      				<If Condition="not IsOnMap(134)">
      					<TeleportTo Name="Summerford Farms" AetheryteId="52" />
      				</If>
      				<If Condition="Core.Me.CurrentJob != ClassJobType.Miner">
      					<RunCode Name="MIN"/>
      					<WaitTimer WaitTime="3"/>
      				</If>
      				<WaitWhile Condition="Core.Player.CurrentGP &lt; 450" />
      				<Gather Loops='1'>
      					<GatherObject>Unspoiled Rocky Outcrop</GatherObject>
      					<HotSpots>
      						<Hotspot Z="263.0089" Y="61.53287" X="176.5952" Radius="500"/>
      					</HotSpots>
      					<Slot>2</Slot>
      					<GatheringSkillOrder>
      						<GatheringSkill SpellName="Nald'thal's Ward" TimesToCast="1" />
      						<GatheringSkill SpellName="Sharp Vision" TimesToCast="1" />
      					</GatheringSkillOrder>
      				</Gather>
      				<TeleportTo Name="Limsa Lominsa" AetheryteId="8" />
      				<WaitWhile Condition ="IsTimeBetween(19,23)" />
      			</If>
      		</While>
      	</Order>
      	
      	<CodeChunks>
      		<CodeChunk Name="MIN">
      			<![CDATA[ ff14bot.Managers.ChatManager.SendChat("/gs change 15");
      			]]>
      		</CodeChunk>
      		<CodeChunk Name="BTN">
      			<![CDATA[ ff14bot.Managers.ChatManager.SendChat("/gs change 16");
      			]]>
      		</CodeChunk>
      		<CodeChunk Name="UseStealth">
      			<![CDATA[ SpellData data;
      			if (!Core.Me.HasAura("Stealth") && Actionmanager.CurrentActions.TryGetValue("Stealth", out data) && Actionmanager.CanCast(data, Core.Me)) Actionmanager.DoAction("Stealth", Core.Me);
      			]]>
      		</CodeChunk>		
      		<CodeChunk Name="DisableMount">
      			<![CDATA[ ff14bot.Settings.CharacterSettings.Instance.UseMount = false;
      			]]>
      		</CodeChunk>
      		<CodeChunk Name="EnableMount">
      			<![CDATA[ ff14bot.Settings.CharacterSettings.Instance.UseMount = true;
      			]]>
      		</CodeChunk>
      		<CodeChunk Name="Dismount">
      			<![CDATA[ ff14bot.Managers.Actionmanager.Dismount();
      			]]>
      		</CodeChunk>
      	</CodeChunks>	
      </Profile>
      
      the bot run fine until the last node at summerford farm. my character moves to the node, interact with it but do nothing until the node disappeared then my character teleports to Limsa.

      your help, advise or any fine tuning to the code are greatly appreciated, tq.

      edit: code were edited. suggestions are greatly appreciated
       
      Last edited: Mar 10, 2015
    2. Grimmjow

      Grimmjow New Member

      Joined:
      Nov 11, 2013
      Messages:
      118
      Likes Received:
      1
      Trophy Points:
      0
      <GatheringSkill SpellName="Nald'thal's Ward" TimesToCast="1" />

      remove that line and try it out. you can't cast ward until you see the clusters so it might be trying and failing there.
       

    Share This Page