function onUse(cid, item, frompos, item2, topos)
local n = math.random(1,6)
doPlayerSay(cid, getPlayerName(cid) ..' rolled a '..n, TALKTYPE_ORANGE_1)
doTransformItem(item.uid, 5791 + n)
if item.actionid ~= 0 then
doSetItemActionId(item.uid, item.actionid)
end
doSendMagicEffect(frompos, CONST_ME_CRAPS)
return true
end
nazywasz plik dice.lua i wklejasz do folderu data/actions/scripts. Mam nadzieję że pomogłem
Zakładki