I need help with this script, in the part of the function botMagic (params) I tried to put this line but it didn't work.
several errors appear when the character logs out.
![1588360928090.png]()
Event error in console
Lua:
if not isPlayer (cid) then
return true
end

Lua:
local eat = {}
local heal = {}
local magic = {}
local foods = {
{8, "Crunch.", 2362},
{15, "Munch.", 2666},
{12, "Munch.", 2667},
{10, "Mmmm.", 2668},
{17, "Munch."...