u are wrong this is the script
function onUse(cid, item, frompos, item2, topos)
local hp = 200
if item.uid == 2222 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Elekid.")
local ball1 = doPlayerAddItem(cid,2527,1)
doPlayerAddItem(cid,2160,1)
doPlayerAddItem(cid,2149,50)
doItemSetAttribute(ball1, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 6666 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Magby.")
doPlayerAddItem(cid,2149,50)
doPlayerAddItem(cid,2160,1)
local ball2 = doPlayerAddItem(cid,2526,1)
doItemSetAttribute(ball2, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 7777 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Squirtle.")
local ball3 = doPlayerAddItem(cid,2522,1)
doPlayerAddItem(cid,2160,1)
doPlayerAddItem(cid,2149,50)
doItemSetAttribute(ball3, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end