Paste #28322: Untitled Paste

Date: 2016/01/12 11:03:51 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Dice Roll Command: 
  Type: World 
  Events: 
    On DiceRoll Command: 
      - take money quantity:1000 
      - narrate "<&a>$1,000 has been deducted from your account." 
      - narrate "<&6>Rolling Dice!" 
      - run RollDice delay:2s 
      - determine passively fulfilled 



RollDice: 
  Type: Task 
  Script: 
      - flag diceNum:<util.random.int[1].to[50]> 
      - if <player.flag[diceNum]> == 50 { 
        - announce "<&2><player.name><&6> just rolled the<&l> GRAND PRIZE: <&2><&l>6x Creeper Eggs!" 
        - narrate "<&6>You rolled <&l>GRAND PRIZE! You win!" 
        - give i@383,50 <player> qty:6 
        - firework <player.location> star primary:yellow fade:white  
        - firework <player.location> star primary:red fade:white  
        } 
        else if <player.flag[diceNum]> >= 49 { 
        - announce "<&2><player.name><&6> just rolled the<&l> Second Grand Prize: <&2><&l>$50.000!" 
        - narrate "<&a>$50,000 has been added to your account." 
        - give money quantity:50000 
        - firework <player.location> star primary:yellow fade:white  
        - firework <player.location> star primary:red fade:white  
        } 
        else if <player.flag[diceNum]> >= 48 { 
        - announce "<&2><player.name><&6> just rolled the<&l> Third Grand Prize: <&2><&l>$35.000!" 
        - narrate "<&a>$35,000 has been added to your account." 
        - give money quantity:35000 
        - firework <player.location> star primary:yellow fade:white  
        - firework <player.location> star primary:red fade:white  
        } 
        else if <player.flag[diceNum]> >= 1 { 
        - narrate "<&6>You rolled between 45 and 50! You win!" 
        - give i@luckydice_chestplate 1 
        } 
        else if <player.flag[diceNum]> > 17 { 
        - narrate "<&6>You've rolled between 18 and 21! You win:" 
        } 
        else if <player.flag[diceNum]> > 10 { 
        - narrate "<&6>You've rolled between 11 and 16. You win:" 
        } 
        else { 
        - chat "<&6>Sorry you rolled less 10 or less.... You lose!" 
        } 

      - flag diceNum:! 

luckydice_chestplate: 
  type: item 
  material: diamond_chestplate 
  display name: <&8>Lucky<&7> Dice<&f> Chestplate
  lore: 
     - <&7><&o>It<&sq>s only a gambling problem if you're losin<&sq>. 
  enchantments: 
     - protection:4 
     - unbreaking:3