Lava Titan
Developer
I made this script but i cant find whats the problem with it cuz it isnt working...
It should be like:
Can anyone fix the problem?
You will be rewarded with rep ofc =D
Thanks if you helped!
It should be like:
Required storageid to use the fish: 10223
After using the fish the player would get itemid: 2196
After someone use the fish he wouldnt be able to use other.
LUA:
local storage = 10223
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) ~= 1 then
doPlayerAddItem(cid, 2196, 1)
doCreatureSay(cid, "You try to eat the fish.-WTF?!-It was turned into a pair of boots!" ,19)
setPlayerStorageValue(cid, 10224) then
else
doCreatureSay(cid, "You already used this fish!" ,19)
end
return doRemoveItem(item.uid)
end
Can anyone fix the problem?
You will be rewarded with rep ofc =D
Thanks if you helped!