MMOMinion
bot doesn't show food in bag - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: Support - English, Deutsch, 中文 (https://www.mmominion.com/forumdisplay.php?fid=92)
+---- Forum: English Support & Questions (https://www.mmominion.com/forumdisplay.php?fid=93)
+---- Thread: bot doesn't show food in bag (/showthread.php?tid=18042)



bot doesn't show food in bag - vegetaaaa - 02-03-2017

hello i'm crafting and need to use food for cp and bot doesn't recognize any food in bag ?

before it was working fine it show food no it doesn't any soultion
SS below

http://i.imgur.com/3TZwrDrl.jpg


RE: bot doesn't show food in bag - tadeus - 02-06-2017

Modify ffxiv.lua.

Replace the function ffxivminion.UpdateFoodOptions() with this code:

Code:
function ffxivminion.UpdateFoodOptions()
  
  local foodlistHQ = "None"
  local foodlist = "None"
  for x = 0,3 do
    local inv = Inventory("type="..tostring(x))
    if ( inv ) then
      for i,item in pairs(inv) do
        if (item.class == 5) then
          if (toboolean(item.IsHQ)) then
            if (ffxivminion.foodsHQ[item.name] ~= item.hqid) then
              ffxivminion.foodsHQ[item.name] = item.hqid
            end
            foodlistHQ = foodlistHQ..","..item.name
          else
            if (ffxivminion.foods[item.name] ~= item.hqid) then
              ffxivminion.foods[item.name] = item.hqid
            end
            foodlist = foodlist..","..item.name
          end
        end
      end
    end
  end
  
  gFood_listitems = foodlist
  gFoodHQ_listitems = foodlistHQ
  
  if (ffxivminion.foodsHQ[gFoodHQ] == nil) then
    gFoodHQ = "None"
    SafeSetVar("gFoodHQ",gFoodHQ)
  end
  if (ffxivminion.foods[gFood] == nil) then
    gFood = "None"
    SafeSetVar("gFood",gFood)
  end
  
  GUI_RefreshWindow(ffxivminion.Windows.Main.Name)
end


The next time you start minionapp and it does an update check, it will want to replace ffxiv.lua since you've changed it.  You can update the file then reapply the change or ignore the update, your choice.

Cheers!