Facebook
From CvSciK, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 174
  1. on place chest:
  2.         if name of player's tool is "&8[&a&lPREMIUM&f&lCASE&8]":
  3.                 cancel event
  4.                 remove 1 chest named "&8[&a&lPREMIUM&f&lCASE&8]" from player
  5.                 chance of 50%:
  6.                         set {_z} to random integer from 0 to 2
  7.                         if {_z} is 0:
  8.                                 give 1 diamond to player
  9.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 1 diament" to player
  10.                         if {_z} is 1:
  11.                                 give 5 diamond to player
  12.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 diamentow" to player
  13.                         if {_z} is 2:
  14.                                 give 16 diamond to player
  15.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 16 diamentow" to player
  16.                 chance of 100%:
  17.                         set {_a} to random integer from 0 to 2
  18.                         if {_a} is 0:
  19.                                 give 5 gold ingot to player
  20.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 sztabke zlota" to player
  21.                         if {_a} is 1:
  22.                                 give 15 gold ingot to player
  23.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 15 sztabke zlota" to player
  24.                         if {_a} is 2:
  25.                                 give 32 gold ingot to player
  26.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 32 sztabke zlota" to player
  27.                 chance of 40%:
  28.                         set {_f} to random integer from 0 to 2
  29.                         if {_f} is 0:
  30.                                 give 1 emerald to player
  31.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 1 emerald" to player
  32.                         if {_f} is 1:
  33.                                 give 2 emerald to player
  34.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 2 emerald" to player
  35.                         if {_f} is 2:
  36.                                 give 5 emerald to player
  37.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 emerald" to player
  38.                 chance of 100%:
  39.                         set {_c} to random integer from 0 to 2
  40.                         if {_c} is 0:
  41.                                 give 1 gold ingot to player
  42.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 sztabke zelaza" to player
  43.                         if {_c} is 1:
  44.                                 give 1 gold ingot to player
  45.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 20 sztabke zelaza" to player
  46.                         if {_c} is 2:
  47.                                 give 1 gold ingot to player
  48.                                 send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 32 sztabke zelaza" to player
  49. command /dajcase [<text>]:
  50.         trigger:
  51.                 if player has permission "admin" or "*":
  52.                         if arg 1 is not set:
  53.                                 send "&cPoprawne uzycie: /dajcase <sobie, all>"
  54.                         if arg 1 is "sobie":
  55.                                 send "&7Dales sobie &8[&a&lPREMIUM&f&lCASE&8]" to player
  56.                                 give 1 of chest named "&8[&a&lPREMIUM&f&lCASE&8]" to player
  57.                         if arg 1 is "all":
  58.                                 send "&7Administrator &c%player% &7dal calemu serwerowi &8[&a&lPREMIUM&f&lCASE&8]" to player
  59.                                 give 1 of chest named "&8[&a&lPREMIUM&f&lCASE&8]" to all players