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

[Problem] Skript na gildie


Rekomendowane odpowiedzi

Opublikowano
Ustawiłem na diamond i booki i te inne rzeczy na gildie a nie sa potrzebne bez tego da sie zalozyc,i da sie robić gildie na spawnie mogł by ktoś to zablokować i naprawić te itemy!

#~~KONFIGURACJA / CONFIG~~#

 

 

#wyglad chatu#

 

#{TAG} - tag gildii

#{RANK} - ranga/grupa gracza

#{PLAYER} - prawdziwa nazwa gracza

#{DISPLAY} - wyswietlana nazwa gracza (pseudonim)

#{MESSAGE} - wiadomosc wyslana przez gracza!

#\\\\\\\\\\\\\\\ <<KONFIGURUJ NIZEJ>> ///////////////#

 

options:

        maroguildschat: &6[&2{TAG}&2]&b{DISPLAY}: {MESSAGE}

 

 

#wielkosc terenu gildii#

 

options:

        teren: 50

 

 

#oplata na stworzenie gildii#

 

options:

        1item: 16 diamond

        2item: 64 book

        3item: 64 piston

        4item: 16 emerald

        5item: none

        6item: none

        7item: none

        8item: none

        9item: none

 

 

#~~KOD SKRYPTU~~#

 

 

options:

    tag: &7[&6MaroGuilds&7]

    tag2: &2================&a[&eMaroGuilds&a]&2================

    skname: MaroGuilds

    autor: MaroMC

variables:

    {gildia.%player%.status} = false

    {gildia.%player%.smr} = 0

    {gildia.%player%.zab} = 0

command /stworz [<text>] [<text>]:

        permission: maroguild.default

        aliases: zaloz

        trigger:

                if argument 1 is set:

                        if argument 2 is set:

                                if {gildia.%argument 1%.nazwa} is not set:

                                        if {gildia.%argument 2%.tag} is not set:

                                                if player has {@1item} and {@2item} and {@3item} and {@4item} and {@5item} and {@6item} and {@7item} and {@8item} and {@9item}:

                                                        if {gildia.%player%.status} is false:

                                                                set block under player to bedrock

                                                                make player execute command "//pos1"

                                                                make player execute command "//pos2"

                                                                make player execute command "//expand {@teren} n"

                                                                make player execute command "//expand {@teren} e"

                                                                make player execute command "//expand {@teren} s"

                                                                make player execute command "//expand {@teren} w"

                                                                make player execute command "//expand vert"

                                                                make player execute command "rg define gildia-%arg 1%"

                                                                make player execute command "rg flag gildia-%arg 1% greeting {@tag}&cWchodzisz na teren gildii: &6%arg 1%&c."

                                                                make player execute command "rg flag gildia-%arg 1% farewell {@tag}&2Oposciles teren gildii: &6%arg 1%&2."

                                                                loop 100 times:

                                                                        send " "

                                                                message "{@tag}&cTworzenie zabezpieczenia terenu!"

                                                                wait 1 second

                                                                message "{@tag}&aZabezpieczenie terenu utworzone pomyslnie!"

                                                                broadcast "{@tag}&3Gracz &e%player% &3utworzyl gildie: &6%argument 1% &3o tagu: &6%argument 2%&3!"

                                                                set {gildia.%player%.status} to true

                                                                set {gildia.%player%.tag} to argument 2

                                                                set {gildia.%argument 1%.nazwa} to argument 1

                                                                set {gildia.%argument 2%.tag} to argument 2

                                                                set {gildia.%argument 1%.dom} to location of player

                                                                set {gildia.%argument 1%.lider} to player

                                                                remove {@1item} and {@2item} and {@3item} and {@4item} and {@5item} and {@6item} and {@7item} and {@8item} and {@9item} from player's inventory

                                                                send "{@tag}&aUtworzyles gildie &6%argument 1% &ao tagu &6%argument 2%"

                                                        else:

                                                                send "{@tag}&3Jestes juz w gildii"

                                                else:

                                                        send "{@tag}&3Nie masz wystarczajacej ilosci itemow"

                                        else:

                                                send "{@tag}&cGildia o takiej nazwie juz istnieje"

                                else:

                                        send "{@tag}&cGildia o takim tagu juz istnieje"

                        else:

                                send "{@tag}&cPodaj nazwe i tag gildii!"

                else:

                        send "{@tag}&cPodaj nazwe i tag gildii!"

command /dolacz [<text>] [<text>]:

        permission: maroguild.default

        trigger:

                if argument 1 is set:

                        if {gildia.%argument 2%.tag} is set:

                                if {gildia.%player%.zapro} is argument 1:

                                        if {gildia.%player%.status} is false:

                                                execute console command "rg addmember gildia-%argument 2% %player%"

                                                set {gildia.%player%.status} to true

                                                delete {gildia.%player%.zapro}

                                                set {gildia.%player%.tag} to argument 2

                                                send "{@tag}&2Dolaczyles do gildii &9%{gildia.%argument 2%.nazwa}% &2o tagu &9%argument 2%"

                                        else:

                                                send "{@tag}&cJestes juz w jakiejs gildii"

                                else:

                                        send "{@tag}&cTa gildia nie wyslala Ci zaproszenia!"

                        else:

                                send "{@tag}&cNie ma takiej gildii"

                else:

                        send "{@tag} &3Podaj tag gildii, do ktorej chcesz dolaczyc"

command /zapros [<text>] [<text>]:

        permission: maroguild.default

        trigger:

                if {gildia.%{gildia.%player%.tag}%.lider} is player:

                        if argument 1 is set:

                                set {gildia.%argument 2%.zapros} to {gildia.%player%.tag}

                                send "{@tag}&7Zaprosiles gracza &8%argument 1%"

                        else:

                                send "{@tag}&cPoprawne uzycie: /zapros <nazwa gracza>!"

                else:

                        send "{@tag} &3Aby zapraszac graczy musisz byc liderem gildi!"

command /opusc:

        permission: maroguild.default

        trigger:

                if {gildia.%player%.status} is true:

                       

                        set {gildia.%player%.status} to false

                        delete {gildia.%player%.tag}

                        message "{@tag} &7Opusciles gildie"

                        stop

command /wyrzuc [<text>] [<text>]:

        permission: maroguild.default

        trigger:

                if {gildia.%{gildia.%player%.tag}%.lider} is player:

                        if argument 1 is set:

                                if {gildia.%argument 2%.tag} is {gildia.%player%.tag}:

                                        execute console command "rg removemember gildia-%{gildia.%player%.tag}% %argument 2%"

                                        set {gildia.%argument 2%.status} to false

                                        delete {gildia.%argument 2%.tag}

                                        send "{@tag} &7Wyrzuciles gracza &8%argument 2% &7ze swojej gildii"

                                        stop

                                else:

                                        send "{@tag}&3Nie znaleziono gracza o nicku &8%argument 2%"

                        else:

                                message "{@tag}&cPoprawne uzycie: /wyrzuc <nazwa gracza>!"

                else:

                        message "{@tag} &3Aby wyrzucac graczy musisz byc liderem gildii"

command /rozwiaz [<text>] [<text>]:

        permission: maroguild.default

        trigger:

                if argument 1 is set:

                        if {gildia.%{gildia.%player%.tag}%.lider} is player:

                                make player execute command "rg del gildia-%argument 1%"

                                set {gildia.%argument 1%.status} to false

                                delete {gildia.%argument 2%.tag}

                                delete {gildia.%argument 1%.nazwa}

                                delete {gildia.%argument 1%.tag}

                                delete {gildia.%player%.tag}

                                delete {gildia.%argument 1%.dom}

                                set {gildia.%player%.status} to false

                                send "{@tag}&7Pomyslnie usunieto gildie"

                                broadcast "{@tag}&3Gracz &e%player% &3rozwiazal gildie &6%argument 1%&3 !"

                                stop

                        else:

                                message "{@tag} &3Aby usunac gildie musisz byc liderem"

command /sojusz:

        trigger:

                send "&cJuz wkrotce =)" to player

command /pokoj:

        trigger:

                send "&cJuz wkrotce =)" to player

command /wojna:

        trigger:

                send "&cJuz wkrotce =)" to player

command /cennik:

        permission: Maroguild.default

        trigger:

                send "{@tag2}"

                send "&6Zalozenie gildii:"

                send "&b1.&a{@1item}"

                send "&b2.&a{@2item}"

                send "&b3.&a{@3item}"

                send "&b4.&a{@4item}"

                send "&b5.&a{@5item}"

                send "&b6.&a{@6item}"

                send "&b7.&a{@7item}"

                send "&b8.&a{@8item}"

                send "&b9.&a{@9item}"

                stop

command /player info [<players>]:

        permission: Maroguild.default

        trigger:

                send "{@tag2}"

                send "&9Gildia: &2[&8%{gildia.%player%.tag}%&f]"

                send "&9Smierci: &2{gildia.%player%.smr}"

                send "&9Zabojstwa: &2{gildia.%player%.zab}"

command /gildia [<text>] [<text>]:

        aliases: klan, g, druzyna

        trigger:

                if arg 1 is not set:

                        send "{@tag2}" to player

                        send "&e/stworz <nazwa> <tag>&b - Tworzy gildie" to player

                        send "&e/rozwiaz <nazwa>&b - Rozwiazuje gildie" to player

                        send "&e/zapros <gracz>&b - Zaprasza gracza do gildii" to player

                        send "&e/wyrzuc <gracz>&b - Wyrzuca gracza z gildii" to player

                        send "&e/opusc <gildia>&b - Dobrowolne opuszczenie gildii" to player

                        send "&e/sojusz <gildia>&b - Sojusz z wybrana gildia" to player

                        send "&e/pokoj <gildia>&b - Stan neuralny z gildia" to player

                        send "&e/wojna <gildia>&b - Wojna z gildia" to player

                        send "&2==========================================" to player

                        stop

command /mcguilds reload:

        permission: mcguilds.admin

        aliases: rl

        trigger:

                send "{@tag}&9Przeladowywanie.."

                execute console command "sk reload myguilds"

                wait 2 second

                send "{@tag}&aPomyslnie przeladowano.. :)"

                stop

on damage:

        if {tp.%victim%} is true:

                set {tp.%victim%} to false

                stop

on damage:

        if {gildia.%attacker%.tag} is {gildia.%victim%.tag}:

                cancel event

                message "{@tag} &7Nie mozesz bic &8%victim%" to attacker

on death:

        add 1 to {gildia.%attacker%.zab}

        add 1 to {gildia.%player%.smr}

on quit:

        if {gildia.%{gildia.%player%.tag}%.lider} is player:

                set {gildia.%player%.lider} to true

on join:

        if {gildia.%player%.lider} is true:

                set {gildia.%{gildia.%player%.tag}%.lider} to player

               

#~~MODUŁ CHATU MAROGUILDS~~#

on chat:

        set {_chat} to "{@maroguildschat}"

        replace all "{TAG}" with "%{gildia.%player%.tag}%" in {_chat}

        replace all "{PLAYER}" with "%player%" in {_chat}

        replace all "{DISPLAY}" with "%display name of player%" in {_chat}

        replace all "{MESSAGE}" with "%message%" in {_chat}

        send "%{_chat}%" to all players

        cancel event

 

#~~End skript.<•>Thanks for use! =)~~#

graphic.png

Opublikowano

Jest to kod skrypty innego uzytkownika. Zmieniles tylko " maroguild". Kradziony skrypt? I usuwanie autora... ? Nie ladnie.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...