Skocz do zawartości
  • 0

Sklep w gui


Szejkus

Pytanie

Cześć mam ważne zlecenie :P Chciałbym aby ktoś napisał mi sklep w gui. Tylko podstawę czyli menu kupna menu sprzedaży a w tym Budowlanka, minerały, rośliny, z potworów oraz inne
I w tym po jednym przedmiocie dla przykładu jak by zrobić żeby sprzedawać. Do pieniędzy używam vault

Odnośnik do komentarza
https://skript.pl/temat/4536-sklep-w-gui/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:        cena.set: 5        cena.vip.14: 20        cena.vip.30: 45        cena.jablka: 5        komenda.vip.14: pex user %player-arg% group set VIP        komenda.vip.30: pex user %player-arg% group set VIPcommand /sklep:        trigger:                open chest with 1 rows named "Sklep za coins" to player                wait 2 tick                format slot 0 of player with 1 of chestplate named "&6Diamentowy set" with lore "&bCena: &2{@cena.set} coins" to run "kup %player% set"                format slot 1 of player with 1 of 322:2 named "&6Kox jablka" with lore "&bCena: &2{@cena.jablka} coins" to run "kup %player% kox"                format slot 2 of player with 1 of chestplate named "&6VIP - 14 dni" with lore "&bCena: &2{@cena.vip.14} coins" to run "kup %player% vip14"                format slot 3 of player with 1 of chestplate named "&6VIP - 30 dni" with lore "&bCena: &2{@cena.vip.30} coins" to run "kup %player% vip30"command /kup [<player&gt] [<text&gt]:        trigger:                if arg 1 is set:                        if arg 2 is "set":                                if {coins.%player-arg%} is greater than {@cena.set} -1:                                        send "&7Zakupiles &adiamentowy set &7za &a{@cena.set}" to player-arg                                        give diamond helmet to player-arg                                        give diamond chestplate to player-arg                                        give diamond leggings to player-arg                                        give diamond boots to player-arg                                        #                                        give diamond sword to player-arg                                        give diamond pickaxe to player-arg                                        give diamond axe to player-arg                                        give diamond shovel to player-arg                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "kox":                                if {coins.%player-arg%} is greater than {@cena.kox} -1:                                        send "&7Zakupiles &akox jablka &7za &a{@cena.kox}" to player-arg                                        give 3 322:2 to player-arg                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "vip14":                                if {coins.%player-arg%} is greater than {@cena.vip.14} -1:                                        send "&7Zakupiles &avip na 14 dni &7za &a{@cena.vip.14}" to player-arg                                        execute console command "{@komenda.vip.14}"                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "vip30":                                if {coins.%player-arg%} is greater than {@cena.vip.30} -1:                                        send "&7Zakupiles &avip na 30 dni &7za &a{@cena.vip.30}" to player-arg                                        execute console command "{@komenda.vip.30}"                                else:                                        send "&cNie stac Cie!"

Przerób sobie na moneje.

Odnośnik do komentarza
https://skript.pl/temat/4536-sklep-w-gui/#findComment-38096
Udostępnij na innych stronach

  • 0
options:        cena.set: 5        cena.vip.14: 20        cena.vip.30: 45        cena.jablka: 5        komenda.vip.14: pex user %player-arg% group set VIP        komenda.vip.30: pex user %player-arg% group set VIPcommand /sklep:        trigger:                open chest with 1 rows named "Sklep za coins" to player                wait 2 tick                format slot 0 of player with 1 of chestplate named "&6Diamentowy set" with lore "&bCena: &2{@cena.set} coins" to run "kup %player% set"                format slot 1 of player with 1 of 322:2 named "&6Kox jablka" with lore "&bCena: &2{@cena.jablka} coins" to run "kup %player% kox"                format slot 2 of player with 1 of chestplate named "&6VIP - 14 dni" with lore "&bCena: &2{@cena.vip.14} coins" to run "kup %player% vip14"                format slot 3 of player with 1 of chestplate named "&6VIP - 30 dni" with lore "&bCena: &2{@cena.vip.30} coins" to run "kup %player% vip30"command /kup [<player&gt] [<text&gt]:        trigger:                if arg 1 is set:                        if arg 2 is "set":                                if {coins.%player-arg%} is greater than {@cena.set} -1:                                        send "&7Zakupiles &adiamentowy set &7za &a{@cena.set}" to player-arg                                        give diamond helmet to player-arg                                        give diamond chestplate to player-arg                                        give diamond leggings to player-arg                                        give diamond boots to player-arg                                        #                                        give diamond sword to player-arg                                        give diamond pickaxe to player-arg                                        give diamond axe to player-arg                                        give diamond shovel to player-arg                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "kox":                                if {coins.%player-arg%} is greater than {@cena.kox} -1:                                        send "&7Zakupiles &akox jablka &7za &a{@cena.kox}" to player-arg                                        give 3 322:2 to player-arg                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "vip14":                                if {coins.%player-arg%} is greater than {@cena.vip.14} -1:                                        send "&7Zakupiles &avip na 14 dni &7za &a{@cena.vip.14}" to player-arg                                        execute console command "{@komenda.vip.14}"                                else:                                        send "&cNie stac Cie!"                        if arg 2 is "vip30":                                if {coins.%player-arg%} is greater than {@cena.vip.30} -1:                                        send "&7Zakupiles &avip na 30 dni &7za &a{@cena.vip.30}" to player-arg                                        execute console command "{@komenda.vip.30}"                                else:                                        send "&cNie stac Cie!"

Przerób sobie na moneje.

 

Nie da sie kupic pisze ze nie stać mnie

Odnośnik do komentarza
https://skript.pl/temat/4536-sklep-w-gui/#findComment-38980
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...