Skocz do zawartości
  • 0

Naprawa Skryptu Na Kowala Pod CashBlock 1.8.8


Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
   {procent} = "%"

command /kowal [<text>]:
    trigger:
        wait 3 ticks
        open chest with 5 rows named "&6&lKowal" to player
        set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&l✖"
        set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
        set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
        
        
on inventory click:
    if name of player's current inventory is "&6&lKowal":
        if clicked inventory is not player's inventory:
            cancel event
        if clicked slot is 21:
            if player's tool is not blaze rod named "&6Brush ##1" and player's tool is not blaze rod named "&6Brush ##2" and player's tool is not blaze rod named "&6Brush ##3" and player's tool is not blaze rod named "&6Brush ##4":
                send "&8[&6&l!&8] &cMusisz trzymać brusha w ręce, aby go ulepszyć!" to player
            else:
                set {_a} to random integer from 1 to 10
                if {_a} is 1 or 2 or 3:
                    if player's tool is blaze rod named "&6Brush ##1":
                        remove 1 blaze rod named "&6Brush ##1" from player's inventory
                        give 1 blaze rod named "&6Brush ##2" to player
                    else if player's tool is blaze rod named "&6Brush ##2":
                        remove 1 blaze rod named "&6Brush ##2" from player's inventory
                        give 1 blaze rod named "&6Brush ##3" to player
                    else if player's tool is blaze rod named "&6Brush ##3":
                        remove 1 blaze rod named "&6Brush ##3" from player's inventory                        
                        give 1 blaze rod named "&6Brush ##4" to player
                    send "&8[&6&l!&8] &7Ulepszyles Swojego Brusha! &6Gratulujemy!" to player
                    close player's inventory
                    send player title "&2Gratulujemy" with subtitle "&aUlepszyles Brusha!" for 3 seconds
                    broadcast "&8[&6&l!&8] &7Gracz &e%player% &7wlasnie ulepszyl swojego brusha u kowala &6Gratulujemy! &8(&7/kowal&8)"play sound "random.levelup" to player
                	launch ball large firework colored yellow at player
                	else if player's tool is not blaze rod named "&6Brush ##3" or blaze rod named "&6Brush ##2" or blaze rod named "&6Brush ##1":
            	if {_a} is 4 or 5 or 6 or 7 or 8 or 9 or 10:
                	if player's tool is blaze rod named "&6Brush ##1":
                    	remove 1 blaze rod named "&6Brush ##1" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##2":
                    	remove 1 blaze rod named "&6Brush ##2" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##3":        
                    	remove 1 blaze rod named "&6Brush ##3" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##4":        
                    	remove 1 blaze rod named "&6Brush ##4" from player's inventory                    
                	send "&8[&6&l!&8] &7Niestety twoj brush zostal zniszczony!"    

Może to?

Odnośnik do komentarza
https://skript.pl/temat/54404-naprawa-skryptu-na-kowala-pod-cashblock-188/#findComment-330113
Udostępnij na innych stronach

  • 0
19 godzin temu, xMarmo321 napisał:
variables:
   {procent} = "%"

command /kowal [<text>]:
    trigger:
        wait 3 ticks
        open chest with 5 rows named "&6&lKowal" to player
        set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&l✖"
        set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
        set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
        
        
on inventory click:
    if name of player's current inventory is "&6&lKowal":
        if clicked inventory is not player's inventory:
            cancel event
        if clicked slot is 21:
            if player's tool is not blaze rod named "&6Brush ##1" and player's tool is not blaze rod named "&6Brush ##2" and player's tool is not blaze rod named "&6Brush ##3" and player's tool is not blaze rod named "&6Brush ##4":
                send "&8[&6&l!&8] &cMusisz trzymać brusha w ręce, aby go ulepszyć!" to player
            else:
                set {_a} to random integer from 1 to 10
                if {_a} is 1 or 2 or 3:
                    if player's tool is blaze rod named "&6Brush ##1":
                        remove 1 blaze rod named "&6Brush ##1" from player's inventory
                        give 1 blaze rod named "&6Brush ##2" to player
                    else if player's tool is blaze rod named "&6Brush ##2":
                        remove 1 blaze rod named "&6Brush ##2" from player's inventory
                        give 1 blaze rod named "&6Brush ##3" to player
                    else if player's tool is blaze rod named "&6Brush ##3":
                        remove 1 blaze rod named "&6Brush ##3" from player's inventory                        
                        give 1 blaze rod named "&6Brush ##4" to player
                    send "&8[&6&l!&8] &7Ulepszyles Swojego Brusha! &6Gratulujemy!" to player
                    close player's inventory
                    send player title "&2Gratulujemy" with subtitle "&aUlepszyles Brusha!" for 3 seconds
                    broadcast "&8[&6&l!&8] &7Gracz &e%player% &7wlasnie ulepszyl swojego brusha u kowala &6Gratulujemy! &8(&7/kowal&8)"play sound "random.levelup" to player
                	launch ball large firework colored yellow at player
                	else if player's tool is not blaze rod named "&6Brush ##3" or blaze rod named "&6Brush ##2" or blaze rod named "&6Brush ##1":
            	if {_a} is 4 or 5 or 6 or 7 or 8 or 9 or 10:
                	if player's tool is blaze rod named "&6Brush ##1":
                    	remove 1 blaze rod named "&6Brush ##1" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##2":
                    	remove 1 blaze rod named "&6Brush ##2" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##3":        
                    	remove 1 blaze rod named "&6Brush ##3" from player's inventory
                	if player's tool is blaze rod named "&6Brush ##4":        
                    	remove 1 blaze rod named "&6Brush ##4" from player's inventory                    
                	send "&8[&6&l!&8] &7Niestety twoj brush zostal zniszczony!"    

Może to?

nie dziala 14 bledow

Odnośnik do komentarza
https://skript.pl/temat/54404-naprawa-skryptu-na-kowala-pod-cashblock-188/#findComment-330131
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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