Closed Tovar closed 10 years ago
I can't reproduce this.
What you mean when you say "can't reproduce this", this mean you don't know how to do it or you can't test if is real or not?
It means that I don't get any error when I eat a cheese.
Download the real foods.lua from repository https://github.com/otland/forgottenserver/blob/master/data/actions/scripts/other/food.lua
I think the problem is with the "local" declaration of: local foodCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) in global.lua, its outside player.feed function where its used.
this was the problem, closed, thanks guys.
local foodCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT)
When I try to eat a cheese for example, the console show me this error.