• Visit Rebornbuddy
  • Request - Some help with my crafting profile for Blue Scripts

    Discussion in 'Other Profiles' started by SociallyInept, Dec 22, 2016.

    1. SociallyInept

      SociallyInept New Member

      Joined:
      Nov 16, 2013
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Hello as the title states need some help with this crafting profile for blue scripts. I know there are many on this forum but I cant use them I simply don't have the stats or cp so they never complete not even half way. Just returning after a more then a year long break and trying to play catch up. Heck last time I loaded this bot up it was pretty much just making way-points on the Profile Creator and adding a target for gathering and such.

      I am definitely no coder. Basically just been cutting and pasting things together I've come across like below. And trying to make fairly simple universal templates for myself that i can easily change the information needed like way-points, targets, id's, rotations and such.

      Code:
      <Profile>
        <Name>[BSM] Titanium Nugget</Name>
        <BehaviorDirectory>CustomTags</BehaviorDirectory>
        <Order>
          <While Condition="True">
            <TeleportTo AetheryteId="75" Name="Idyllshire" />
            <MoveTo XYZ="-83.58401, 193.3485, 64.62872" Name="Craft Spot" />
            <RunCode Name="GearSet"/>
             <RunCode Name="Dismount"/>
             <WaitTimer WaitTime="3"/>
              <If Condition="not Core.Player.HasAura(903)">
              <RunCode Name="Collector"/>
              </If>
            <!-- <EatFood ItemId="4721" Name="Bouillabaisse" HqOnly="False" MinDuration="1" /> -->
            <!-- Adjust Recipe ID and HQMats accordingly -->
            <Synthesize RecipeId="2332" MinimumCp="337" HQMats="1,-1,-1" />
            <While Condition="CraftingManager.IsCrafting">
              <CraftActionByName Name="Comfort Zone" />
              <CraftActionByName Name="Inner Quiet" />
              <CraftActionByName Name="Steady Hand II" />
              <CraftActionByName Name="Waste Not" />
              <CraftActionByName Name="Careful Synthesis II" />
              <CraftActionByName Name="Hasty Touch" />
              <CraftActionByName Name="Hasty Touch" />
              <CraftActionByName Name="Hasty Touch" />
            <!-- <RunCode Name="BestBasicTouch" /> -->
            <!-- <RunCode Name="BestBasicTouch" /> -->
            <!-- <RunCode Name="BestStandardTouch" /> -->
            <!-- <RunCode Name="BestBasicTouch" /> -->
              <CraftActionByName Name="Steady Hand II" />
            <!-- <RunCode Name="BestStandardTouch" /> -->
            <!-- <RunCode Name="BestBasicTouch" /> -->
              <CraftActionByName Name="Manipulation" />
              <CraftActionByName Name="Hasty Touch" />
              <CraftActionByName Name="Hasty Touch" />
              <CraftActionByName Name="Standard Touch" />
              <CraftActionByName Name="Great Strides" />
              <CraftActionByName Name="Steady Hand II" />
              <CraftActionByName Name="Innovation" />
              <CraftActionByName Name="Byregot's Blessing" />
              <CraftActionByName Name="Careful Synthesis II" />
              <RunCode name="CSIIAndAcceptCollectable" />
            </While>
          </While>
        </Order>
        <CodeChunks>
          <CodeChunk Name="Dismount">
            <![CDATA[ ff14bot.Managers.Actionmanager.Dismount(); ]]>
          </CodeChunk>
          <CodeChunk Name="GearSet">
            <![CDATA[ ff14bot.Managers.ChatManager.SendChat("/gs change 15"); ]]>
          </CodeChunk>
          <CodeChunk Name="Collector">
            <![CDATA[ if (!Core.Player.HasAura(903)) { if(ff14bot.Managers.Actionmanager.CanCast(4560, null)){ Actionmanager.DoAction(4560, null); } if(ff14bot.Managers.Actionmanager.CanCast(4561, null)){ Actionmanager.DoAction(4561, null); } if(ff14bot.Managers.Actionmanager.CanCast(4562, null)){ Actionmanager.DoAction(4562, null); } if(ff14bot.Managers.Actionmanager.CanCast(4563, null)){ Actionmanager.DoAction(4563, null); } if(ff14bot.Managers.Actionmanager.CanCast(4564, null)){ Actionmanager.DoAction(4564, null); } if(ff14bot.Managers.Actionmanager.CanCast(4565, null)){ Actionmanager.DoAction(4565, null); } if(ff14bot.Managers.Actionmanager.CanCast(4566, null)){ Actionmanager.DoAction(4566, null); } if(ff14bot.Managers.Actionmanager.CanCast(4567, null)){ Actionmanager.DoAction(4567, null); } await Coroutine.Wait(7000, () => Core.Player.HasAura(903));				 } ]]>
          </CodeChunk>
          <CodeChunk Name="BestBasicTouch">
            <![CDATA[
              SpellData data;
              if ((CraftingManager.Condition == CraftingCondition.Good || CraftingManager.Condition == CraftingCondition.Excellent) &&
                Actionmanager.CurrentActions.TryGetValue("Precise Touch", out data) && Actionmanager.CanCast(data, null)) {
                Actionmanager.DoAction("Precise Touch", null);
              } else {
                Actionmanager.DoAction("Basic Touch", null);
              }
              await Coroutine.Wait(10000, () => CraftingManager.AnimationLocked);
              await Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked);
      
              await Coroutine.Sleep(250);
            ]]>
          </CodeChunk>
          <CodeChunk Name="BestStandardTouch">
            <![CDATA[
              SpellData data;
              if ((CraftingManager.Condition == CraftingCondition.Good || CraftingManager.Condition == CraftingCondition.Excellent) &&
                Actionmanager.CurrentActions.TryGetValue("Precise Touch", out data) && Actionmanager.CanCast(data, null)) {
                Actionmanager.DoAction("Precise Touch", null);
              } else {
                Actionmanager.DoAction("Standard Touch", null);
              }
              await Coroutine.Wait(10000, () => CraftingManager.AnimationLocked);
              await Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked);
      
              await Coroutine.Sleep(250);
            ]]>
          </CodeChunk>
          <CodeChunk Name="CSIIAndAcceptCollectable">
            <![CDATA[
              if (await Buddy.Coroutines.Coroutine.Wait(5000, () => ff14bot.Managers.Actionmanager.CanCast(100069, null))) {
                ff14bot.Managers.Actionmanager.DoAction(100069, null);
                await Buddy.Coroutines.Coroutine.Wait(10000, () => CraftingManager.AnimationLocked);
                await Buddy.Coroutines.Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked || ff14bot.RemoteWindows.SelectYesNoItem.IsOpen);
                if (ff14bot.RemoteWindows.SelectYesNoItem.IsOpen) {
                  ff14bot.RemoteWindows.SelectYesNoItem.Yes();
                  await Buddy.Coroutines.Coroutine.Wait(10000, () => !ff14bot.RemoteWindows.SelectYesNoItem.IsOpen);
                  await Buddy.Coroutines.Coroutine.Wait(Timeout.Infinite, () => !CraftingManager.AnimationLocked);
                }
              }
            ]]>
          </CodeChunk>
        </CodeChunks>
      </Profile>
      The main problem I'm having is the code CSIIAndAcceptCollectable doesn't seem to work tried it on dx11 and 9 version it wont accept the collectable after completion. Now I did pick up another AIO gathering profile that does it been using it for fishing and blue tokens. But that script was huge and alot more advanced then i could understand so wasn't able find what i was looking for in there. So any help getting that to work would be appreciated. I've honestly just been setting my mouse up too accept by clicking every couple seconds and leaving the cursor over the button so ya I kinda Jerry-rigged it.

      And I have the TurnInCollectables.xml example from ExBuddy I've been using to help me turn things in when I'm done. I'd like to combine it with the above script or even another cleaner one that is not all chopped upped and pasted together like mine.

      I wouldn't know how to combine these two scripts together though. Heck in the last 10 min I just learned how to cut and past a few code-chunks in and get it to load up without a wall of red text. It seems to be working least gets me there but no mats to craft so haven't fully tested it.

      So all in all just need a completely automated script.
      1.) Craft until I'm almost out of room
      2.) Accepting the collectables
      3.) Go to the vendor turn in collectables
      4.) Buy the Blue Crafter Tokens
      4.) Move back to may craft spot and start crafting again.
      -83.58401, 193.3485, 64.62872 (my craft spot)
      -17.30766, 206.4994, 48.17776 (Vendor location)

      Normally I'd just tough it out and let it be Jerry-rigged like it currently is. But I'm going to be stuck crafting these nuggets for along time since their about all i can make and just barely.

      And sorry for the long post but thanks in advance if someone is willing to help me out.
       

    Share This Page