What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Moving to hotspot

Snipi

New Member
Joined
Mar 15, 2014
Messages
21
Reaction score
0
Hi guys,

I have a question about a weird stuff happens in my profile.
There is a parts of the profile :

Code:
<Profile>
<Name>Cluster Farm</Name>
<KillRadius>50</KillRadius>
<Order>
	<If Condition="not IsOnMap(154)">
		<TeleportTo Name="Revenant's Toll" AetheryteId="24" />
	</If>
	
	<MoveTo XYZ="413.0175, -3.785216, -480.1648" Name="Safe Spot"/>
	
	<While Condition ="True">
	
		<If Condition="IsTimeBetween(23,1)">
			<WaitWhile Condition ="IsTimeBetween(23,1)" />
		</If>
		
		<If Condition="IsTimeBetween(1,3)">
			
			<If Condition="Core.Me.CurrentJob != ClassJobType.Botanist">
				<RunCode Name="BTN"/>
			</If>
			
			<RunCode Name="Dismount" />
			<RunCode Name="UseStealth" />
			<RunCode Name="DisableMount" />
			
			<Gather Loops="1">
				<GatherObject>Unspoiled Mature Tree</GatherObject>
				<HotSpots>
					<Hotspot XYZ="504.8512, -5.484191, -407.6007" Radius="1000"/>
				</HotSpots>
				<Slot>4</Slot>
				<GatheringSkillOrder>
					<GatheringSkill SpellName="Blessed Harvest II" TimesToCast="1" />
					<GatheringSkill SpellName="Field Mastery" TimesToCast="1" />
				</GatheringSkillOrder>
			</Gather>
			
			<If Condition="IsTimeBetween(1,5)">
				<WaitWhile Condition ="IsTimeBetween(1,5)" />
			</If>
		</If>
		
		<If Condition="IsTimeBetween(5,7)">
			
			<If Condition="Core.Me.CurrentJob != ClassJobType.Botanist">
				<RunCode Name="BTN"/>
			</If>
			
			<RunCode Name="Dismount" />
			<RunCode Name="UseStealth" />
			<RunCode Name="DisableMount" />
			
			<Gather Loops="1">
				<GatherObject>Unspoiled Mature Tree</GatherObject>
				<HotSpots>
					<Hotspot XYZ="504.8512, -5.484191, -407.6007" Radius="1000"/>
				</HotSpots>
				<Slot>4</Slot>
				<GatheringSkillOrder>
					<GatheringSkill SpellName="Blessed Harvest II" TimesToCast="1" />
					<GatheringSkill SpellName="Field Mastery" TimesToCast="1" />
				</GatheringSkillOrder>
			</Gather>
			
			<If Condition="IsTimeBetween(5,23)">
				<WaitWhile Condition ="IsTimeBetween(5,23)" />
			</If>
		</If>
</While>
</Order>
<CodeChunks>	
	<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);
				await Buddy.Coroutines.Coroutine.Sleep(500);
			}
		]]>
	</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();
			await Buddy.Coroutines.Coroutine.Sleep(3000);
		]]>
	</CodeChunk>
	<CodeChunk Name="MIN">
		<![CDATA[		
			ff14bot.Managers.ChatManager.SendChat("/gs change 1");
			await Buddy.Coroutines.Coroutine.Sleep(3000);
		]]>
	</CodeChunk>
	<CodeChunk Name="BTN">
		<![CDATA[				
			ff14bot.Managers.ChatManager.SendChat("/gs change 2");
			await Buddy.Coroutines.Coroutine.Sleep(3000);
		]]>
	</CodeChunk>
</CodeChunks>	
</Profile>

The problem is, i try to dont make the bot move to the hotspot after each gathering to act more as human.

But with this profile, when i start it, he go to my safe spot ( Saint Coinach's Find ) he wait for the right hour then swap to BTN with stealth/dismount/disablemount, go to the BTN hot spot gather my 1st cluster spot AND dont move after gathering ( that's what i want ).

When the second pop he does not pass through the hotspot ( what i want too ) and picks up cluster directly BUT after this one he move to the hotspot THEN execute my <WaitWhile Condition ="IsTimeBetween(5,23)" />...

I dont understand why, if someone can explain this to me :'(

Put differently, i dont want the bot move to hotspot after each gathering.

Btw, thanks Sodimm for the base profile :o
 
My guess is the unspoiled node in Mor Dhona spawn ~5:02am
your code is executed right at 5am and you only asked it to loop once so it finishes and execute next section.
 
I have try your guess but this time ( as miner ) he go to my safe spot swap to miner/stealth/dismount/disablemount gather THEN move to my hot spot @_@

I have changed all timer to timer + 1 hour to avoid the 5am->pop at 5.02am
 
After some test it seems to be random if the bot comeback to the hotspot or not... :/
 
Back
Top