------------------------------------------------ -- Use food and check for its buff -- JDuarteDJ ------------------------------------------------ function useFood(food, buff) if food == nil then cprintf(cli.yellow,"No food specified. Please use 'UseFood(food[,buffname])'.\n") return false end if buff == nil then buff = food; --Assume both have same name like in mounts end if player:hasBuff(buff) == false and inventory:itemTotalCount(food) > 0 then inventory:useItem(food); end; return true end