on place chest:
if name of player's tool is "&8[&a&lPREMIUM&f&lCASE&8]":
cancel event
remove 1 chest named "&8[&a&lPREMIUM&f&lCASE&8]" from player
chance of 50%:
set {_z} to random integer from 0 to 2
if {_z} is 0:
give 1 diamond to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 1 diament" to player
if {_z} is 1:
give 5 diamond to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 diamentow" to player
if {_z} is 2:
give 16 diamond to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 16 diamentow" to player
chance of 100%:
set {_a} to random integer from 0 to 2
if {_a} is 0:
give 5 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 sztabke zlota" to player
if {_a} is 1:
give 15 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 15 sztabke zlota" to player
if {_a} is 2:
give 32 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 32 sztabke zlota" to player
chance of 40%:
set {_f} to random integer from 0 to 2
if {_f} is 0:
give 1 emerald to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 1 emerald" to player
if {_f} is 1:
give 2 emerald to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 2 emerald" to player
if {_f} is 2:
give 5 emerald to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 emerald" to player
chance of 100%:
set {_c} to random integer from 0 to 2
if {_c} is 0:
give 1 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 5 sztabke zelaza" to player
if {_c} is 1:
give 1 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 20 sztabke zelaza" to player
if {_c} is 2:
give 1 gold ingot to player
send "&8[&a&lF&f&lQ&8] &7Gracz &e%player% &7otworzyl &8[&a&lPREMIUM&f&lCASE&8] &7i zdobyl 32 sztabke zelaza" to player
command /dajcase [<text>]:
trigger:
if player has permission "admin" or "*":
if arg 1 is not set:
send "&cPoprawne uzycie: /dajcase <sobie, all>"
if arg 1 is "sobie":
send "&7Dales sobie &8[&a&lPREMIUM&f&lCASE&8]" to player
give 1 of chest named "&8[&a&lPREMIUM&f&lCASE&8]" to player
if arg 1 is "all":
send "&7Administrator &c%player% &7dal calemu serwerowi &8[&a&lPREMIUM&f&lCASE&8]" to player
give 1 of chest named "&8[&a&lPREMIUM&f&lCASE&8]" to all players
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}