TFS 1.1 Dice Code is the following.
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local position = item:getPosition()
local value = math.random(1, 6)
local isInGhostMode = player:isInGhostMode()
position:sendMagicEffect(CONST_ME_CRAPS, isInGhostMode...