otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

Food BUG #598

Closed Tovar closed 10 years ago

Tovar commented 10 years ago

image

When I try to eat a cheese for example, the console show me this error.

marksamman commented 10 years ago

I can't reproduce this.

Tovar commented 10 years ago

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?

marksamman commented 10 years ago

It means that I don't get any error when I eat a cheese.

ADCDS commented 10 years ago

Download the real foods.lua from repository https://github.com/otland/forgottenserver/blob/master/data/actions/scripts/other/food.lua

armadaazteca commented 10 years ago

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.

Tovar commented 10 years ago

this was the problem, closed, thanks guys.

local foodCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT)