Skocz do zawartości
  • 0

Problem ze skryptem


KozaczekELO

Pytanie

Mam problem ze skryptem.

on right click:
    if clicked block is sign:
        if line 1 is "&1Ulepszanie":
            if player's tool is iron sword of sharpness 4 named "&6Test &7+1":
                open chest with 1 rows named "Ulepszanie" to player
                format slot 1 of player with iron sword of sharpness 4 named "&6Test &7+1" to be unstealable
                format slot 2 of player with anvil named "&7Ulepszasz na &f>" to be unstealable
                format slot 3 of player with iron sword of sharpness 5 named "&6Test &7+2" to be unstealable
                format slot 5 of player with paper named "&3Szansa: &f100" with lore "&7Potrzebne przedmioty: &f500 Monet &7oraz &f1 Skora" to be unstealable
                format slot 7 of player with lime stained clay named "&aUlepsz" to run [make player execute command "fexy1"]
                format slot 8 of player with red stained clay named "&cAnuluj" to close

 

Wyskakuje o to taki błąd f25677489ee897d61561bd8fb149b819.png

Odnośnik do komentarza
https://skript.pl/temat/20873-problem-ze-skryptem/
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
15 minut temu, ByczekTV napisał:

To weź spróbuj może dodać argument do komendy "fexy1" , argument gracza, i wtedy bez tego "execute player command" tylko "to run "fexy1 %player%"

Błędu nie wywala lecz teraz same ulepszenie nie działa gdy klikne tam  to nie działa a gdy wpisze komendę to działa.

Skrypt na komendę

 

command /fexy1 [<player>]:
    trigger:
        if player's tool is iron sword of sharpness 4 named "&6Test &7Poziom 1":
            if player's balance is 500:
                if player has 1 leather:
                    remove iron sword of sharpness 4 named "&6Test &7Poziom 1" from the player
                    remove 1 leather from the player
                    remove 500 from the player's balance
                chance of 100%:
                    give iron sword of sharpness 5 named "&6Test &7Poziom 2" to the player
            else:
                send "&8> &cNie masz wszystkich przedmiotow." to the player

Edytowane przez KozaczekELO
Odnośnik do komentarza
https://skript.pl/temat/20873-problem-ze-skryptem/#findComment-141855
Udostępnij na innych stronach

  • 0
12 minut temu, KozaczekELO napisał:

Błędu nie wywala lecz teraz same ulepszenie nie działa gdy klikne tam  to nie działa a gdy wpisze komendę to działa.

Skrypt na komendę

 

command /fexy1 [<player>]:
    trigger:
        if player's tool is iron sword of sharpness 4 named "&6Test &7Poziom 1":
            if player's balance is 500:
                if player has 1 leather:
                    remove iron sword of sharpness 4 named "&6Test &7Poziom 1" from the player
                    remove 1 leather from the player
                    remove 500 from the player's balance
                chance of 100%:
                    give iron sword of sharpness 5 named "&6Test &7Poziom 2" to the player
            else:
                send "&8> &cNie masz wszystkich przedmiotow." to the player

To podaj cały kod (na code.skript.pl) włącznie z tym GUI 

Odnośnik do komentarza
https://skript.pl/temat/20873-problem-ze-skryptem/#findComment-141857
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ę...