Skocz do zawartości
  • 0

Skrypt na dzialki


dxlv

Pytanie

Zaktualizuje mi ktos ten skrypt do wersji 1.12.2?
Bo wystepuja 3 errory

 

options: 
    # Konfiguracja:
    tag: &2CUBOIDY
    # Wiadomosci:
    notpermiss: &cNie masz do tego uprawnien!
    error: &cNie mozesz tego zrobic!
    cuboidplaced: &aCuboid pomyslnie ustawiony!
    cuboidhelp: &aKomendy dotyczace skryptu na cuboidy: &c/cuboid help&a!
    succesadd: &aPomyslnie dodano gracza do cuboidu!
    addtocuboid: &aZostales dodany do cuboida gracza &c%player%&a!
    alreadyadded: &cTen gracz jest juz dodany do twojego cuboidu!
    notowner: &cNie jestes wlascicielem tego cuboidu!
    notregion: &cAby to zrobic musisz byc na swojej dzialce!
    notplayer: &cPodaj nick gracza!
    succesremov: &cUsunoles gracza z cuboidu!
    removfromcub: &cZostales usuniety z cuboidu &4%player%&c!
    notadded: &cTen gracz nie jest dodany do twojego cuboidu!
# ::--------------------------------------------------------------::
#                        :: - :: KOD ::-::
# ::--------------------------------------------------------------::
command /daj-cuboid:
    permission: cuboid.admin
    permission message: {@tag} {@notpermiss}
    trigger:
        add 1 of bedrock named "&c&lCUBOID" to player's inventory
        send "&aOtrzymales Cuboid!" to player
on place:
    if player's tool is bedrock named "&c&lCUBOID":
        if {cuboid.%player%::*} is not set:
            execute console command "pex user %name of player% add worldedit.*"
            execute console command "pex user %name of player% add worldguard.*"
            execute player command "//pos1"
            execute player command "//pos2"
            execute player command "//expand 50 n"
            execute player command "//expand 50 s"
            execute player command "//expand 50 w"
            execute player command "//expand 50 e"
            execute player command "//expand vert"
            execute player command "rg define %name of player%"
            execute console command "pex user %name of player% remove worldedit.*"
            execute console command "pex user %name of player% remove worldguard.*"
            loop 99 times:
                send " " to player
            send "{@tag} {@cuboidplaced}" to player
            set {cuboid.%player%::%region at player%} to now
            send "{@tag} {@cuboidhelp}" to player
        else:
            send 
on break:
    if region at player is set:
        if {cuboid.%player%::%region at player%} is not set:
            if {cuboid.dodany.%player%::%region at player%} is not set:
                if player has permissions "cuboidy.admin":
                    stop
                else:
                    cancel event
                    send "{@tag} {@error}" to player
on place:
    if region at player is set:
        if {cuboid.%player%::%region at player%} is not set:
            if {cuboid.dodany.%player%::%region at player%} is not set:
                if player has permissions "cuboidy.admin":
                    stop
                else:
                    cancel event
                    send "{@tag} {@error}" to player
on right click on block:
    if event-block is chest or furnace or anvil or ender chest or door:
        if region at player is set:
            if {cuboid.%player%::%region at player%} is not set:
                if {cuboid.dodany.%player%::%region at player%} is not set:
                    if player has permissions "cuboid.admin":
                        stop
                    else:
                        cancel event
                        send "{@tag} {@error}"
command /cuboid <text> [<player>]:
    usage: /cuboid help
    trigger:
        if text-arg is "help":
            send "{@tag} &7-> &c/cuboid dodaj NICK &7- Dodajesz gracza do cuboida!" to player
            send "{@tag} &7-> &c/cuboid usun NICK &7- Usuwasz gracza z cuboida!" to player
            send "{@tag} &7-> &c/cuboid autor &7- Wyswietla autora skryptu." to player
        else if text-arg is "dodaj":
            if player-arg is set:
                if region at player is set:
                    if {cuboid.%player%::%region at player%} is set:
                        if {cuboid.dodany.%player-arg%::%region at player%} is not set:
                            set {cuboid.dodany.%player-arg%::%region at player%} to now
                            send "{@tag} {@succesadd}" to player
                            send "{@tag} {@addtocuboid}" to player-arg
                        else:
                            send "{@tag} {@alreadyadded}" to player
                    else:
                        send "{@tag} {@notowner}" to player
                else:
                    send "{@tag} {@notregion}" to player
            else:
                send "{@tag} {@notplayer}" to player
        else if text-arg is "usun":
            if player-arg is set:
                if region at player is set:
                    if {cuboid.%player%::%region at player%} is set:
                        if {cuboid.dodany.%player-arg%::%region at player%} is set:
                            clear {cuboid.dodany.%player-arg%::%region at player%}
                            send "{@tag} {@succesremov}" to player
                            send "{@tag} {@removfromcubpod}" to player-arg
                        else:
                            send "{@tag} {@notadded}" to player
                    else:
                        send "{@tag} {@notowner}" to player
                else:
                    send "{@tag} {@notregion}" to player
            else:
                send "{@tag} {@notplayer}" to player
        else if text-arg is "autor":
            send "{@tag} &8| &7Autor skryptu na cuboidy: &cdamixedixed&7!"
        else:
            execute player command "cuboid help"

 

Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Jak przeładowujesz skrypt w grze komendą /sk reload, to na czacie wyskakują ci błędy.
Z resztą napisałeś, że występują 3 errory, więc proszę abyś je wysłał :)

Edytowane przez Kamill0s
Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/#findComment-187301
Udostępnij na innych stronach

  • 0
1 minutę temu, Kamill0s napisał:

Jak przeładowujesz skrypt w grze komendą /sk reload, to na czacie wyskakują ci błędy.
Z resztą napisałeś, że występują 3 errory, więc proszę abyś je wysłał :)

[23:10:19 ERROR]: Can't understand this condition/effect: send (dzialki.sk, line 48: send')
[23:10:19 ERROR]: can't understand this event: 'on right click on block' (dzialki.sk, line 67: on right click on block:')
[23:10:19 ERROR]: undefined option {@removfromcubpod} (dzialki.sk, line 107: send "{@tag} {@removfromcubpod}" to player-arg')
[23:10:19 INFO]: [Skript] Encountered 3 errors while reloading dzialki.sk!

 

Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/#findComment-187302
Udostępnij na innych stronach

  • 0

Łap tutaj poprawiony kodzik:      

W linijce 48 nie miałeś podanego tekstu do send, więc wywalał ci błąd - wpisz tam coś.

Liczę na plusik.

Edytowane przez Heku
Heku

Wstawiam na code.sk

Notatka dodana przez Heku

Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/#findComment-187304
Udostępnij na innych stronach

  • 0
13 minut temu, Kamill0s napisał:

Łap tutaj poprawiony kodzik:      https://pastebin.com/VSPHKXSj
W linijce 48 nie miałeś podanego tekstu do send, więc wywalał ci błąd - wpisz tam coś.

Liczę na plusik.

Spkoko, a mogl bym jeszcze poprosic, ze jak sie wejdzie na dana dzialke to pisze "Wszedles na dzialke gracza (nick)" i jak sie wyjdzie

Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/#findComment-187307
Udostępnij na innych stronach

  • 0

Spróbuję Ci to zrobić tak pod wieczór. 

Proszę, o to kodzik: >> KLIK <<

Tylko zmień raz jeszcze w 48 linijce wiadomość, która ma się wysyłać.

Edytowane przez Kamill0s
Nicku

Łączę :)

Notatka dodana przez Nicku

Odnośnik do komentarza
https://skript.pl/temat/28287-skrypt-na-dzialki/#findComment-187355
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ę...