MMOMinion

Full Version: bot doesn't show food in bag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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!