<action itemid="CAKEID" event="script" value="other/food.lua"/>
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12000 then
[COLOR="Red"] if isKnight(cid) then[/COLOR]
queststatus = getPlayerStorageValue(cid,20040)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Combat Knife.")
doPlayerAddItem(cid,2404,1)
setPlayerStorageValue(cid,20040,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
doPlayerSendTextMessage(cid,22,"You don't have the right vocation.")
end
else
return 0
end
return 1
end
<action uniqueid="12000" event="script" value="combatknife.lua"/>
if isKnight(cid) then
if isSorcerer(cid) then
if isPaladin(cid) then
if isDruid(cid) then
if getPlayerVocation(cid) == X then