Facebook
From TroolCraft, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 300
  1. options:
  2.  tag: &8[&bPremium&3 Case&8]
  3. on place:
  4.  if player's tool is chest:
  5.   if name of player's tool is "&8[&b&lPremium &3&lCase&8]":
  6.    cancel event
  7.  
  8. on right click:
  9.  if player's tool is chest:
  10.   if name of player's tool is "&8[&b&lPremium &3&lCase&8]":
  11.    broadcast "&8######################################"
  12.    broadcast "&c%player% &7Otworzyl &9&lPremium Case &7i wydropil:"
  13.    chance of 20%:
  14.     drop 64 diamond
  15.     broadcast "&7- &c64x Diaxy"
  16.    chance of 20%:
  17.     drop 1 311 of protection 4 and unbreaking 3 named "&5&lSet 4/3"
  18.    chance of 20%:
  19.     drop 1 313 of protection 4 and unbreaking 3 named "&5&lSet 4/3"
  20.     broadcast "&7- &c1x Klata 10/10"
  21.    chance of 20%:
  22.     drop 64 emerald
  23.     broadcast "&7- &c64x Emeraldy"
  24.    chance of 20%:
  25.     drop 1 310 of protection 4 and unbreaking 3 named "&5&lSet 4/3"
  26.     broadcast "&7- &c1x Helm 4/3"
  27.    chance of 20%:
  28.     drop 64 gold ingot
  29.     broadcast "&7- &c64x Zelazo"
  30.    chance of 20%:
  31.     drop 1 312 of protection 4 and unbreaking 3 named "&5&lSet 4/3"
  32.     broadcast "&7- &c1x Spodnie 4/3"
  33.    chance of 20%:
  34.     drop 64 gold ingot
  35.     broadcast "&7- &c64x Zloto"
  36.    chance of 20%:
  37.     drop 1 276 of sharpness 5 and fire aspect 2 named "&5&lMiecz 5/2"
  38.     broadcast "&7- &c1x Miecz 5/2"
  39.    chance of 20%:
  40.     drop 64 TNT
  41.     broadcast "&7- &c64x TNT"
  42.    chance of 0%:
  43.     drop 1 278 of efficiency 7 and unbreaking 5 and fortune 5 named "&5&lKilof 7/5/5"
  44.     broadcast "&7- &c1x Kilof 7/5/5"
  45.    broadcast "&8| &cPremiumCase zakupisz na: &b&l http://www.152213.enmc.pl/sklep"
  46.    broadcast "&8| &cZa &cPSC &7& &cPRZELEW i SMS &7kupisz na: &b&l http://www.152213.enmc.pl/sklep"
  47.    broadcast "&8######################################"
  48.    remove 1 chest named "&8[&b&lPremium &3&lCase&8]" from player's inventory
  49.    
  50. command /case [<player>] [<text>]:
  51.  permission: rex.premiumcase
  52.  trigger:
  53.   if arg 1 is not set:
  54.    if arg 2 is not set:
  55.     send "{@tag} &8/&ecase &8[&eNick&8] [&eIlosc&8]"
  56.   if arg 1 is set:
  57.    if arg 2 is set:
  58.     execute console command "give %arg 1% chest %arg 2%  name:&8[&b&lPremium_&3&lCase&8]"
  59.     send "{@tag} &a&lOtrzymales &b&lPremium &3&lCase &7&lx&c&l%arg 2% &a&l!" to player-arg
  60. command /spremium:
  61.         trigger:
  62.                 open chest with 2 rows named "&8&lDrop z PremiumCase" to player
  63.                 set {_itemcase1} to 64 diamond
  64.                 set {_itemcase2} to 311 named "&5&lSet 4/3"
  65.                 set {_itemcase3} to 64 emerald
  66.                 set {_itemcase4} to 310 named "&5&lSet 4/3"
  67.                 set {_itemcase5} to 64 gold ingot
  68.                 set {_itemcase6} to 312 named "&5&lSet 4/3"
  69.                 set {_itemcase9} to 313 named "&5&lSet 4/3"
  70.                 set {_itemcase7} to 276 named "&5&lMiecz 5/2"
  71.                 set {_itemcase8} to 64 TNT
  72.                 format gui slot 0 of player with {_itemcase1}
  73.                 format gui slot 1 of player with {_itemcase2}
  74.                 format gui slot 2 of player with {_itemcase3}
  75.                 format gui slot 3 of player with {_itemcase4}
  76.                 format gui slot 4 of player with {_itemcase5}
  77.                 format gui slot 5 of player with {_itemcase6}
  78.                 format gui slot 6 of player with {_itemcase7}
  79.                 format gui slot 7 of player with {_itemcase8}
  80.                 format gui slot 7 of player with {_itemcase8}
  81.                 format gui slot 8 of player with {_itemcase9}
  82.                 set slot 17 of player's current inventory to 1 of door named "&c&lPowrot do menu"
  83. on inventory click:
  84.         if inventory name of player's current inventory is "&8&lDrop z PremiumCase":
  85.                 cancel event
  86.                 if clicked slot is 17:
  87.                         close player's inventory
  88.                         wait 1 tick
  89.                         execute player command "/drop"