Code:
function onUse(cid, item, fromPosition, item2, toPosition)
if getCreaturePosition(cid) then
if(getPlayerStorageValue(cid, 69404) == 1) then
doCreatureSay(cid, "You, already have a sadle.", TALKTYPE_ORANGE_1)
end
if(getPlayerStorageValue(cid, 69404) == 0) then
if doPlayerRemoveItem(cid, 5913, 5) == 1 and doPlayerRemoveItem(cid, 2120, 1) == 1 and doPlayerRemoveItem(cid, 2462, 1) == 1 then
SetPlayerStorageValue(cid, 69404, 1)
doPlayerAddItem(cid, 2345, 1)
doCreatureSay(cid, getCreatureName(cid) .. ', you just build a sadle.', TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You don't have the requirement items to build a sadle. You need 5 Brown piece of cloth, a Rope and and a Devil Helmet.", TALKTYPE_ORANGE_1)
end
end
return true
end
end
I don't get any error.