Poprosiłbym skrypt do odebrania Premium case z skryptu
options:
# Nazwa GUI od komendy /drop:
inventoryName: &c&lDropy
# Wiadomość przy braku wymaganej permisji do wykonania komend "/pcase add <gracz>" oraz "/pcase all <ilość>":
permissionMessage: &cNie masz dostępu do tej komendy!
# Czym jest Premium Case:
pcase: chest of unbreaking 1 named "&w|&b&k|&w| BdCase |&b&k|&w|" with lore "&7Specjalny przedmiot, sprobuj szczescia" and "&7i wylosuj fajne itemki!"
command /drop:
executable by: players
trigger:
set {_inv} to chest inventory with 1 row named "{@inventoryName}"
set slot 1 of {_inv} to iron block named "&lIron Block" with lore "&7Szansa: &a7%%" and "&7Ilosc:&a1-2"
set slot 2 of {_inv} to iron block named "&lCobble" with lore "&7Szansa: &a67%%" and "&7Ilosc:&a16-64"
set slot 3 of {_inv} to iron ingot named "&lIron Ingot" with lore "&7Szansa: &a12%%" and "&7Ilosc:&a3-5"
open {_inv} to player
command /pcase [<text>] [<text>]:
trigger:
if player doesn't have permission "pcase.add.all" or "pcase.all" or "pcase.add":
send "{@permissionMessage}" to player
stop
if arg-1 is "add":
if player doesn't have permission "pcase.add":
send "{@permissionMessage}" to player
stop
if (arg-2 parsed as offline player) is offline:
send "&cGracz &6%arg-2% &cjest offline!" to player
stop
give {@pcase} to (arg-2 parsed as player)
send "&c&l[PC]&a Pomyślnie dodano |&b&k|&w| BdCase |&b&k|&w| &agraczowi &6%arg-2%&a!" to sender
else if arg-1 is "all":
if player doesn't have permission "pcase.add.all" or "pcase.all":
send "{@permissionMessage}" to player
stop
if arg-2 parsed as number is not integer:
send "&cPodaj liczbe BdCase!" to sender
stop
give (arg-2 parsed as integer) of {@pcase} to all players
send "&6%player% &aDal ci &6%arg-2% &a &w|&b&k|&w| BdCase |&b&k|&w|&a!" to all players
else:
send "&cMusisz podac do kogo chcesz wysłać BdCase! (&6add &c/ &6all!)" to sender
on place:
player's tool is {@pcase}
cancel event
set player's tool to (item amount of player's tool - 1) of player's tool
loop (random integer between 1 and 2) times:
set {_r} to random integer between 1 and 101
if {_r} is between 1 and 3:
set {_drop} to 1 diamond block
else if {_r} is between 4 and 10:
set {_drop} to (random integer between 1 and 2) of iron block
else if {_r} is between 11 and 77:
set {_drop} to (random integer between 16 and 64) of cobblestone
else if {_r} is between 78 and 89:
set {_drop} to (random integer between 3 and 5) of iron ingot
else if {_r} is between 90 and 101:
set {_drop} to (random integer between 3 and 5) of gold ingot
if {caseDrop::wylaczone::%player%::*} contains "%type of {_drop}%":
send "&6Wylosowałeś &e%{_drop}%&6, ale wyłączyłeś drop tego przedmiotu, dlatego też go nie otrzymałeś!" to player
stop
send "&aOtrzymałeś &6%{_drop}%&a!" to player
if player has enough space for {_drop}:
give player {_drop}
else:
drop {_drop} at event-block
send "&cPonieważ nie posiadasz wolnego miejsca w ekwipunku na &e%{_drop}%&6, drop został wyrzucony na ziemię!" to player
Komenda to /obierz 13498275. Można zrobić ją raz dopóki admin nie wpiszę /nagroda-odblokuj (Perm = n.un)
po wpisaniu komendy do ekwipunku gracza jest dawane 10x skrzynek z kodu z góry. Jak gracz nie ma miejsca w eq to wyskakuje powiadomienie: &cNie masz miejsca w ekwipunku! Zwolni jedno miejsce
Z góry dzięki jak są jakieś pytania to proszę pytać