$vbulletin->GPC['message'] = preg_replace('/\[1d20\]/i','<img src="images/dices/dice_20_faced_'.mt_rand(1,20).'.jpg" alt="" />',$vbulletin->GPC['message']);