Skocz do zawartości
  • 0

Wykonywanie komendy jezeli gracz ma itemki


Pytanie

Siema, mam prosbe napisze mi ktos skript ktory po wpisaniu komendy /zaloz (tag) (nazwa) (gracz musi miec itemki na gildie: 64 diamenty, 64 emeraldy, 64 zlota, 64 zelaza, 64 wegla, 16 perel, 64 diaxy, 16 refow, 64 drewna) wykona komende /lol

Ogolnie dzieki za odp xD

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

@HiSzPaNVIP

35 minut temu, HiSzPaNVIP napisał:

To napisz Skrypy na Gildie :)

bo to co napisałeś to są gildie 

Nie chce skriptu na gildie... Mam plugin na gildie i gdy gracz zaklada gildie to sprawdza czy ma itemy i dodatkowo wykonuje komende /lol (nie usuwa itemow tylko sprawdza czy je ma...) if player has .... ... ... ... .... ... . ;)

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78140
Udostępnij na innych stronach

  • 0

@HiSzPaNVIP Wez mi tu postow nie nabijaj bo to niema roznicy jaki mam plugin na gildie ;0 ... FunnyGuilds Jak juz... Napisalem takie cos:

command /zaloz <text> <text>:
    trigger:
        if player has 4 tnt and 2 cobblestone and 1 torch:
        execute player command "lol"
        else:
        send "[&cSERVER&r]&bNie masz odpowiednich przedmiotów!" to player
        stop trigger

Ale niedziala bo wykonuje komende nawet jak itow niemam

Edytowane przez Griness1337
Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78142
Udostępnij na innych stronach

  • 0

@Pan_1337 Niedziala

command /zaloz <text> <text>:
    trigger:
        if player has 4 tnt or 2 cobblestone or 1 torch:
        execute player command "lol"
        else:
        send "[&cSERVER&r]&bNie masz odpowiednich przedmiotów!" to player
        stop trigger

Bledy:

Spoiler
[09:35:27 INFO]: [Skript] Reloading the config and all scripts...
[09:35:28 INFO]: Loaded a total of 11504 english aliases
[09:35:28 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sds.sk, line 3: if player has 4 tnt or 2 cobblestone or 1 torch:')
[09:35:28 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sds.sk, line 5: else:')
[09:35:28 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (sds.sk, line 5: else:')
[09:35:28 INFO]: Loaded 1 script with a total of 0 triggers and 1 command in 0.01 seconds
[09:35:28 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!

Przy okazji xD... CHcialbym zeby wykonalo ta komende gdy nawetniema do niej uprawnien :)

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78176
Udostępnij na innych stronach

  • 0
command /zaloz [<text>] [<text>]:
	trigger:
  		if arg 1 is empty:
  			message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"
  			stop
 		else:
  			if arg 2 is empty:
  				message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"
  				stop
 			else:
  				if player has 64 diamond nad 64 emerald and 64 gold ingot:
  					execute player command "lol"
  					stop
 				else:
  					message "&e[Gildie] &c&lNie posiadasz wymagancyh przedmiotow do zalozenia gildii !"
  					stop

maybe working, maybe not.

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78236
Udostępnij na innych stronach

  • 0
10 minut temu, krzysek napisał:

command /zaloz [<text>] [<text>]:
	trigger:
  		if arg 1 is empty:
  			message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"
  			stop
 		else:
  			if arg 2 is empty:
  				message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"
  				stop
 			else:
  				if player has 64 diamond nad 64 emerald and 64 gold ingot:
  					execute player command "lol"
  					stop
 				else:
  					message "&e[Gildie] &c&lNie posiadasz wymagancyh przedmiotow do zalozenia gildii !"
  					stop

maybe working, maybe not.

@krzysekNiedziala:

Bledy:

 
Spoiler
[16:11:03 INFO]: [Skript] Reloading the config and all scripts...
[16:11:03 INFO]: Loaded a total of 11504 english aliases
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 3: if arg 1 is empty:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 4: message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 5: stop')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '_->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 6: else:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 7: if arg 2 is empty:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 8: message "&e[Gildie] &c&lPoprawne uzycie: /zaloz [tag] [nazwa]"')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 9: stop')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '_->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 10: else:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 11: if player has 64 diamond nad 64 emerald and 64 gold ingot:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 12: execute player command "lol"')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 13: stop')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '_->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 14: else:')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 15: message "&e[Gildie] &c&lNie posiadasz wymagancyh przedmiotow do zalozenia gildii !"')
[16:11:03 ERROR]: indentation error: expected 2 tabs, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (sds.sk, line 16: stop')
[16:11:03 INFO]: Loaded 1 script with a total of 0 triggers and 1 command in 0.01 seconds
[16:11:03 INFO]: [Skript] Encountered 14 errors while reloading the config and all scripts!
 

 

 

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78240
Udostępnij na innych stronach

  • 0

@krzysek

[16:36:50 INFO]: [Skript] Reloading the config and all scripts...
[16:36:50 INFO]: Loaded a total of 11504 english aliases
[16:36:51 ERROR]: '64 diamond nad 64 emerald' is not an item type (sds.sk, line 12: if player has 64 diamond nad 64 emerald and 64 gold ingot:')
[16:36:51 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (sds.sk, line 15: else:')
[16:36:51 INFO]: Loaded 1 script with a total of 0 triggers and 1 command in 0.2 seconds
[16:36:51 INFO]: [Skript] Encountered 2 errors while reloading the config and all scripts!

 

Odnośnik do komentarza
https://skript.pl/temat/10597-wykonywanie-komendy-jezeli-gracz-ma-itemki/#findComment-78242
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ę...