Paste #28330: Edit of P#28329 - Untitled Paste

Date: 2016/01/12 12:19:43 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 


#This is an example of a comment. Just use the pound/hashtag symbol at the beginning of the line
##Or you can use multiples of them.
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]> >= 47 { 
        - narrate "<&6>You rolled between 47 and 50! You win!"
        - give i@diamond_helmet[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Helmet;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,3];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]        
        - give i@diamond_chestplate[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Chestplate;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,3];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
        - give i@diamond_leggings[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Leggings;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,3];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.] 
        - give i@diamond_boots[display_name=<&8>Lucky<&7><&sp>Dice<&f><&sp>Boots;enchantments=PROTECTION_ENVIRONMENTAL,4|DURABILITY,3|PROTECTION_FALL,4];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
        } 
        else if <player.flag[diceNum]> >= 45 { 
        - narrate "<&6>You've rolled between 42 and 50! You win!" 
        - give i@diamond_Sword[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Sword;enchantments=DAMAGE_ALL,5|DURABILITY,3|FIRE_ASPECT,2];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]  
        - give i@bow[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Bow;enchantments=ARROW_DAMAGE,5|
        - give i@diamond_pickaxe[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Pickaxe;enchantments=DIG_SPEED,5|DURABILITY,3|LOOT_BONUS_BLOCKS,3|];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
        - give i@diamond_axe[display_name=<&8>Lucky<&7><&sq>Dice<&f><&sq>Axe;enchantments=DIG_SPEED,5|DURABILITY,3|LOOT_BONUS_BLOCKS,3|];lore=It<&sq>s<&sp>only<&sp>a<&sp>gambling<&sp>problem<&sp>if<&sp>you<&sq>re<&sp>losin<&sq>.]
        } 
        else if <player.flag[diceNum]> >= 42 { 
        - narrate "<&6>You've rolled between 42 and 50! You win!" 
        - give i@diamond_helmet[display_name=<&8><&lb><&5>Royal Helmet<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
        - give i@diamond_chestplate[display_name=<&8><&lb><&5>Royal Chestplate<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
        - give i@diamond_leggings[display_name=<&8><&lb><&5>Royal Leggings<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4]
        - give i@diamond_boots[display_name=<&8><&lb><&5>Royal Boots<&8><&rb>;enchantments=PROTECTION_ENVIRONMENTAL,4|PROTECTION_FALL,4]
        } 
        else { 
        - chat "<&6>Sorry you rolled less 10 or less.... You lose!"  
        } 

      - flag diceNum:!