command /dajst [<offline player>] [<text>]:
trigger:
if arg 1 is not set:
send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]"
stop
if arg 2 is not "diamond" or "iron" or "stone" or "wood":
send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]"
stop
if arg 2 is "diamond" or "iron" or "stone" or "wood":
if arg 1 is set:
set {_player} to arg 1
if arg 1 is offline:
send "&7[&c!&7] &6| &cNie znaleziono gracza."
stop
else:
set {_player} to player
give {_player} {_arg2} pickaxe named "&bKilof &5(StatTrak™) | &bDiamentowy" with lore "&8Wykopany kamień: &70"
if {_player} is not player:
send "&7[&c!&7] &6| &2Otrzymałeś diamentowy kilof od &c%player%&2." to {_player}
Chce aby z argumentu numer 2, pobierało mi poszczególną nazwę przedmiotu, czyli diamond lub iron lub stone ... W jaki sposób to dokonać? Nie mam pomysłów.
Pytanie
Ciastuuś 0
Cześć,
Mam taki oto kod:
command /dajst [<offline player>] [<text>]: trigger: if arg 1 is not set: send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]" stop if arg 2 is not "diamond" or "iron" or "stone" or "wood": send "&7[&c!&7] &6| &c/dajst [nick] [diamond/iron/stone/wood]" stop if arg 2 is "diamond" or "iron" or "stone" or "wood": if arg 1 is set: set {_player} to arg 1 if arg 1 is offline: send "&7[&c!&7] &6| &cNie znaleziono gracza." stop else: set {_player} to player give {_player} {_arg2} pickaxe named "&bKilof &5(StatTrak™) | &bDiamentowy" with lore "&8Wykopany kamień: &70" if {_player} is not player: send "&7[&c!&7] &6| &2Otrzymałeś diamentowy kilof od &c%player%&2." to {_player}Chce aby z argumentu numer 2, pobierało mi poszczególną nazwę przedmiotu, czyli diamond lub iron lub stone ... W jaki sposób to dokonać? Nie mam pomysłów.
Odnośnik do komentarza
https://skript.pl/temat/46326-b%C5%82%C4%85d-w-argumencie/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi
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ą.