Dexftw
Total Boss
- Joined
- Jan 30, 2011
- Messages
- 317
- Reaction score
- 8
[C]: in function 'getCreatureMaxMana'
[03/02/2011 16:23:09] data/actions/scripts/Specialfood/blessedsteak.lua:3: in function <data/actions/scripts/Specialfood/blessedsteak.lua:1>
Anyone know why that function is giving an error? tfs 0.2.10 fyi
[03/02/2011 16:23:09] data/actions/scripts/Specialfood/blessedsteak.lua:3: in function <data/actions/scripts/Specialfood/blessedsteak.lua:1>
Code:
function onUse(cid,item, fromPosition, itemEx, toPosition)
if item.itemid == 9999 then
doCreatureAddMana(cid, getCreatureMaxMana(cid))
doPlayerSendTextMessage(cid,198,"your mana has been restored completely!")
doTransformItem(item.uid,2035)
elseif item.itemid == 2035 then
doPlayerSendCancel(cid,"there is no more food left on this dish")
end
return TRUE
end