• Visit Rebornbuddy
  • question regarding Reborn Buddy and GatherItemBySlot()

    Discussion in 'Community Developer Forum' started by Yasuko, Mar 15, 2014.

    1. Yasuko

      Yasuko Member

      Joined:
      Oct 28, 2010
      Messages:
      314
      Likes Received:
      6
      Trophy Points:
      18
      RESOLVED question regarding Reborn Buddy and GatherItemBySlot()

      I've been messing around with RebornConsole and coming up with some snippets of code that I eventually want to make a plugin for and have a question regarding internal classes and RebornConsole.

      Is it possible to access an internal class through rebornconsole? More specifically.. this is what I'm trying to do

      Code:
       foreach ( var item in ff14bot.Managers.Gathering.GatheringWindow.GatheringWindowItems)
                  {
                      if (item.ItemData.EnglishName == "Lightning Crystal")
                      {
      
                          Log(item.ItemData.EnglishName);
                          Log(item.SlotIndex);
                          ff14bot.Managers.AsmManager.GatherItemBySlot(item.SlotIndex);
                          
                      }
                  }
      Resolved: I was over thinking this completely.

      Code:
          foreach (var windowitem in ff14bot.Managers.Gathering.GatheringWindow.GatheringWindowItems)
                       {
                          if (windowitem.ToString() == "Lightning Shard")
                            {
                               windowitem.GatherItem();
                            }
                      }
      
      This worked.. I failed to see that the first time :(
       
      Last edited: Mar 15, 2014

    Share This Page