<action itemid="11130" event="script" value=" location and name of the lua file "/>
function onUse(cid, item, itemEx)
if(getPlayerFood(cid) + 18) then
doPlayerSendCancel(cid, "You are full.")
return true
doPlayerFeed(cid, 18)
doCreatureSay(cid, "Yummie.", TALKTYPE_MONSTER)
return true
end
[22/09/2013 00:24:47] [Error - LuaScriptInterface::loadFile] data/actions/scripts/ForeverFood.lua:6: 'end' expected (to close 'if' at line 2) near 'doPlayerFeed'
[22/09/2013 00:24:47] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/ForeverFood.lua)
[22/09/2013 00:24:47] data/actions/scripts/ForeverFood.lua:6: 'end' expected (to close 'if' at line 2) near 'doPlayerFeed'
function onUse(cid, item, itemEx)
if(getPlayerFood(cid) + 18) then
return doPlayerSendCancel(cid, "You are full.")
end
doPlayerFeed(cid, 18)
doCreatureSay(cid, "Yummie.", TALKTYPE_MONSTER)
return true
end
function onUse(cid, item, itemEx)
if(getPlayerFood(cid) + 360) then
return doPlayerSendCancel(cid, "You are full.")
end
doPlayerFeed(cid, 18)
doCreatureSay(cid, "Yummie.", TALKTYPE_MONSTER)
return true
end
function onUse(cid, item, itemEx)
if getPlayerFood(cid) + 15 >= 400 then
return doPlayerSendCancel(cid, "You are full.")
end
doPlayerFeed(cid, 60)
doCreatureSay(cid, "Yummie.", TALKTYPE_MONSTER)
return true
end