Skocz do zawartości
  • 0

Ilość wykopanego stone + drewna +top10 w GUI


yolinho

Pytanie

Tak jak w temacie, poszukuję skryptu(nie mogłem znaleźć) na coś w stylu komendy /stone - otwiera się okno, menu i mamy tam 10 główek graczy(top10 osób, które wykopały najwięcej) i po prawej na dole główka, ale tym razem z ilością wykopanego stone przez gracza, który przegląda top10 :) Mam nadzieję, że dobrze wytłumaczyłem :/ 

 

+top ściętego drewna, na tej samej zasadzie :D


Pozdrawiam, yolinho

Edytowane przez yolinho
Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
58 minut temu, ByczekTV napisał:

Nie da się dać głów graczy do gui, da się jedynie zwykłą głowe.

Może być zwykła?

Może być, a dało by się wtedy, że zamiast Player Head by pisało nick gracza? Dobra nevermind - to jest izi, także co do pytania - może być.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

variables:
    {stone::%player%} = 0
    {wood::%player%} = 0
command /stone:
    trigger:
        open chest with 3 rows named "TOP10 Stone" to player
        wait 2 tick
        set {_} to 0
        set {_num} to size of {stone::*}    
        loop {_num} times:        
            loop {stone::*}:    
                {_v.%loop-number%} is not set:        
                    set {_v.%loop-number%} to loop-value
                    set {_n.%loop-number%} to loop-index    
                loop-value is greater than {_v.%loop-number%}:    
                    set {_v.%loop-number%} to loop-value            
                    set {_n.%loop-number%} to loop-index        
                remove {_v.%loop-number%} from {stone::*}
        loop {_num} times:
            add 1 to {_}
            if "%{_n.%loop-number%}%" is "%player%":
                format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
        set {_} to 1
        loop {_num} times:        
            loop-number is less than or equal to 10:        
                format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
                add 1 to {_}    
                set {stone::%{_n.%loop-number%}%} to {_v.%loop-number%}    
            {_num} is less than 10:        
                set {_r} to {_num}        
                loop 10 - {_num} times:            
                    add 1 to {_r}
                    format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
                    add 1 to {_}
        size of {stone::*} = 0:
            loop 10 times:
                format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
command /drewno:
    trigger:
        open chest with 3 rows named "TOP10 Drewana" to player
        wait 2 tick
        set {_} to 0
        set {_num} to size of {wood::*}    
        loop {_num} times:        
            loop {wood::*}:    
                {_v.%loop-number%} is not set:        
                    set {_v.%loop-number%} to loop-value
                    set {_n.%loop-number%} to loop-index    
                loop-value is greater than {_v.%loop-number%}:    
                    set {_v.%loop-number%} to loop-value            
                    set {_n.%loop-number%} to loop-index        
                remove {_v.%loop-number%} from {wood::*}
        loop {_num} times:
            add 1 to {_}
            if "%{_n.%loop-number%}%" is "%player%":
                format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
        set {_} to 1
        loop {_num} times:        
            loop-number is less than or equal to 10:        
                format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
                add 1 to {_}    
                set {wood::%{_n.%loop-number%}%} to {_v.%loop-number%}    
            {_num} is less than 10:        
                set {_r} to {_num}        
                loop 10 - {_num} times:            
                    add 1 to {_r}
                    format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
                    add 1 to {_}
        size of {wood::*} = 0:
            loop 10 times:
                format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
on break of stone:
    add 1 to {stone::%player%}
on break of wood:
    add 1 to {wood::%player%}


 

 

prosze

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Dnia 11.06.2017 o 12:42, kaol48s napisał:
Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Ukryj zawartość

variables:
    {stone::%player%} = 0
    {wood::%player%} = 0
command /stone:
    trigger:
        open chest with 3 rows named "TOP10 Stone" to player
        wait 2 tick
        set {_} to 0
        set {_num} to size of {stone::*}    
        loop {_num} times:        
            loop {stone::*}:    
                {_v.%loop-number%} is not set:        
                    set {_v.%loop-number%} to loop-value
                    set {_n.%loop-number%} to loop-index    
                loop-value is greater than {_v.%loop-number%}:    
                    set {_v.%loop-number%} to loop-value            
                    set {_n.%loop-number%} to loop-index        
                remove {_v.%loop-number%} from {stone::*}
        loop {_num} times:
            add 1 to {_}
            if "%{_n.%loop-number%}%" is "%player%":
                format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
        set {_} to 1
        loop {_num} times:        
            loop-number is less than or equal to 10:        
                format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
                add 1 to {_}    
                set {stone::%{_n.%loop-number%}%} to {_v.%loop-number%}    
            {_num} is less than 10:        
                set {_r} to {_num}        
                loop 10 - {_num} times:            
                    add 1 to {_r}
                    format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
                    add 1 to {_}
        size of {stone::*} = 0:
            loop 10 times:
                format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
command /drewno:
    trigger:
        open chest with 3 rows named "TOP10 Drewana" to player
        wait 2 tick
        set {_} to 0
        set {_num} to size of {wood::*}    
        loop {_num} times:        
            loop {wood::*}:    
                {_v.%loop-number%} is not set:        
                    set {_v.%loop-number%} to loop-value
                    set {_n.%loop-number%} to loop-index    
                loop-value is greater than {_v.%loop-number%}:    
                    set {_v.%loop-number%} to loop-value            
                    set {_n.%loop-number%} to loop-index        
                remove {_v.%loop-number%} from {wood::*}
        loop {_num} times:
            add 1 to {_}
            if "%{_n.%loop-number%}%" is "%player%":
                format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
        set {_} to 1
        loop {_num} times:        
            loop-number is less than or equal to 10:        
                format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
                add 1 to {_}    
                set {wood::%{_n.%loop-number%}%} to {_v.%loop-number%}    
            {_num} is less than 10:        
                set {_r} to {_num}        
                loop 10 - {_num} times:            
                    add 1 to {_r}
                    format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
                    add 1 to {_}
        size of {wood::*} = 0:
            loop 10 times:
                format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
on break of stone:
    add 1 to {stone::%player%}
on break of wood:
    add 1 to {wood::%player%}




 

 

prosze

Dzięki, a chciało by Ci się jeszcze to zmienić pod jedną komendę - /top
Tam będzie się wyświetlało GUI i dwa wybory - drewno i kamień, a dalej tak jak miało być? :P

Edytowane przez PoweredDragon
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

variables:
    {stone::%player%} = 0
    {wood::%player%} = 0
command /top [<text>]:
	trigger:
		if arg-1 is not set:
			open chest with 1 rows named "TOP10 Menu" to player
			wait 2 tick
			format slot 0 of player with stone named "&8Top 10 stone" to run [execute player command "/top stone"]
			format slot 1 of player with oak log named "&8Top 10 drewna" to run [execute player command "/top wood"]
			format slot 2 of player with light gray glass pane named " " to be unstealable 
			format slot 3 of player with light gray glass pane named " " to be unstealable 
			format slot 4 of player with light gray glass pane named " " to be unstealable 
			format slot 5 of player with light gray glass pane named " " to be unstealable 
			format slot 6 of player with light gray glass pane named " " to be unstealable 
			format slot 7 of player with light gray glass pane named " " to be unstealable 
			format slot 8 of player with light gray glass pane named " " to be unstealable 
		if arg-1 is "stone":
			open chest with 3 rows named "TOP10 Stone" to player
			wait 2 tick
			set {_} to 0
			set {_num} to size of {stone::*}    
			loop {_num} times:        
				loop {stone::*}:    
					{_v.%loop-number%} is not set:        
						set {_v.%loop-number%} to loop-value
						set {_n.%loop-number%} to loop-index    
					loop-value is greater than {_v.%loop-number%}:    
						set {_v.%loop-number%} to loop-value            
						set {_n.%loop-number%} to loop-index        
					remove {_v.%loop-number%} from {stone::*}
			loop {_num} times:
				add 1 to {_}
				if "%{_n.%loop-number%}%" is "%player%":
					format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
			set {_} to 1
			loop {_num} times:        
				loop-number is less than or equal to 10:        
					format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
					add 1 to {_}    
					set {stone::%{_n.%loop-number%}%} to {_v.%loop-number%}    
				{_num} is less than 10:        
					set {_r} to {_num}        
					loop 10 - {_num} times:            
						add 1 to {_r}
						format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
						add 1 to {_}
			size of {stone::*} = 0:
				loop 10 times:
					format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
		if arg-1 is "wood"
			open chest with 3 rows named "TOP10 Drewana" to player
			wait 2 tick
			set {_} to 0
			set {_num} to size of {wood::*}    
			loop {_num} times:        
				loop {wood::*}:    
					{_v.%loop-number%} is not set:        
						set {_v.%loop-number%} to loop-value
						set {_n.%loop-number%} to loop-index    
					loop-value is greater than {_v.%loop-number%}:    
						set {_v.%loop-number%} to loop-value            
						set {_n.%loop-number%} to loop-index        
					remove {_v.%loop-number%} from {wood::*}
			loop {_num} times:
				add 1 to {_}
				if "%{_n.%loop-number%}%" is "%player%":
					format slot 26 of player with player head named "&6%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
			set {_} to 1
			loop {_num} times:        
				loop-number is less than or equal to 10:        
					format slot {_} -1 of player with player head named "&1&l%{_}%. %{_n.%loop-number%}% (%{_v.%loop-number%}%)" to be unstealable
					add 1 to {_}    
					set {wood::%{_n.%loop-number%}%} to {_v.%loop-number%}    
				{_num} is less than 10:        
					set {_r} to {_num}        
					loop 10 - {_num} times:            
						add 1 to {_r}
						format slot {_} -1  of player with player head named "&8&l%{_r}%. BRAK" to be unstealable    
						add 1 to {_}
			size of {wood::*} = 0:
				loop 10 times:
					format slot loop-number -1 of player with player head named "&8&l%{_r}%. BRAK" to be unstealable
on break of stone:	
	add 1 to {stone::%player%}
on break of wood:
	add 1 to {wood::%player%} 

 

 

Edytowane przez kaol48s
Odnośnik do komentarza
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ę...