Skocz do zawartości
  • 0

Pomoc skrypt


h0p3

Pytanie

command /ritem [<text>] [<text>] [<text>]:
    trigger:
        if arg 1 is not set:
            send "&cWpisz nazwe itemu. (PO ANGIELSKU!) bez minecraft:"
        if arg 1 is set:
            set arg 1 to {_item}
            if arg 2 is not set:
                send "&cWpisz nazwe przedmiotu. Mozesz uzyc kolorow &"
            if arg 2 is set:
                if arg 3 is not set:
                    send "&cMozesz wpisac rowniez opis przedmiotu"
                    give player {_item} named "%arg 2%"
                if arg 3 is set:
                    give player {_item} named "%arg 2%" with lore "%arg 3%"

Coś nie tak ? Może złe zmienne zrobiłem? Proszę o pomoc!

Odnośnik do komentarza
https://skript.pl/temat/39870-pomoc-skrypt/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
32 minuty temu, h0p3 napisał:

command /ritem [<text>] [<text>] [<text>]:
    trigger:
        if arg 1 is not set:
            send "&cWpisz nazwe itemu. (PO ANGIELSKU!) bez minecraft:"
        if arg 1 is set:
            set arg 1 to {_item}
            if arg 2 is not set:
                send "&cWpisz nazwe przedmiotu. Mozesz uzyc kolorow &"
            if arg 2 is set:
                if arg 3 is not set:
                    send "&cMozesz wpisac rowniez opis przedmiotu"
                    give player {_item} named "%arg 2%"
                if arg 3 is set:
                    give player {_item} named "%arg 2%" with lore "%arg 3%"

Coś nie tak ? Może złe zmienne zrobiłem? Proszę o pomoc!

ommand /ritem <text> <integer> <integer>:
    permission: rafciolitems.use
    permission message: &cNie masz uprawnien!
    trigger:
        if arg 1 is not set:
            send "&cWpisz nazwe itemu. (PO ANGIELSKU!) bez minecraft:"
        if arg 1 is set:
            if player's tool isn't air:
                set {_name} to arg 1
                set name of player's tool to "%{_name}%"
            else:
                send "&cNie mozesz nazwac swojej reki :3"
            if arg 2 is not set:
                send "&fUzyj kolorkow: (&11, &22, &33, &44, &55, &66, &77, &88, &99)"
            if arg 2 is set:
                if player's tool isn't air:
                    if arg 2 is 1:
                        set name of player's tool to "&1%{_name}%"
                    if arg 2 is 2:
                        set name of player's tool to "&2%{_name}%"
                    if arg 2 is 3:
                        set name of player's tool to "&3%{_name}%"
                    if arg 2 is 4:
                        set name of player's tool to "&4%{_name}%"
                    if arg 2 is 5:
                        set name of player's tool to "&5%{_name}%"
                    if arg 2 is 6:
                        set name of player's tool to "&6%{_name}%"
                    if arg 2 is 7:
                        set name of player's tool to "&7%{_name}%"
                    if arg 2 is 8:
                        set name of player's tool to "&8%{_name}%"
                    if arg 2 is 9:
                        set name of player's tool to "&9%{_name}%"
                if arg 3 is not set:
                    send "&Uzyj &f(&b1 text, &m2 text, &n3 text)"
                if arg 3 is set:
                    if arg 2 is 1:
                        if arg 3 is 1:
                            set name of player's tool to "&1&b%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&1&m%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&1&n%{_name}%"
                    if arg 2 is 2:
                        if arg 3 is 1:
                            set name of player's tool to "&b&2%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&2%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&2%{_name}%"
                    if arg 2 is 3:
                        if arg 3 is 1:
                            set name of player's tool to "&b&3%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&3%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&3%{_name}%"
                    if arg 2 is 4:
                        if arg 3 is 1:
                            set name of player's tool to "&b&4%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&4%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&4%{_name}%"
                    if arg 2 is 5:
                        if arg 3 is 1:
                            set name of player's tool to "&b&5%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&5%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&5%{_name}%"
                    if arg 2 is 6:
                        if arg 3 is 1:
                            set name of player's tool to "&b&6%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&6%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&6%{_name}%"
                    if arg 2 is 7:
                        if arg 3 is 1:
                            set name of player's tool to "&b&7%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&7%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&7%{_name}%"
                    if arg 2 is 8:
                        if arg 3 is 1:
                            set name of player's tool to "&b&8%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&8%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&8%{_name}%"
                    if arg 2 is 9:
                        if arg 3 is 1:
                            set name of player's tool to "&b&9%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&9%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&9%{_name}%"

rozwiazalem problem

Odnośnik do komentarza
https://skript.pl/temat/39870-pomoc-skrypt/#findComment-249639
Udostępnij na innych stronach

  • 0
7 minut temu, h0p3 napisał:

ommand /ritem <text> <integer> <integer>:
    permission: rafciolitems.use
    permission message: &cNie masz uprawnien!
    trigger:
        if arg 1 is not set:
            send "&cWpisz nazwe itemu. (PO ANGIELSKU!) bez minecraft:"
        if arg 1 is set:
            if player's tool isn't air:
                set {_name} to arg 1
                set name of player's tool to "%{_name}%"
            else:
                send "&cNie mozesz nazwac swojej reki :3"
            if arg 2 is not set:
                send "&fUzyj kolorkow: (&11, &22, &33, &44, &55, &66, &77, &88, &99)"
            if arg 2 is set:
                if player's tool isn't air:
                    if arg 2 is 1:
                        set name of player's tool to "&1%{_name}%"
                    if arg 2 is 2:
                        set name of player's tool to "&2%{_name}%"
                    if arg 2 is 3:
                        set name of player's tool to "&3%{_name}%"
                    if arg 2 is 4:
                        set name of player's tool to "&4%{_name}%"
                    if arg 2 is 5:
                        set name of player's tool to "&5%{_name}%"
                    if arg 2 is 6:
                        set name of player's tool to "&6%{_name}%"
                    if arg 2 is 7:
                        set name of player's tool to "&7%{_name}%"
                    if arg 2 is 8:
                        set name of player's tool to "&8%{_name}%"
                    if arg 2 is 9:
                        set name of player's tool to "&9%{_name}%"
                if arg 3 is not set:
                    send "&Uzyj &f(&b1 text, &m2 text, &n3 text)"
                if arg 3 is set:
                    if arg 2 is 1:
                        if arg 3 is 1:
                            set name of player's tool to "&1&b%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&1&m%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&1&n%{_name}%"
                    if arg 2 is 2:
                        if arg 3 is 1:
                            set name of player's tool to "&b&2%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&2%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&2%{_name}%"
                    if arg 2 is 3:
                        if arg 3 is 1:
                            set name of player's tool to "&b&3%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&3%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&3%{_name}%"
                    if arg 2 is 4:
                        if arg 3 is 1:
                            set name of player's tool to "&b&4%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&4%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&4%{_name}%"
                    if arg 2 is 5:
                        if arg 3 is 1:
                            set name of player's tool to "&b&5%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&5%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&5%{_name}%"
                    if arg 2 is 6:
                        if arg 3 is 1:
                            set name of player's tool to "&b&6%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&6%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&6%{_name}%"
                    if arg 2 is 7:
                        if arg 3 is 1:
                            set name of player's tool to "&b&7%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&7%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&7%{_name}%"
                    if arg 2 is 8:
                        if arg 3 is 1:
                            set name of player's tool to "&b&8%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&8%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&8%{_name}%"
                    if arg 2 is 9:
                        if arg 3 is 1:
                            set name of player's tool to "&b&9%{_name}%"
                        if arg 3 is 2:
                            set name of player's tool to "&m&9%{_name}%"
                        if arg 3 is 3:
                            set name of player's tool to "&n&9%{_name}%"

rozwiazalem problem

Dodaj jeszcze w pierwszej linijce, brakuje "c" ;) 

Odnośnik do komentarza
https://skript.pl/temat/39870-pomoc-skrypt/#findComment-249640
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ę...