• Visit Rebornbuddy
  • Way to use a Potion from within Orderbot?

    Discussion in 'Other Profiles' started by mistahmikey, Jul 21, 2015.

    1. mistahmikey

      mistahmikey New Member

      Joined:
      Jun 29, 2015
      Messages:
      161
      Likes Received:
      3
      Trophy Points:
      0
      Not sure if this is the right place for this, but I was wondering if there is a way to use a potion (specifically Cordial) from within Orderbot.
       
    2. Azoth

      Azoth Member

      Joined:
      Mar 6, 2014
      Messages:
      470
      Likes Received:
      8
      Trophy Points:
      18
      Would be interested in this as well. It can speed up gathering (esp fishing) considerably, and I have a lot of seals to burn through from fates.
       
    3. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,803
      Likes Received:
      70
      Trophy Points:
      48
      You could try running this in some form or fashion during the profile. I haven't tested it, but I believe it should work when the code is called to run:

      Code:
      <CodeChunk Name="UseCordial">
      	<![CDATA[ 
      		foreach(ff14bot.Managers.BagSlot slot in ff14bot.Managers.InventoryManager.FilledSlots)
      		{
      			if(slot.RawItemId == 6141)
      			{
      				slot.UseItem();
      			}
      		}
      ]]>
      </CodeChunk>
      Or:

      Code:
      <CodeChunk Name="UseHiCordial">
      	<![CDATA[ 
      		foreach(ff14bot.Managers.BagSlot slot in ff14bot.Managers.InventoryManager.FilledSlots)
      		{
      			if(slot.RawItemId == 12669)
      			{
      				slot.UseItem();
      			}
      		}
      ]]>
      </CodeChunk>
      To use it during the profile, use this when you want it to be called (add "Hi" if you want to use Hi-Cordials):

      Code:
      <RunCode Name="UseCordial" />
       

    Share This Page