Facebook
From Toxic Partdridge, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 208
  1. on leftclick on sea lantern:
  2.     cancel event
  3.     if name of player's tool is "&3Prestige &bKeys":
  4.         chance of 26%:
  5.             set {_r1} to a random integer between 1000 and 10000000
  6.             add {_r1} to {tokens::%Player%}
  7.             set {_rc} to format({_r1})
  8.             create hologram "&3&LPrestige &b&lCrate;;ItemStack:magma cream;&3+%{_rc}% &bTokens" at block above block above block above event-block for 2 seconds
  9.             send "&3&LPrestige &b&lCrate &7» &3+%{_rc}% &bTokens"
  10.             stop
  11.         chance of 26%:
  12.             set {_r2} to a random integer between 1 and 1000
  13.             add {_r2} to {commonkeys::%Player%}
  14.             create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&2+%{_r2}% &aCommon Keys" at block above block above block above event-block for 2 seconds
  15.             send "&3&LPrestige &b&lCrate &7» &2+%{_r2}% &ACommon Keys"
  16.             stop
  17.         chance of 26%:
  18.             set {_r3} to a random integer between 1 and 500
  19.             add {_r3} to {rarekeys::%Player%}
  20.             create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&5+%{_r3}% &dRare Keys" at block above block above block above event-block for 2 seconds
  21.             send "&3&LPrestige &b&lCrate &7» &5+%{_r3}% &dRare Keys"
  22.             stop
  23.         chance of 25%:
  24.             set {_r4} to a random integer between 1 and 250
  25.             add {_r4} to {legendarykeys::%Player%}
  26.             create hologram "&3&LPrestige &b&lCrate;;ItemStack:tripwire hook;&4+%{_r4}% &CLegendary Keys" at block above block above block above event-block for 2 seconds
  27.             send "&3&LPrestige &b&lCrate &7» &4+%{_r4}% &CLegendary Keys"
  28.             stop
  29.         remove 1 tripwire hook from player's tool
  30.     else:
  31.         send "&3&LPrestige &b&lCrate &7» &3Do You Try To &bAboose &3OF This Crates ?"
  32.                
  33. on rightclick on sea lantern:
  34.     cancel event
  35.     open chest with 3 rows named "&3&LPrestige &b&lCrate" to player
  36.     wait 3 ticks
  37.     set {_slot} to -1
  38.     loop 27 times:
  39.         add 1 to {_slot}
  40.         format gui slot {_slot} of player with black stained glass pane named "&3Prestige &bCrate" to do nothing
  41.     format gui slot 4 of player with end crystal named "&b&lRewards &7:" to do nothing
  42.     format gui slot 10 of player with magma cream named "&6&LTokens" with lore "" and "&f&m-----------------" and "" and "&71k-10M &eTokens" and "&eChance &7» &e25 Pourcent" and "" and "&f&m-----------------" to do nothing
  43.     format gui slot 12 of player with tripwire hook named "&A&lCommon Keys" with lore "" and "&f&m-----------------" and "" and "&71-1k &ACommon Keys" and "&2Chance &7» &225 Pourcent" and "" and "&f&m-----------------" to do nothing
  44.     format gui slot 14 of player with tripwire hook named "&d&lRare Keys" with lore "" and "&f&m-----------------" and "" and "&71-500 &dRare Keys" and "&5Chance &7» &525 Pourcent" and "" and "&f&m-----------------" to do nothing
  45.     format gui slot 16 of player with tripwire hook named "&C&LLegendary Keys" with lore "" and "&f&m-----------------" and "" and "&71-250 &CLegendary Keys" and "&4Chance &7» &425 Pourcent" and "" and "&f&m-----------------" to do nothing