DiceRoll
From CLUMP
This macro auto-equips a pouch of dice, rolls it and then re-equips your prior left hand item. Use with XdXX, where X is the number of dice, and XX is the number of sides on the dice. So, /roll 2d10 would roll 2 ten-sided dice. The die denominations are 5 six-sided dice. 2 each of the following: d4, d8, d10, d12, d20.
The pouch of dice seller, Zonne, is in Bumgals hut east of the Fountain.
//==================roll macro=========================
// type "/roll <number of dice>d<size of dice>" to use
"/roll"
{
if rollInProgress == 1
goto end
else
set rollInProgress 1
set litem @my.left_item
if @my.left_item != "pouch of dice"
"/equip pouchofdice\r"
end if
pause 1
"/useitem left " @text "\r"
pause 3
if litem != "pouch of dice"
"/equip " litem "\r"
end if
set rollInProgress 0
end if
label end
}