Skocz do zawartości
  • 0

Sklep


gnomq
 Udostępnij

Pytanie

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

To masz dirta xD

command /shop [<text>]:
    trigger:
        if arg 1 isn't set:
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 isn't "(((opengui)))":
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 is "(((opengui)))":
            close player's inventory
            open chest with 1 row named "&6&lSKLEP" to player
            wait 3 tick
            set player's current inventory's slot 0 to dirt named "" with lore "||&8* &7Stan: %{shop_dirt}% &8*||&8* &7Twoj stan konta: &6%player's balance%&2&l$ &8*"
            
on inventory click:
    if inventory name of current inventory of player is "&6&lSKLEP":
        cancel event
        if clicked slot is 0:
            if player's balance is larger than 9:
                remove 10 from player's balance
                send "&8» &aPoprawnie zakupiles item: &2&ldirt" to the player
                give 1 dirt to the player
                stop
            send "&8» &cTwoj stan konta jest &4&l&nza maly&r&c, aby kupic dirt." to the player
            stop

 

Edytowane przez LjayPL789
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, LjayPL789 napisał:

To masz dirta xD

command /shop [<text>]:
    trigger:
        if arg 1 isn't set:
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 isn't "(((opengui)))":
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 is "(((opengui)))":
            close player's inventory
            open chest with 1 row named "&6&lSKLEP" to player
            wait 3 tick
            set player's current inventory's slot 0 to dirt named "" with lore "||&8* &7Stan: %{shop_dirt}% &8*||&8* &7Twoj stan konta: &6%player's balance%&2&l$ &8*"
            
on inventory click:
    if inventory name of current inventory of player is "&6&lSKLEP":
        cancel event
        if clicked slot is 0:
            if player's balance is larger than 9:
                remove 10 from player's balance
                send "&8» &aPoprawnie zakupiles item: &2&ldirt" to the player
                give 1 dirt to the player
                stop
            send "&8» &cTwoj stan konta jest &4&l&nza maly&r&c, aby kupic dirt." to the player
            stop

 

Prosiłbym jeszcze: gdy gracz nie ma miejsca w ekwipunku wyświetla się komunikat ect.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /shop [<text>]:
    trigger:
        if arg 1 isn't set:
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 isn't "(((opengui)))":
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 is "(((opengui)))":
            close player's inventory
            open chest with 1 row named "&6&lSKLEP" to player
            wait 3 tick
            set player's current inventory's slot 0 to dirt named "" with lore "||&8* &7Stan: %{shop_dirt}% &8*||&8* &7Twoj stan konta: &6%player's balance%&2&l$ &8*"
            
on inventory click:
    if inventory name of current inventory of player is "&6&lSKLEP":
        cancel event
        if clicked slot is 0:
            if player's balance is larger than 9:
                if player has enough space for 1 of dirt:
                    remove 10 from player's balance
                    send "&8» &aPoprawnie zakupiles item: &2&ldirt" to the player
                    give 1 dirt to the player
                    stop
                send "&8» &cNie posiadasz miejsca w ekwipunku." to the player
                stop
            send "&8» &cTwoj stan konta jest &4&l&nza maly&r&c, aby kupic dirt." to the player
            stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
20 godzin temu, LjayPL789 napisał:
command /shop [<text>]:
    trigger:
        if arg 1 isn't set:
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 isn't "(((opengui)))":
            if player's balance is larger than 9:
                set {shop_dirt} to "&2&lMOZESZ ZAKUPIC"
                execute player command "shop (((opengui)))"
                stop
            set {shop_dirt} to "&4&lNIE MOZESZ ZAKUPIC"
            execute player command "shop (((opengui)))"
            stop
        if arg 1 is "(((opengui)))":
            close player's inventory
            open chest with 1 row named "&6&lSKLEP" to player
            wait 3 tick
            set player's current inventory's slot 0 to dirt named "" with lore "||&8* &7Stan: %{shop_dirt}% &8*||&8* &7Twoj stan konta: &6%player's balance%&2&l$ &8*"
            
on inventory click:
    if inventory name of current inventory of player is "&6&lSKLEP":
        cancel event
        if clicked slot is 0:
            if player's balance is larger than 9:
                if player has enough space for 1 of dirt:
                    remove 10 from player's balance
                    send "&8» &aPoprawnie zakupiles item: &2&ldirt" to the player
                    give 1 dirt to the player
                    stop
                send "&8» &cNie posiadasz miejsca w ekwipunku." to the player
                stop
            send "&8» &cTwoj stan konta jest &4&l&nza maly&r&c, aby kupic dirt." to the player
            stop

 

Nie ma błędów, ale po wpisaniu /shop, nie wyskakuje nic w GUI

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
16 godzin temu, knugi napisał:

@gnomq2000 to nie masz mojego starego skryptu na sklep? 

Ja go jeszcze na komputerze mam:

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Nie działał mi on poprawnie :( Chciałbym ten wyżej aby działał. Da się naprawić żeby wyświetlało item w GUI?

Edytowane przez gnomq2000
Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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