01-02-2016, 05:52 AM
(This post was last modified: 01-02-2016, 05:57 AM by christallire.)
Code:
elseif (activity == "eat") then
local food = Inventory:Get(e_precraftbuff.id)
if (food) then
cd("[PreCraftBuff]: Attempting to eat.",3)
food:Use()
ml_task_hub:CurrentTask():SetDelay(3000)
end
I needed this desperately so i debugged.
local food = Inventory:Get(e_precraftbuff.id)
e_precraftbuff.id <- 10004047 => WONT RETURN ITEM
e_precraftbuff.id <- 10004047%10000 => RETURNS ITEM
food:Use if has item => Game prints Couldn't find item.
best guess: hq related, core minion(inventory and the way treating hq items has changed) problem. couldn't fix it via lua scripts..