Witam, stworzylem taki skrypt na kowala ale gdy otworze menu to moge wyciagnac zawartosc
options:
cena: 500
command /kowal:
trigger:
open chest with 3 rows named "&2&lKowal Andy" to player
set player's current inventory's slot 10 to iron pickaxe named "&2&lNaprawa Przedmiotu" with lore "&aKLIKNIJ LPM ABY NAPRAWIĆ PRZEDMIOT ||&7Musisz trzymać przedmiot w rece!||||&5Informacje:||&2Cena: &a500$ ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 12 to enchanted book named "&d&lNaloz Enchant" with lore "&aKLIKNIJ LPM ABY OTWORZYC MENU ENCHANTOW ||&7Musisz trzymać przedmiot w rece!||||&5Informacje: ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 14 to diamond helmet named "&b&lZakup Uzbrojenie" with lore "&aKLIKNIJ LPM ABY OTWORZYC SKLEP Z UZBROJENIEM! ||||&5Informacje: ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 16 to nether star named "&d&lNapraw Wszystko" with lore "&aKLIKNIJ LPM ABY NAPRAWIC WSZYSTKO! ||||&5Informacje:||&2Cena: &a500$||&8⊳ Dostep: &5Elita"
on inventory click:
if inventory name of current inventory of player contains "&2Kowal Andy":
if clicked slot is 10:
if player's balance is greater or equal to 500:
if player's tool is hand:
send "&cTrzymaj w ręku item który chcesz naprawić!"
else:
send "&2 Naprawiles przedmiot za 500$"
repair player's tool
remove {@cena} from player's money
close player's inventory
else:
send "&cNie stac cie na naprawe!"
close player's inventory
Pytanie
ametherial 0
Witam, stworzylem taki skrypt na kowala ale gdy otworze menu to moge wyciagnac zawartosc
options:
cena: 500
command /kowal:
trigger:
open chest with 3 rows named "&2&lKowal Andy" to player
set player's current inventory's slot 10 to iron pickaxe named "&2&lNaprawa Przedmiotu" with lore "&aKLIKNIJ LPM ABY NAPRAWIĆ PRZEDMIOT ||&7Musisz trzymać przedmiot w rece!||||&5Informacje:||&2Cena: &a500$ ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 12 to enchanted book named "&d&lNaloz Enchant" with lore "&aKLIKNIJ LPM ABY OTWORZYC MENU ENCHANTOW ||&7Musisz trzymać przedmiot w rece!||||&5Informacje: ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 14 to diamond helmet named "&b&lZakup Uzbrojenie" with lore "&aKLIKNIJ LPM ABY OTWORZYC SKLEP Z UZBROJENIEM! ||||&5Informacje: ||&8⊳ Dostep: &7Gracz"
set player's current inventory's slot 16 to nether star named "&d&lNapraw Wszystko" with lore "&aKLIKNIJ LPM ABY NAPRAWIC WSZYSTKO! ||||&5Informacje:||&2Cena: &a500$||&8⊳ Dostep: &5Elita"
on inventory click:
if inventory name of current inventory of player contains "&2Kowal Andy":
if clicked slot is 10:
if player's balance is greater or equal to 500:
if player's tool is hand:
send "&cTrzymaj w ręku item który chcesz naprawić!"
else:
send "&2 Naprawiles przedmiot za 500$"
repair player's tool
remove {@cena} from player's money
close player's inventory
else:
send "&cNie stac cie na naprawe!"
close player's inventory
Odnośnik do komentarza
https://skript.pl/temat/53989-nie-dzia%C5%82a-skrypt-na-inventory-click/Udostępnij na innych stronach
19 odpowiedzi na to pytanie
Rekomendowane odpowiedzi