Bonjour j'ai voulu ajouter une fonctionne pour mettre au bot de manger du pain mais cela ne fonctionne pas
function eat ()
if character:lifePoints() < 400 then
inventory:useItem(468)
end
et je l'ai appelé dans la fonction move comme cela
{map = "4,-17", figth = true, custom = eat}
function eat ()
if character:lifePoints() < 400 then
inventory:useItem(468)
end
et je l'ai appelé dans la fonction move comme cela
{map = "4,-17", figth = true, custom = eat}