I created a new Char, was to tenar to make quest and I appeared that I ja had made.
Script:
Script:
PHP:
--Random_Weapon_Quest
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5008 then
queststatus = getPlayerStorageValue(cid,5008)
if queststatus == 1 then
ran = math.random(1, 3)
if ran == 1 then
doPlayerAddItem(cid, 2376, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(2376) .. '.')
elseif ran == 2 then
doPlayerAddItem(cid, 2382, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(2382) .. '.')
elseif ran == 3 then
doPlayerAddItem(cid, 2386, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemName(2386) .. '.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
end
end