Mam pomysł na sklep ale nie mam pomysłu oraz wiedzy na jego wykonanie.
Oto skrypt jaki napisałem dotychczas:
Cytat
command /sklep:
description: Sklepik dla graczy.
aliases: shop, s
trigger:
if executor is player:
if player has permission "psg.sklep":
open chest with 4 rows named "&4Sklep &lPSG" to player
wait 1 tick
format slot 4 of player with 1 of book named "&b&lSklep PSG" with lore "&6W tym sklepie mozesz sprzedac itemy za dolary.||&2Mozesz nastepnie za nie zakupic gildie!||&3Stan konta mozesz sprawdzic komenda &4/money" to be unstealable
format slot 9 of player with 10 of coal item named "&6&lWegiel" with lore "&7Otrzymasz: &230$" to be unstealable
format slot 10 of player with 5 of iron ingot named "&6&lZelazo" with lore "&7Otrzymasz: &240$" to be unstealable
format slot 11 of player with 10 of lapis lazuli named "&6&lLazuryt" with lore "&7Otrzymasz: &235$" to be unstealable
format slot 12 of player with 5 of gold ingot named "&6&lZloto" with lore "&7Otrzymasz: &250$" to be unstealable
format slot 13 of player with 3 of diamond named "&6&lDiamenty" with lore "&7Otrzymasz: &260$" to be unstealable
format slot 14 of player with 10 of redstone named "&6&lCzerwony kamien" with lore "&7Otrzymasz: &235$" to be unstealable
format slot 15 of player with 3 of emerald named "&6&lSzmaragdy" with lore "&7Otrzymasz: &2100$" to be unstealable
format slot 16 of player with 5 of pumpkin named "&6&lDynia" with lore "&7Otrzymasz: &2100$" to be unstealable
format slot 17 of player with 5 of sugar cane named "&6&lTrzcina Cukrowa" with lore "&7Otrzymasz: &290$" to be unstealable
format slot 18 of player with 64 of cobblestone named "&6&lBruk" with lore "&7Otrzymasz: &210$" to be unstealable
Oto co chciałbym zrobić dalej:
Cytat
on click on coal
if player has 10 coal:
remove 10 coal from player
send "Otrzymales 30$"
execute console command "economy give player 30"
on click on iron ingot
if player has 5 iron ingot:
remove 5 iron ingot from player
send "Otrzymales 40$"
execute console command "economy give player 40"
Czy mógłby ktoś obrobić to w jeden skrypt? Z góry dziękuje!
Pytanie
BatonTwix 0
Witam.
Mam pomysł na sklep ale nie mam pomysłu oraz wiedzy na jego wykonanie.
Oto skrypt jaki napisałem dotychczas:
Cytat
Oto co chciałbym zrobić dalej:
Cytat
Czy mógłby ktoś obrobić to w jeden skrypt? Z góry dziękuje!
Odnośnik do komentarza
https://skript.pl/temat/7833-chest-gui-triggery-problem/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi