Witam, czy ktoś może mi poprawić ten skrypt, tak aby można było zdobyć losowo przedmiot?

Kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local valakas = {"6132", "7526", "6500", "7378", "5791", "2160"} 
local szansa1 = math.random(1, 6)
queststatus = getPlayerStorageValue(cid,3261)
   		if queststatus == -1 then
if valakas[szansa1] == "6132" then
  doPlayerSendTextMessage(cid,22,"You have found a Soft Boots.")
  doPlayerAddItem(cid,6132,1)
  setPlayerStorageValue(cid,3261,1)
elseif valakas[szansa1] == "7526" then 
  doPlayerSendTextMessage(cid,22,"You have found a 10 Ancient Potion.")
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  doPlayerAddItem(cid,7526,1)
  setPlayerStorageValue(cid,3261,1)
elseif valakas[szansa1] == 6500 then 
  doPlayerSendTextMessage(cid,22,"You have found a 500 Demonic Essence.")
  doPlayerAddItem(cid,6500,100)
  doPlayerAddItem(cid,6500,100)
  doPlayerAddItem(cid,6500,100)
  doPlayerAddItem(cid,6500,100)
  doPlayerAddItem(cid,6500,100)
  setPlayerStorageValue(cid,3261,1)
elseif valakas[szansa1] == "7378" then 
  doPlayerSendTextMessage(cid,22,"You have found a Demon Backpack.")
  doPlayerAddItem(cid,7378,1)
  setPlayerStorageValue(cid,3261,1)
elseif valakas[szansa1] == "5791" then 
  doPlayerSendTextMessage(cid,22,"You have found a Stuffed Dragon.")
  doPlayerAddItem(cid,5791,1)
  setPlayerStorageValue(cid,3261,1)
elseif valakas[szansa1] == "2160" then 
  doPlayerSendTextMessage(cid,22,"You have found a 500 Crystal Coins.")
  doPlayerAddItem(cid,2160,100)
  doPlayerAddItem(cid,2160,100)
  doPlayerAddItem(cid,2160,100)
  doPlayerAddItem(cid,2160,100)
  doPlayerAddItem(cid,2160, 100)
  setPlayerStorageValue(cid,3261,1)
	end
   		else

   			doPlayerSendTextMessage(cid,22,"It is empty.")
	end

   	return 1
end
Z góry dzięki.