Created
March 25, 2014 03:59
-
-
Save pnegri/9755026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onUseChecked( pUser, iUsed ) | |
{ | |
var iDice1 = RandomNumber( 1, 6 ); | |
var iDice2 = RandomNumber( 1, 6 ); | |
var pName = pUser.name; | |
if( iUsed.container != null ) | |
pUser.EmoteMessage( pName+" rolls the dice and gets a "+iDice1+" and a "+iDice2+"." ); | |
else | |
iUsed.TextMessage( pName+" rolls the dice and gets a "+iDice1+" and a "+iDice2+"." ); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment