Skocz do zawartości
  • 0

proszę o pomoc w skrypcie


Pytanie

Może mi ktoś zrobić to samo tylko żeby też dawało "WSZYSTKIM" premiumcase ?

command /icase [<text>] [<player>] [<text>]:
    permission: icase.give
    permission message: &4Odmowa dostepu
    trigger:
        if arg-1 is "give":
            if arg-2 is not set:
                send "&cPodaj nick"
            else:
                if arg-3 is not set:
                    send "&cPodaj ilosc"
                    stop
                else:
                    execute console command "/give %arg-2% chest %arg-3% name:&c&lPremium_Case"
                    send "&aWykonano"
                    stop
        if arg-1 is "all":
            if arg-2 is "all":
                if arg-3 is not set:
                    send "&cPodaj ilosc"
                    stop
                else:
                    loop all players:
                        execute console command "/give loop-players chest %arg-3% name:&c&lPremium_Case"
                    send "&aWykonano"
                    stop

 

Edytowane przez TakiJakTy
TakiJakTy

Wstawiam w code.
Temat został zamknięty z powodu braku aktywności autora.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/36467-prosz%C4%99-o-pomoc-w-skrypcie/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /icase [<text>] [<text>] [<text>]:
    permission: icase.give
    permission message: &4Odmowa dostepu
    trigger:
        if arg-1 is "give":
            if arg-2 is not set:
                send "&cPodaj nick"
            else:
                if arg-3 is not set:
                    send "&cPodaj ilosc"
                    stop
                else:
                    execute console command "/give %arg-2% chest %arg-3% name:&c&lPremium_Case"
                    send "&aWykonano"
                    stop
        if arg-1 is "all":
            if arg-2 is "all":
                if arg-3 is set:
                    set {_i} to arg 3 parsed as integer
                    if {_i} is integer:
                        if {_i} is larger than 0:
                            set {_it} to "%{_i}% chest"
                            set {_it} to {_it} parsed as item
                            loop all players:
                                add {_it} named "&c&lPremium_Case" to players's inventory
                                send "&aWykonano"
                                stop
                else:
                    send "&cPodaj ilosc"
                    stop

Proszę o to twój poprawiony kod. Testowane działa

Odnośnik do komentarza
https://skript.pl/temat/36467-prosz%C4%99-o-pomoc-w-skrypcie/#findComment-233049
Udostępnij na innych stronach

  • 0
options:
	item: chest named "&c&lPremium Case"
command /icase [<offlineplayer>] [<number=8>]:
    permission: icase.give
    permission message: &4Odmowa dostepu
    trigger:
		if arg 1 is "*" or "all":
			send "&6caly serwer otrzymal premiumcase"
			add (arg 2 of {@item}) to all players
		else:
			set {_p} to "%arg 1%" parsed as player
			send "&7Otrzymales premium case!" to {_p}
			send "&7Dales premium case: &6%{_p}%" to player
			add (arg 2 of {@item}) to {_p}

 

Odnośnik do komentarza
https://skript.pl/temat/36467-prosz%C4%99-o-pomoc-w-skrypcie/#findComment-233117
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ę...