• Visit Rebornbuddy
  • CraftActionByName Tag

    Discussion in 'Plugins' started by iyake, Jan 18, 2015.

    1. iyake

      iyake Member

      Joined:
      Oct 19, 2014
      Messages:
      143
      Likes Received:
      5
      Trophy Points:
      18
      Here's something I threw together so I wouldn't have to write different profiles for each crafting class.

      Only takes English names.

      View attachment CraftActionByNameTag.cs

      Setup:

      1. Create a directory in the same location as your profile. Name it whatever you want, but I'll be using CustomTags
      2. In your profile, add the following before your <Order> tag. Replace "CustomTags" with whatever you named your directory in step 1.
        Code:
        <BehaviorDirectory>CustomTags</BehaviorDirectory>
      3. Drop CraftByNameTag.cs into the directory you created in step 1.

      Now in your profile, you can use <CraftActionByName Name="Basic Touch" /> where you would use <CraftAction ActionId="100002" />. The former will work under any class, the latter only as a carpenter.

      Example profile - my profile for HQ Spruce Lumber.

      Code:
      <?xml version="1.0" encoding="UTF-8"?>
      <Profile>
          <Name>2star 40durability</Name>
          <Settings>
              <NodeDistance>6</NodeDistance>
              <ArcDistance>6</ArcDistance>
              <Strictness>10</Strictness>
          </Settings>
          <BehaviorDirectory>../Behaviors</BehaviorDirectory>
          <Order>
              <While Condition="Core.Player.MaxCP &gt;= 353">
                  <If Condition="Core.Player.CurrentJob == ClassJobType.Carpenter"><Synthesize RecipeId="1526"/></If> <!-- Spruce Lumber -->
                  <If Condition="Core.Player.CurrentJob == ClassJobType.Leatherworker"><Synthesize RecipeId="1305"/></If> <!-- Hippogryph Leather -->
                  <If Condition="Core.Player.CurrentJob == ClassJobType.Weaver"><Synthesize RecipeId="1386"/></If> <!-- Twinthread -->
                  <If Condition="Core.Player.CurrentJob == ClassJobType.Goldsmith"><Synthesize RecipeId="1471"/></If> <!-- Rose Gold Nugget -->
                  <If Condition="Core.Player.CurrentJob == ClassJobType.Blacksmith"><Synthesize RecipeId="1207"/></If> <!-- Darksteel Nugget -->
                  <CraftActionByName Name="Comfort Zone" />
                  <CraftActionByName Name="Inner Quiet" />
                  <CraftActionByName Name="Steady Hand II" />
                  <CraftActionByName Name="Basic Touch" />
                  <CraftActionByName Name="Basic Touch" />
                  <CraftActionByName Name="Basic Touch" />
                  <CraftActionByName Name="Master's Mend" />
                  <CraftActionByName Name="Basic Touch" />
                  <CraftActionByName Name="Steady Hand" />
                  <CraftActionByName Name="Ingenuity II" />
                  <CraftActionByName Name="Standard Touch" />
                  <CraftActionByName Name="Great Strides" />
                  <If Condition="CraftingManager.Condition != CraftingCondition.Excellent">
                      <CraftActionByName Name="Innovation" />
                  </If>
                  <CraftActionByName Name="Byregot's Blessing" />
                  <CraftActionByName Name="Careful Synthesis II" />
              </While>
          </Order>
      </Profile>
      
       
      Last edited: Jan 23, 2015
      parrot likes this.
    2. jordie49221

      jordie49221 New Member

      Joined:
      Jan 9, 2015
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      how do I use this?
       
    3. iyake

      iyake Member

      Joined:
      Oct 19, 2014
      Messages:
      143
      Likes Received:
      5
      Trophy Points:
      18
      Added some instructions.
       
    4. Buddernutz

      Buddernutz New Member

      Joined:
      Sep 28, 2011
      Messages:
      197
      Likes Received:
      0
      Trophy Points:
      0
      what should i use to open/edit .cs files?
       
    5. Yasuko

      Yasuko Member

      Joined:
      Oct 28, 2010
      Messages:
      314
      Likes Received:
      6
      Trophy Points:
      18
    6. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      644
      Likes Received:
      18
      Trophy Points:
      18
    7. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      i strongly suggest you get a free copy of resharper to go with Visual Studio

      but if you just want to make basic edits, notepad op
       
    8. bobbyx

      bobbyx Member

      Joined:
      Sep 12, 2014
      Messages:
      72
      Likes Received:
      5
      Trophy Points:
      6
      works for me so far. great work!!

      PS. can u add a Hasty touch in the name list?
       
    9. tongcy

      tongcy New Member

      Joined:
      Sep 15, 2014
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Can you add another example of a different job so that we can compare and try to create profiles accordingly?
      BTW, how do we know the synthesize recipeID?
       
    10. Yasuko

      Yasuko Member

      Joined:
      Oct 28, 2010
      Messages:
      314
      Likes Received:
      6
      Trophy Points:
      18
      Final Fantasy XIV : A Realm Reborn (FFXIV ARR) Database1526/Spruce-Lumber

      The 1526 is your recipe ID. Another example really doesnt need to be provided with this.. All you need to do is get the recipeID you want to craft.. and use the abilities that you have open for that crafting class like he uses in the first example.. The only thing with this is that you do not have to specify the actionID for each ability like you would normally have to do... Which makes it to where you can have a default profile for example 3-star 80 dura HQ recipes to use on any crafting class, without having to have 10 or so different profiles.. one for each.
       
    11. iyake

      iyake Member

      Joined:
      Oct 19, 2014
      Messages:
      143
      Likes Received:
      5
      Trophy Points:
      18
      I haven't actually gotten around to writing other profiles yet. I've edited original post to my 2star 40durability that now shows how I'm handling different jobs with the same profile.
       
    12. Buddernutz

      Buddernutz New Member

      Joined:
      Sep 28, 2011
      Messages:
      197
      Likes Received:
      0
      Trophy Points:
      0
      i use notepad++ and i guess i need to just associate the file extension then lol thanks folks!
       
    13. ethan enzo

      ethan enzo New Member

      Joined:
      Sep 14, 2015
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      0
    14. tishat

      tishat Member

      Joined:
      May 29, 2015
      Messages:
      735
      Likes Received:
      7
      Trophy Points:
      18

    Share This Page