Skocz do zawartości
  • 0

Naprawa skryptu


JellyBeans
 Udostępnij

Pytanie

Cześć,

Moglibyście naprawić mi ten skrypt? No wiecie wytabować itd. Z góry dzięki za pomoc :)
 

on rightclick:    
    if event-block is sign:        
        if line 1 of the clicked block is "[Dzialka]":          
            if line 2 of the clicked block is "Kup":               
            if line 3 of the clicked block is set:                    
            if line 4 of the clicked block is set:                       
                set {_nazwa} to line 3 of the clicked block                       
                set {_cena} to line 4 of the clicked block                        
            if {kasa::%player%} is greater than or equal to {_cena}:              
            set {kupno::%{_nazwa}%} to true                   
            set {dzialka::%player%} to true                   
            remove {_cena} from {kasa::%player%}             
            execute server command "rg addmember %{_nazwa}% %player%"        
            send "Kupiles dzialke"                  
            set line 2 to "WYKUPIONA"                  
            set line 3 to "%player%"                    
        else:                          
            send "Nie ams tyle pieniedzy potrzebujesz: %{_cena}%"on sign change: 
        if line 1 is "[Dzialka]":    
        if line 2 is "kup":       
            if line 3 is not empty:            
                if line 4 is not empty:              
                if player is op:                     
                set {_liczba} to line 4 parsed as integer     
                if {_liczba} is set:                       
                    send "Tabliczka poprawna!"                  
                else:                          
                    send "4linijka musis byc liczba"        
                else:                       
                    send "Musisz miec OP"                    
                    set event-block to air                 
                    drop sign            
                    stop               
                else:            
                    send "4linijka to cena!"           
                    set event-block to air            
                    drop sign                 
                    stop      
                else:            
                    send "3linijka to nazwa regionu"           
                    set event-block to air            
                    drop sign              
                    stop

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on rightclick:    
	if event-block is sign:        
		if line 1 of the clicked block is "[Dzialka]":          
			if line 2 of the clicked block is "Kup":               
				if line 3 of the clicked block is set:                    
					if line 4 of the clicked block is set:                       
						set {_nazwa} to line 3 of the clicked block                       
						set {_cena} to line 4 of the clicked block                        
						if {kasa::%player%} is greater than or equal to {_cena}:              
							set {kupno::%{_nazwa}%} to true                   
							set {dzialka::%player%} to true                   
							remove {_cena} from {kasa::%player%}             
							execute server command "rg addmember %{_nazwa}% %player%"        
							send "Kupiles dzialke"                  
							set line 2 to "WYKUPIONA"                  
							set line 3 to "%player%"                    
						else:                          
							send "Nie masz tyle pieniedzy potrzebujesz: %{_cena}%"
on sign change:
	if line 1 is "[Dzialka]":    
		if line 2 is "kup":       
			if line 3 is not empty:            
				if line 4 is not empty:              
					if player is op:                     
						set {_liczba} to line 4 parsed as integer     
						if {_liczba} is set:                       
							send "Tabliczka poprawna!"   							
						else:                          
							send "4linijka musis byc liczba"
					else:                       
						send "Musisz miec OP"                    
						set event-block to air                 
						drop sign            
						stop  
				else:            
					send "4linijka to cena!"           
					set event-block to air            
					drop sign                 
					stop		
			else:            
				send "3linijka to nazwa regionu"           
				set event-block to air            
				drop sign              
				stop		

nie testowane jak cos to pisz ;d

Edytowane przez Igor Pawlikowski
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ę...