Odp: Skrypt na kostke
function onUse(cid, item, frompos, item2, topos)
local rand = math.random(5792, 5797)
doSendMagicEffect(cid, frompos, 26)
local number = rand-5791
local name = getPlayerName(cid)
doPlayerSay(cid, name ..' wylosowal'.. number ..'.',16)
doTransformItem(item.uid, rand)
end...