Mam problem ze skryptem, gdyż się ich dopiero uczę i coś nie pyka. Daje mi 3 papierki z każdego "arg". Kiedy chce tylko z jednego argumentu.
Pomocy
Spoiler
command /plan [<text>]:
trigger:
if arg 1 is not set:
send "&ePoprawne użycie to &e&l/plan klasa1/klasa2/klasa3" to player
if arg 1 is "klasa1":
give paper named "&7Plan lekcji klasy 1" to player
send "&9Hogwart &7>> &eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 1":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
if arg 1 is "klasa2":
give paper named "&7Plan lekcji klasy 2" to player
send "&eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 2":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
if arg 1 is "klasa3":
give paper named "&7Plan lekcji klasy 3" to player
send "&eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 3":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
Pytanie
SeksiakQba 0
Dżem dobry, a wręcz dobry wieczór
Mam problem ze skryptem, gdyż się ich dopiero uczę i coś nie pyka. Daje mi 3 papierki z każdego "arg". Kiedy chce tylko z jednego argumentu.
Pomocy
command /plan [<text>]:
trigger:
if arg 1 is not set:
send "&ePoprawne użycie to &e&l/plan klasa1/klasa2/klasa3" to player
if arg 1 is "klasa1":
give paper named "&7Plan lekcji klasy 1" to player
send "&9Hogwart &7>> &eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 1":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
if arg 1 is "klasa2":
give paper named "&7Plan lekcji klasy 2" to player
send "&eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 2":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
if arg 1 is "klasa3":
give paper named "&7Plan lekcji klasy 3" to player
send "&eAby użyc planu, kliknij prawy przycisk myszy!"
on rightclick:
if player's tool is paper named "&7Plan leckji klasy 3":
send "&9&l---------------------------------------------" to player
send "&3&lPoniedziałek: &9Dodatkowe lekcje &3&l|" to player
send "&9&l---------------------------------------------" to player
send "&3&lWtorek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lŚroda: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lCzwartek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lPiątek: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lSobota: &9Brak!" to player
send "&9&l---------------------------------------------" to player
send "&3&lNiedziela: &9Brak!" to player
send "&9&l---------------------------------------------" to player
Edytowane przez SeksiakQbaOdnośnik do komentarza
https://skript.pl/temat/14651-pomoc-z-argumentami/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi