Skocz do zawartości
  • 0

Gui/Lore


tazu

Pytanie

command /test:
    trigger:
        open chest with 6 rows named "&c&ltestx1" to player
        wait 1 tick
        set slot 0 of current inventory of player to red wool named "&6test" with lore "testowy test"

 

Hej, w jaki sposób przejść do następnej linijki w lore? Np. chce uzyskać nazwe wełny test, a lore 

Testowy

Test

Edytowane przez tazu
Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
4 minuty temu, xAxee napisał:

no to taka miała sie pokazać bo ustawiłem na "red wool"


set player's current inventory's slot 2 to red wool

jeżeli chcesz tamten poprzedni item daj zamiast red wool {_i}

hmm

command /rangi:
    trigger:
        open chest with 6 rows named "&c&ltestx1" to player
        set player's current inventory's slot 2 to {_i}
        set name of {_i} to "&6TEST"
        set line 1 of lore of {_i} to "ln 1"
        set line 2 of lore of {_i} to "ln 2"
        set line 3 of lore of {_i} to "ln 3"
        set slot 0 of current inventory of player to {_i}

gdzie moge wywolac ta welne?

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211634
Udostępnij na innych stronach

  • 0
command /rangi:
    trigger:
        open chest with 6 rows named "&c&ltestx1" to player
        set {_i} to red wool
        set name of {_i} to "&6TEST"
        set line 1 of lore of {_i} to "ln 1"
        set line 2 of lore of {_i} to "ln 2"
        set line 3 of lore of {_i} to "ln 3"
        set slot 0 of current inventory of player to {_i}

tam gdzie masz red wool zmieniasz na swoj item
tem gdzie masz "&6TEST" zmieniasz na swoja nazwe
Tam gdzie masz "ln X" zmieniasz na swoje lore X

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211635
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:

command /rangi:
    trigger:
        open chest with 6 rows named "&c&ltestx1" to player
        set {_i} to red wool
        set name of {_i} to "&6TEST"
        set line 1 of lore of {_i} to "ln 1"
        set line 2 of lore of {_i} to "ln 2"
        set line 3 of lore of {_i} to "ln 3"
        set slot 0 of current inventory of player to {_i}

tam gdzie masz red wool zmieniasz na swoj item
tem gdzie masz "&6TEST" zmieniasz na swoja nazwe
Tam gdzie masz "ln X" zmieniasz na swoje lore X

To teraz where moge wpisac slot aby obeszlo sie bez bledu :triggered:

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211636
Udostępnij na innych stronach

  • 0
13 minut temu, xAxee napisał:

command /rangi:
    trigger:
        open chest with 6 rows named "&c&ltestx1" to player
        set {_i} to red wool
        set name of {_i} to "&6TEST"
        set line 1 of lore of {_i} to "ln 1"
        set line 2 of lore of {_i} to "ln 2"
        set line 3 of lore of {_i} to "ln 3"
        set slot 0 of current inventory of player to {_i}

tam gdzie masz red wool zmieniasz na swoj item
tem gdzie masz "&6TEST" zmieniasz na swoja nazwe
Tam gdzie masz "ln X" zmieniasz na swoje lore X

Teraz ostatni problem, (więcej nie będzie)

command /rangi:
    trigger:
        open chest with 6 rows named "&c&lKUPNO RANG - SKLEP" to player
        set {_i} to emerald block
        set name of {_i} to "&c&lRANGA VIP!"
        set line 1 of lore of {_i} to "&7Wyglad: &6VIP &7%player%"
        set line 2 of lore of {_i} to "&7Czas rangi: &cna zawsze"
        set line 3 of lore of {_i} to "&7Tryb: &cBedWars"
        set line 4 of lore of {_i} to "&7Cena: &cJedyne: &a11,07zl!"
        set line 5 of lore of {_i} to ""
        set line 7 of lore of {_i} to "&eKliknij, aby kupic!"
        
        set {_i} to diamond block
        set name of {_i} to "&c&lRANGA MVP!"
        set line 1 of lore of {_i} to "&7Wyglad: &bMVP &7%player%"
        set line 2 of lore of {_i} to "&7Czas rangi: &cna zawsze"
        set line 3 of lore of {_i} to "&7Tryb: &cBedWars"
        set line 4 of lore of {_i} to "&7Cena: &cJedyne: &a11,07zl!"
        set line 5 of lore of {_i} to ""
        set line 10 of lore of {_i} to "&eKliknij, aby kupic!"
        set slot 11 of current inventory of player to {_i}
        
        set {_i} to emerald block
        set name of {_i} to "&c&lTwój stan konta!"
        set line 1 of lore of {_i} to "&7Zlotówki: &b0,00zl"
        set line 2 of lore of {_i} to ""
        set line 3 of lore of {_i} to "&eKliknij, aby doladowac!"
        set slot 49 of current inventory of player to {_i}

Po dodaniu kolejnych, niektóre mi się nasuwają na siebie i widać jedno a lore się buguje, jak temu zapobiec?

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211639
Udostępnij na innych stronach

  • 0

command /rangi:
    trigger:
        open chest with 6 rows named "&c&lKUPNO RANG - SKLEP" to player
        set {_i1} to emerald block
        set name of {_i1} to "&c&lRANGA VIP!"
        set line 1 of lore of {_i1} to "&7Wyglad: &6VIP &7%player%"
        set line 2 of lore of {_i1} to "&7Czas rangi: &cna zawsze"
        set line 3 of lore of {_i1} to "&7Tryb: &cBedWars"
        set line 4 of lore of {_i1} to "&7Cena: &cJedyne: &a11,07zl!"
        set line 5 of lore of {_i1} to ""
        set line 7 of lore of {_i1} to "&eKliknij, aby kupic!"
        
        set {_i2} to diamond block
        set name of {_i2} to "&c&lRANGA MVP!"
        set line 1 of lore of {_i2} to "&7Wyglad: &bMVP &7%player%"
        set line 2 of lore of {_i2} to "&7Czas rangi: &cna zawsze"
        set line 3 of lore of {_i2} to "&7Tryb: &cBedWars"
        set line 4 of lore of {_i2} to "&7Cena: &cJedyne: &a11,07zl!"
        set line 5 of lore of {_i2} to ""
        set line 10 of lore of {_i2} to "&eKliknij, aby kupic!"
        set slot 11 of current inventory of player to {_i2}
        
        set {_i3} to emerald block
        set name of {_i3} to "&c&lTwój stan konta!"
        set line 1 of lore of {_i3} to "&7Zlotówki: &b0,00zl"
        set line 2 of lore of {_i3} to ""
        set line 3 of lore of {_i3} to "&eKliknij, aby doladowac!"
        set slot 49 of current inventory of player to {_i3}

I wygląda to tak: F2zxiKr.png

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211652
Udostępnij na innych stronach

  • 0

Zmień formatowanie w NotePadzie czy czymkolwiek na UTF-8. Powinno pomóc. Jeśli nie to zrób tak

Set {_i} to Red wool

Set name of {_i} to "nazwa"

Set line 1 of lore of {_i} to "1"

Set line 2 of lore of {_i} to "2"

Set slot 1 of player's current inventory to {_i}

 

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211659
Udostępnij na innych stronach

  • 0
25 minut temu, _AvaX_ napisał:

Zmień formatowanie w NotePadzie czy czymkolwiek na UTF-8. Powinno pomóc. Jeśli nie to zrób tak

Set {_i} to Red wool

Set name of {_i} to "nazwa"

Set line 1 of lore of {_i} to "1"

Set line 2 of lore of {_i} to "2"

Set slot 1 of player's current inventory to {_i}

 

W tamtym kodzie brakowało jednej linijki na którym slocie ma byc, zerknij sobie ranga VIP

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211664
Udostępnij na innych stronach

  • 0
[18:06:51] [Server thread/INFO]: [Skript] Reloading rangiGUI.sk...
[18:06:51] [Server thread/ERROR]: indentation error: expected 20 spaces, but found 3 tabs (rangiGUI.sk, line 29: send "&f&lSKLEP > &7Posiadasz zbyt malo zlotówek na kupno tej rangi."')
[18:06:51] [Server thread/ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (rangiGUI.sk, line 27: send "&f&lSKLEP > &7Ranga zostala kupiona i nadana, milej gry!')
[18:06:51] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (rangiGUI.sk, line 28: else:')
[18:06:51] [Server thread/INFO]: [Skript] Encountered 3 errors while reloading rangiGUI.sk!

A kod to

on inventory click:
    if inventory name of player's current inventory contains "&c&lKUPNO RANG - SKLEP":
        cancel event
        if clicked slot is 20:
            if {zlotowki.%player%} is bigger or equal to 10:
                send "&f&lSKLEP > &7Ranga zostala kupiona i nadana, milej gry!
                else:
            send "&f&lSKLEP > &7Posiadasz zbyt malo zlotówek na kupno tej rangi."

 

Zrobię co kolwiek lub też dobrze to inny błąd.

Odnośnik do komentarza
https://skript.pl/temat/32553-guilore/#findComment-211669
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.

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

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