Skocz do zawartości
  • 1

Niech ktoś sie podejmie ;)


Pytanie

Siemanko. Chodzi mi o skrypt na Ekwipunek . Po wpisaniu /menu wyświetlało by się gui z 
Ekwipunek startowy - free
[Zabij 30 graczy] Ekwipunek Początkujący 
[Zabij 60 graczy] 
[Zabij 100 graczy] 

itd.


Jesli gracz kliknie na zestaw po zabiciu danej ilosci graczy to odblokowujue mu sie nastepny ;) 

Prosiłbym o skrypta na PW 

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/
Udostępnij na innych stronach

14 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
12 minut temu, kapi. napisał:
Dzieki mordko ale błedy :) 
skript reload all
[20:49:40 INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading the config and all scripts...[m
[20:49:40 INFO]: Loaded a total of 11504 english aliases
[20:49:40 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. (System.sk, line 93: if {poczatkujacy::%player%} is true:')
[20:49:40 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. (System.sk, line 96: if {sredniozaawansowany::%player%} is true:')
[20:49:40 ERROR]: '"/menu 1" as op]' is not a text (System.sk, line 88: format slot 10 of chest with 1 of chest named "&6Ekwipunek poczatkujacy" to close then run [make player command "/menu 1" as op]')
[20:49:40 ERROR]: '"/menu 2" as op]' is not a text (System.sk, line 89: format slot 12 of chest with 1 of chest named "&6Ekwipunek sredniozaawansowany" to close then run [make player command "/menu 2" as op]')
[20:49:40 ERROR]: '"/menu 3" as op]' is not a text (System.sk, line 90: format slot 14 of chest with 1 of chest named "&6Ekwipunek zaawansowany" to close then run [make player command "/menu 3" as op]')
[20:49:40 INFO]: Loaded 5 scripts with a total of 12 triggers and 10 commands in 0.35 seconds
[20:49:40 INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 3 errors while reloading the config and all scripts![m
[20:50:11 INFO]: [0;30;1m» [0;37;22mFacebook [0;32;1mfacebook.com/xxxpl[0;37;22m.[m
 
 
Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210259
Udostępnij na innych stronach

  • 0
8 minut temu, JaTrollek napisał:
Dzieki mordko ale błedy :) 
skript reload all
[20:49:40 INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading the config and all scripts...[m
[20:49:40 INFO]: Loaded a total of 11504 english aliases
[20:49:40 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. (System.sk, line 93: if {poczatkujacy::%player%} is true:')
[20:49:40 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. (System.sk, line 96: if {sredniozaawansowany::%player%} is true:')
[20:49:40 ERROR]: '"/menu 1" as op]' is not a text (System.sk, line 88: format slot 10 of chest with 1 of chest named "&6Ekwipunek poczatkujacy" to close then run [make player command "/menu 1" as op]')
[20:49:40 ERROR]: '"/menu 2" as op]' is not a text (System.sk, line 89: format slot 12 of chest with 1 of chest named "&6Ekwipunek sredniozaawansowany" to close then run [make player command "/menu 2" as op]')
[20:49:40 ERROR]: '"/menu 3" as op]' is not a text (System.sk, line 90: format slot 14 of chest with 1 of chest named "&6Ekwipunek zaawansowany" to close then run [make player command "/menu 3" as op]')
[20:49:40 INFO]: Loaded 5 scripts with a total of 12 triggers and 10 commands in 0.35 seconds
[20:49:40 INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 3 errors while reloading the config and all scripts![m
[20:50:11 INFO]: [0;30;1m» [0;37;22mFacebook [0;32;1mfacebook.com/xxxpl[0;37;22m.[m
 
 

Z tego co wiem do FORMAT SLOT, chyba jest potrzebne TuSke lub Umbaska...

zastąp to 'set player's current inventory's slot' i 'on inventory click'

Edytowane przez Grex
Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210262
Udostępnij na innych stronach

  • 0
options:
	Menu: &cMenu Killi
variables:
	{Kille::%player%} = 0
on death of player:
	if attacker is player:
		add 1 to {Kille::%attacker%}
		send "&cZabiles gracza &a%victim% &c!" to attacker
		send "&cDOdano &a1 &cdo killi!" to attacker
		send "&cPosiadasz &d&l%{Kille::%attacker%}% &ckilli!" to attacker
command /menu [<text>]:
	trigger:
  		open chest with 3 rows named "{@Menu}" to player
  		set player's current inventory's slot 10 to wooden sword named "&cKit startowy!" with lore "&aOtrzymany na start! zabijaj graczy, i odblokuje lepsze!"
  		if {Kille::%player%} is bigger than 29:
			set player's current inventory's slot 11 to stone sword named "&cZestaw 2!"
  		else:
  			set player's current inventory's slot 11 to coal named "&cAby odblokowac musisz zabic 30 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"
  		if {Kille::%player%} is bigger than 59:
  			set player's current inventory's slot 12 to golden sword named "&cZestaw 3!"
  		else:
  			set player's current inventory's slot 12 to coal named "&cAby odblokowac musisz zabic 60 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"
on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
  			#Dawanie zestawu, sam zrob...
  		if clicked slot is 11:
  			if {Kille::%player%} is bigger than 29:
  				#Dawanie zestawu, sam zrob...
  			else:
  				send "&cNie zabiles tylu osob!" to player
  		if clicked slot is 12:
  			if {Kille::%player%} is bigger than 59:
  				#Dawanie zestawu, sam zrob...
  			else:
  				send "&cNie zabiles tylu osob!" to player

Tak powinno dzialac... jeśli nie działa, pisz... nowe zestawy możesz dodawać sam, patrząc na te co ja zrobiłem...

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210314
Udostępnij na innych stronach

  • 0
3 godziny temu, Grex napisał:

options:
	Menu: &cMenu Killi
variables:
	{Kille::%player%} = 0
on death of player:
	if attacker is player:
		add 1 to {Kille::%attacker%}
		send "&cZabiles gracza &a%victim% &c!" to attacker
		send "&cDOdano &a1 &cdo killi!" to attacker
		send "&cPosiadasz &d&l%{Kille::%attacker%}% &ckilli!" to attacker
command /menu [<text>]:
	trigger:
  		open chest with 3 rows named "{@Menu}" to player
  		set player's current inventory's slot 10 to wooden sword named "&cKit startowy!" with lore "&aOtrzymany na start! zabijaj graczy, i odblokuje lepsze!"
  		if {Kille::%player%} is bigger than 29:
			set player's current inventory's slot 11 to stone sword named "&cZestaw 2!"
  		else:
  			set player's current inventory's slot 11 to coal named "&cAby odblokowac musisz zabic 30 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"
  		if {Kille::%player%} is bigger than 59:
  			set player's current inventory's slot 12 to golden sword named "&cZestaw 3!"
  		else:
  			set player's current inventory's slot 12 to coal named "&cAby odblokowac musisz zabic 60 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"
on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
  			#Dawanie zestawu, sam zrob...
  		if clicked slot is 11:
  			if {Kille::%player%} is bigger than 29:
  				#Dawanie zestawu, sam zrob...
  			else:
  				send "&cNie zabiles tylu osob!" to player
  		if clicked slot is 12:
  			if {Kille::%player%} is bigger than 59:
  				#Dawanie zestawu, sam zrob...
  			else:
  				send "&cNie zabiles tylu osob!" to player

Tak powinno dzialac... jeśli nie działa, pisz... nowe zestawy możesz dodawać sam, patrząc na te co ja zrobiłem...

Dodasz na jakaś strone bo taby są

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210337
Udostępnij na innych stronach

  • 0

Myślę że zrozumiesz...

Według tego co napisałem, jest tam np:

if {Kille::%player%} is bigger than 29:
	set player's current inventory's slot 11 to stone sword named "&cZestaw 2!"

i

else:
  	set player's current inventory's slot 11 to coal named "&cAby odblokowac musisz zabic 30 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"

a kolejne zestawy dodajesz dając tam te obie, czyli np dodajesz w komendzie:

if {Kille::%player%} is bigger than (Liczba killi):
  			set player's current inventory's slot (nr slota) to golden sword named "&cNazwa Zestawu"
  		else:
  			set player's current inventory's slot (nr slota) to coal named "&cAby odblokowac musisz zabic 60 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"

jednak, to nie zadziała po kliknięciu... więc musisz dokleić w 'on inventory click' :

if clicked slot is (nr slota):
  		if {Kille::%player%} is bigger than (Ilosc killi):
  			#Dawanie zestawu, sam zrob...
  		else:
  			send "&cNie zabiles tylu osob!" to player
Edytowane przez Grex
.
Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210340
Udostępnij na innych stronach

  • 0
30 minut temu, JaTrollek napisał:

Dodasz na jakaś strone bo taby są

Dobra poradziłem s

 

2 minuty temu, Grex napisał:

Myślę że zrozumiesz...

Według tego co napisałem, jest tam np:


if {Kille::%player%} is bigger than 29:
	set player's current inventory's slot 11 to stone sword named "&cZestaw 2!"

i


else:
  	set player's current inventory's slot 11 to coal named "&cAby odblokowac musisz zabic 30 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"

a kolejne zestawy dodajesz dając tam te obie, czyli np dodajesz w komendzie:


if {Kille::%player%} is bigger than (Liczba killi):
  			set player's current inventory's slot (nr slota) to golden sword named "&cNazwa Zestawu"
  		else:
  			set player's current inventory's slot (nr slota) to coal named "&cAby odblokowac musisz zabic 60 osob!" with lore "&cZabito juz: &4%{Kille::%player%}%"

jednak, to nie zadziała po kliknięciu... więc musisz dokleić w 'on inventory click' :


if clicked slot is (nr slota):
  		if {Kille::%player%} is bigger than (Ilosc killi):
  			#Dawanie zestawu, sam zrob...
  		else:
  			send "&cNie zabiles tylu osob!" to player

A gdzie itemy do zestawu sie dodaje? :) 

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210341
Udostępnij na innych stronach

  • 0

Itemki trzeba zrobić tak, jak masz komendę jakąś na kity:

on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
			execute (console lub player) command "KOMENDA NA KITY"

a jeśli chcesz autorskie kity w SKRIPT to jakoś tak:

on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
			clear player's inventory #Opcjonalnie, czyszczenie ekwipunku gracza
			add (ilosc) of (item, np: diamond sword) to the player

 

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210342
Udostępnij na innych stronach

  • 0
18 minut temu, Grex napisał:

Itemki trzeba zrobić tak, jak masz komendę jakąś na kity:


on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
			execute (console lub player) command "KOMENDA NA KITY"

a jeśli chcesz autorskie kity w SKRIPT to jakoś tak:


on inventory click:
	if inventory name of player's current inventory is "{@Menu}":
  		cancel event
  		if clicked slot is 10:
			clear player's inventory #Opcjonalnie, czyszczenie ekwipunku gracza
			add (ilosc) of (item, np: diamond sword) to the player

 

Napisalem do ciebie na pw ;) 

Odnośnik do komentarza
https://skript.pl/temat/32348-niech-kto%C5%9B-sie-podejmie/#findComment-210344
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ę...