Skocz do zawartości
  • 0

Problem z dawaniem itemu dla gracza.


R4VD0R
 Udostępnij

Pytanie

Mam problem chce zrobić skrypt na premium case ale nie wiem co zrobić żeby można było podać liczbę ile gracz ma tego dostac.

Tu jest skrypt:

command /premiumcase <text> <player> <text>:
    trigger:
        if arg 1 is "daj":
            if arg 2 is set:
                give %player-arg% %argument 2% chest named "&cPremium Case" 
                send "&8>>> &bDales &7%arg 2%x &cpremium case &bdla gracza &7%player%&b!"
            if arg 2 is not set:
                send "&8>>> &cMusisz podac ilosc!"
        if arg 1 is not set:
            send "&8>>> &cPoprawne uzycie pod &7/premiumcase help&c!"

 

Edytowane przez xAxee
xAxee

Wstawiam w code.

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, R4VD0R napisał:

Mam problem chce zrobić skrypt na premium case ale nie wiem co zrobić żeby można było podać liczbę ile gracz ma tego dostac.

Tu jest skrypt:

command /premiumcase <text> <player> <text>:
    trigger:
        if arg 1 is "daj":
            if arg 2 is set:
                give %player-arg% %argument 2% chest named "&cPremium Case" 
                send "&8>>> &bDales &7%arg 2%x &cpremium case &bdla gracza &7%player%&b!"
            if arg 2 is not set:
                send "&8>>> &cMusisz podac ilosc!"
        if arg 1 is not set:
            send "&8>>> &cPoprawne uzycie pod &7/premiumcase help&c!"

 

command /premiumcase [<text>] [<player>] [<integer>]:
	trigger:
		if arg 1 is "daj":
			if arg 2 is not set:
				send "&8>>> &cMusisz podac gracza!" to player
				stop
			if arg 3 is not set:
				send "&8>>> &cMusisz podac ilosc!" to player
				stop
			set {_int} to arg 3
			give arg 2 {_int} of chest named "&cPremium Case"
			send "&8>>> &bDales &7%{_int}%x &cpremium case &bdla gracza &7%arg 2%&b!" to player
		if arg 1 is not set:
			send "&8>>> &cPoprawne uzycie pod &7/premiumcase help&c!" to player

Proszę. Należy użyć komendy /premiumcase daj <gracz> <liczba>.

Edytowane przez xAxee
xAxee

Poprawiam cytat.

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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