Skocz do zawartości
  • 0

Sklep gui


xkrokolTV

Pytanie

jest to sklep  są komendy /sklep /sklep1 /sklep2 /sklep3 połącz to w jedno że masz komendę /sklep a te pozostałe są podłączone do siebie że ranga vip klikniesz na blok i przechodzisz do nowego okna  jest waluta kapsle sprawdzasz pod /stan będzie się kupywało na stornie serwera 

i tam masz do wyboru vip 7 dni 30dni 60 dni
i tak samo svip
buteleczki exp
już wysyłam plik

i nie będzie zbroje itd. a waluta to kapsle kupuje się na stonie serwera na shop

nie będzie efektów zbroj tylko /sklep wybierasz np.blok złota "vip" otwiera się next okno i masz do wyboru 7dni 30dni 60dni a next okno czy potwierdzasz kupno i tak samo z svip buteleczki exp

i dołaczyć komende /dajkapsle (nick) (ilość)

variables:
    {pkt.%player%} = 0
on mine of stone:
    add 1 to {pkt.%player%}
command /sklep:
    trigger:
        open chest with 3 rows named "&eMENU" to players
        wait 1 tick
        format slot 0 of players with 1 Diamond Helmet named  "&e&lZbroje" to run [make player execute "sklep1"]
        format slot 1 of players with 1 Glass Bottle named "&e&lEfekty" to run [make player execute "sklep2"]
        format slot 26 of players with 1 Red Wool named "&eStan konta: &f%{pkt.%player%}%" with lore "&eMozesz sprawdzic stan punktow pod komenda &f/stan" to be unstealable
command /sklep1:
    trigger:   
        open chest with 3 rows named "&eZBROJE" to players
        wait 1 tick
        format slot 0 of players with 1 Diamond Helmet of Protection 4 and unbreaking 3 named "&eHelm 4/3" with lore "&eAby je kupic musisz miec &f2000 &etysiace punktow ||&ePosiadasz &f%{pkt.%player%}% punktow" to run [make player execute "daj helm"]
        format slot 1 of players with 1 Diamond Chestplate of Protection 4 and unbreaking 3 named "&eKlata 4/3" with lore "&eAby je kupic musisz miec &f2000 &etysiace punktow ||&ePosiadasz &f%{pkt.%player%}% punktow" to run [make player execute "daj klata"]
        format slot 2 of players with 1 Diamond Leggings of Protection 4 and unbreaking 3 named "&eSpodnie 4/3" with lore "&eAby je kupic musisz miec &f2000 &etysiace punktow ||&ePosiadasz &f%{pkt.%player%}% punktow" to run [make player execute "daj spodnie"]
        format slot 3 of players with 1 Diamond Boots of Protection 4 and unbreaking 3 named "&eButy 4/3" with lore "&eAby je kupic musisz miec &f2000 &etysiace punktow ||&ePosiadasz &f%{pkt.%player%}% punktow" to run [make player execute "daj buty"]
        format slot 26 of players with 1 Red Wool named "&eStan konta: &f%{pkt.%player%}%" with lore "&eMozesz sprawdzic stan punktow pod komenda &f/stan" to be unstealable
        format slot 25 of players with 1 Wool named "&eWyjscie" with lore "&eKliknij aby wyjsc" to run [make player execute "sklep"]
 
command /sklep2:
    trigger:
        open chest with 3 rows named "&eEFEKTY" to players
        wait 1 tick
        format slot 0 of players with 1 373:8194 named "&eSzybkosc na 3 minuty" to run [make player execute "potka szybkosc"]
        format slot 4 of players with 1 373:8227 named "&eOchrona przed ogniem na 3 minuty" to run [make player execute "potka ochrona"]
        format slot 2 of players with 1 373:8201 named "&eSila 3 minuty" to run [make player execute "potka sila"]
        format slot 3 of players with 1 373:8233 named "&eSila II 2 minuty" to run [make player execute "potka sila2"]
        format slot 1  of players with 1 373:8226 named "&eSzybkosc II 2 minuty" to run [make player execute "potka szybkosc2"]
        format slot 26 of players with 1 Red Wool named "&eStan konta: &f%{pkt.%player%}%" with lore "&eMozesz sprawdzic stan punktow pod komenda &f/stan" to be unstealable
        format slot 25 of players with 1 Wool named "&eWyjscie" with lore "&eKliknij aby wyjsc" to run [make player execute "sklep"]
 
 
 
 
 
command /daj [<text>]:
    trigger:
        if arg 1 is "helm":
            if {pkt.%player%} is less than 2000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f2000&e punktow!"
                stop
            if {pkt.%player%} is greater than 2000:
                give 1 diamond helmet of Protection 4 and unbreaking 3 to player
                remove 2000 from {pkt.%player%}
                send "&eZakupiles Helm 4/3!"
        if arg 1 is "klata":
            if {pkt.%player%} is less than 2000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f2000&e punktow!"
                stop
            if {pkt.%player%} is greater than 2000:
                give 1 diamond chestplate of Protection 4 and unbreaking 3 to player
                remove 2000 from {pkt.%player%}
                send "&eZakupiles Klate 4/3!"
        if arg 1 is "spodnie":
            if {pkt.%player%} is less than 2000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f2000&e punktow!"
                stop
            if {pkt.%player%} is greater than 2000:
                give 1 diamond leggings of Protection 4 and unbreaking 3 to player
                remove 2000 from {pkt.%player%}
                send "&eZakupiles spodnie 4/3!"
        if arg 1 is "buty":
            if {pkt.%player%} is less than 2000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f2000&e punktow!"
                stop
            if {pkt.%player%} is greater than 2000:
                give 1 diamond boots of Protection 4 and unbreaking 3 to player
                remove 2000 from {pkt.%player%}
                send "&eZakupiles buty 4/3!"
command /potka [<text>]:
    trigger:
        if arg 1 is "szybkosc":
            if {pkt.%player%} is less than 1000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f1000&e punktow!"
                stop
            if {pkt.%player%} is greater than 1000:
                apply potion of speed of tier 1 to the player for 3 minute
                remove 2000 from {pkt.%player%}
                send "&eZakupiles Efekt Szybkosci!"
        if arg 1 is "ochrona":
            if {pkt.%player%} is less than 1000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f1000&e punktow!"
                stop
            if {pkt.%player%} is greater than 1000:
                apply potion of Fire resistance of tier 1 to the player for 3 minute
                remove 1000 from {pkt.%player%}
                send "&eZakupiles Efekt Ochrony przed ogniem!"
        if arg 1 is "sila":
            if {pkt.%player%} is less than 1000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f1000&e punktow!"
                stop
            if {pkt.%player%} is greater than 1000:
                apply potion of strength of tier 1 to the player for 3 minute
                remove 1000 from {pkt.%player%}
                send "&eZakupiles Efekt Sily!"
        if arg 1 is "sila2":
            if {pkt.%player%} is less than 1000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f1000&e punktow!"
                stop
            if {pkt.%player%} is greater than 1000:
                apply potion of strength of tier 2 to the player for 2 minute
                remove 1000 from {pkt.%player%}
                send "&eZakupiles Efekt Sily II!"
        if arg 1 is "szybkosc2":
            if {pkt.%player%} is less than 1000:
                send "&eNie masz tyle pieniedzy! &eMusisz posiadac &f1000&e punktow!"
                stop
            if {pkt.%player%} is greater than 1000:
                apply potion of strength of tier 2 to the player for 2 minute
                remove 1000 from {pkt.%player%}
                send "&eZakupiles Efekt Szybkosci II"
           
               
command /stan:
    trigger:
        send "&ePosiadasz &f%{pkt.%player%}% &ekasy" to player

 

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

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

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ę...