Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Jak zrobić, aby w tym skrypcie LWC można było otwierać skrzynki?


rresz

Rekomendowane odpowiedzi

Opublikowano

 

on explode:
        loop blocks in radius 8 of event-location:
                {chest.%location of loop-block%} is location of loop-block:
                        cancel event
                {sign.%location of loop-block%} is location of loop-block:
                        cancel event
on sign change:
        if block behind event-block is chest:
                if {chest.%location of block behind event-block%} is not set:
                        set line 1 of event-block to "&c[Blokada]"
                        set line 2 of event-block to "&b%name of player%"
                        set {chest.%location of block behind event-block%} to location of block behind event-block
                        add name of player to {baza.%location of event-block%::*}
                        set {sign.%location of event-block%} to location of event-block
                        send "&8[&bDiaxo&2Land&8] => &7Poprawnie Zalozyles &cZabezpieczenie &7Na Skrzynie"
                        loop blocks in radius 1 of block behind event-block:
                                if loop-block is chest:
                                        if block above loop-block is not event-block:
                                                if block over loop-block is not event-block:
                                                        if {chest.%location of loop-block%} is not set:
                                                                set {chest.%location of loop-block%} to location of loop-block

on rightclick on chest:
        if {chest.%location of event-block%} is location of event-block:
                if {sign.%location of block forward event-block%} is location of block forward event-block:
                        loop {baza.%location of block forward event-block%::*}:
                                loop-value is name of player:
                                        send "&8[&bDiaxo&2Land&8] => &7Otworzyles &aZabezpieczona &7Skrzynie"
                                        stop
                        cancel event
                        send "&8[&bDiaxo&2Land&8] => &7Ta Skrzynia Posiada &cZabezpieczenie &7Nie Posiadasz Do Niej Dostepu"
                else:
                        loop blocks in radius 1 of event-block:
                                if loop-block is chest:
                                        if {chest.%location of loop-block%} is location of loop-block:
                                                if block above loop-block is not event-block:
                                                        if block over loop-block is not event-block:
                                                                loop blocks in radius 1 of loop-block-1:
                                                                        if {sign.%location of block forward loop-block-2%} is location of block forward loop-block-1:
                                                                                if block above loop-block-2 is not loop-block-1:
                                                                                        if block over loop-block-2 is not loop-block-1:
                                                                                                loop {baza.%location of block forward loop-block-2%::*}:
                                                                                                        loop-value is name of player:
                                                                                                                send "&8[&bDiaxo&2Land&8] => &7Otworzyles &aZabezpieczona &7Skrzynie"
                                                                                                                stop
                                                                                                cancel event
                                                                                                send "&8[&bDiaxo&2Land&8] => &7Ta Skrzynia Posiada &cZabezpieczenie &7Nie Posiadasz Do Niej Dostepu"
on break of chest:
        if {chest.%location of event-block%} is location of event-block:
                if {sign.%location of block forward event-block%} is location of block forward event-block:
                        if {baza.%location of block forward event-block%::1} is name of player:
                                send "&8[&bDiaxo&2Land&8] => &7Aby Zniszczyc Skrzynie Musisz Zniszczyc &cZabezpieczenie"
                                cancel event
                        else:
                                send "&8[&bDiaxo&2Land&8] => &7Nie Masz Uprawnie Do &cZniszczenia &7Tej Skrzyni"
                                cancel event
                else:
                        loop blocks in radius 1 of event-block:
                                if loop-block is chest:
                                        if {chest.%location of loop-block%} is location of loop-block:
                                                if block above loop-block is not event-block:
                                                        if block over loop-block is not event-block:
                                                                loop blocks in radius 1 of loop-block-1:
                                                                        if {sign.%location of loop-block-2%} is location of block forward loop-block-1:
                                                                                if block above loop-block-2 is not loop-block-1:
                                                                                        if block over loop-block-2 is not loop-block-1:
                                                                                                if {baza.%location of loop-block-2%::1} is name of player:
                                                                                                        send "&8[&bDiaxo&2Land&8] => &7Aby Zniszczyc Skrzynie Musisz Zniszczyc &cZabezpieczenie"
                                                                                                        cancel event
                                                                                                else:
                                                                                                        send "&8[&bDiaxo&2Land&8] => &7Nie Masz Uprawnie Do &cZniszczenia &7Tej Skrzyni"
                                                                                                        cancel event
on break:
        if {chest.%location of block above event-block%} is location of block above event-block:
                send "&8[&bDiaxo&2Land&8] => &7Aby Zniszczyc &bSkrzynie &7Zniszcz Blok Nad Nia"
                cancel event
on break of sign:
        if {sign.%location of event-block%} is location of event-block:
                if line 1 of event-block is "&c[Blokada]":
                        if {baza.%location of event-block%::1} is name of player:
                                delete {sign.%location of event-block%}
                                delete {baza.%location of event-block%::*}
                                delete {chest.%location of block behind event-block%}
                                loop blocks in radius 1 of block behind event-block:
                                        if loop-block is chest:
                                                if {chest.%location of loop-block%} is location of loop-block:
                                                        if block above loop-block is not block behind event-block:
                                                                if block over loop-block is not block behind event-block:
                                                                        delete {chest.%location of loop-block%}
                                send "&8[&bDiaxo&2Land&8] => &7Poprawnie Usunoles &cZabezpieczenie"
                                stop
                        else:
                                cancel event
                else:
                        cancel event

on break of sign:
        if {sign.%location of event-block%} is location of event-block:
                if line 1 of event-block is "&c[Blokada]":
                        if player has permission "sk.chat":
                                delete {sign.%location of event-block%}
                                delete {baza.%location of event-block%::*}
                                delete {chest.%location of block behind event-block%}
                                loop blocks in radius 1 of block behind event-block:
                                        if loop-block is chest:
                                                if {chest.%location of loop-block%} is location of loop-block:
                                                        if block above loop-block is not block behind event-block:
                                                                if block over loop-block is not block behind event-block:
                                                                        delete {chest.%location of loop-block%}
                                send "&2<&8===============================================================&2>"
                                send "&8[&bDiaxo&2Land&8] => &7Poprawnie Usunieto Tabliczke Zabezpieczajaca"
                                send "&8[&bDiaxo&2Land&8] => &cZlamano &7System Zabezpieczenia Jestes Czlonkiem Ekipy"
                                send "&2<&8===============================================================&2>"
                                stop
on rightclick on sign:
        if line 1 of event-block is "&c[Blokada]":
                if {sign.%location of event-block%} is location of event-block:
                        send "&8[&bDiaxo&2Land&8] => &bWlascicielem &7Skrzynki Jest: &b%{baza.%location of targeted block%::1}%"
                        send "&8[&bDiaxo&2Land&8] => &7Dostep Do Tej Skrzyni Maja:"
                        send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::1}%"
                        if {baza.%location of targeted block%::2} is set:
                                send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::2}%"
                        if {baza.%location of targeted block%::3} is set:
                                send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::3}%"
                        if {baza.%location of targeted block%::4} is set:
                                send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::4}%"
                        if {baza.%location of targeted block%::5} is set:
                                send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::5}%"
                        if {baza.%location of targeted block%::6} is set:
                                send "&8[&bDiaxo&2Land&8] => &b%{baza.%location of targeted block%::6}%"
                       
command /ochrona [<text>] [<text>]:
        trigger:
                if arg 1 is not set:
                        send "&2<&8======================================================================&2>"
                        send "&8[&bDiaxo&2Land&8] => &7Zabezpieczenia Skrzyn Komendy:"
                        send "&8[&bDiaxo&2Land&8] => &b/Ochrona Dodaj [Nick] &8- &7Dodaje Gracza Do Skrzyni"
                        send "&8[&bDiaxo&2Land&8] => &b/Ochrona Usun [Nick] &8- &7Usuwa Gracza Z Skrzyni"
                        send "&2<&8======================================================================&2>"
                if arg 1 is "dodaj":
                        if {sign.%location of targeted block%} is location of targeted block:
                                if line 1 of targeted block is "&c[Blokada]":
                                        if {baza.%location of targeted block%::1} is name of player:
                                                size of {baza.%location of targeted block%::*} is less than 4:
                                                        loop {baza.%location of targeted block%::*}:
                                                                if loop-value is arg 2:
                                                                        send "&8[&bDiaxo&2Land&8] => &7Ten Gracz Posiada Juz &aDostep &7Do Tej Skrzyni"
                                                                        stop
                                                        add arg 2 to {baza.%location of targeted block%::*}
                                                        send "&8[&bDiaxo&2Land&8] => &7Dodales Gracza &b%arg 2% &7Do Twojej Skrzynki"
                                                else:
                                                        send "&8[&bDiaxo&2Land&8] => &7Nie Mozesz Juz Dodac Wiecej Osob Do Skrzynki"
                                                        stop
                if arg 1 is "usun":
                        if {sign.%location of targeted block%} is location of targeted block:
                                if line 1 of targeted block is "&c[Blokada]":
                                        if {baza.%location of targeted block%::1} is name of player:
                                                remove all arg 2 from {baza.%location of targeted block%::*}
                                                send "&8[&bDiaxo&2Land&8] => &7Usunoles Gracza &b%arg 2% &7Z Twojej Skrzynki"

 

Co do tego dolorzyć aby ekipa mogła otwierać skrzynki :) ?

Opublikowano

zamień : 

 

if player has permission "sk.chat":

 

Na:

 

If player doesn't have permission "skrzynki.admin":

 

Chyba o to chodzi :D

 

 

​A CO DO SZYBSZEGO OTWIERANIA WPISZ KOMENDĘ : LWC CPRIVATE albo LWC CPUBLIC i klik na skrzynkę :)

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...