Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============#
- # EasyGuilds®™ #
- #~~~~~~~~~~~~~~~#
- # by #
- #~~~~~~~~~~~~~~~#
- # SzymnYo #
- #~~~~~~~~~~~~~~~#
- # v.1.0[beta] #
- #===============#
- #~~WSZELKIE PRAWA ZASTRZEŻONE COPRIGHT©~~#
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- #LICENCJA:#
- #[Nie zezwalam na]#
- #-publikowanie skryptu w swoich plikach serwerowych!#
- #-podszywanie sie za autora skryptu!#
- #-usuwanie informacji o autorze skryptu!#
- #-kopiowanie kodu skryptu i uzywanie go w swoich kodach!#
- #-zarabianie na skrypcie!#
- #[Zezwalam na]#
- #-zmiane tekstu wiadomosci (dla wlasnych potrzeb)#
- #-dopisywanie wlasnych fragmentow#
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
- #~~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:
- easyguildschat: &6[&2{TAG}&6][{GROUP}]{DISPLAY}: {MESSAGE}
- #wielkosc terenu gildii#
- options:
- teren: 10
- #oplata na stworzenie gildii#
- #przyklad (1item: 16 diamond / 1item: <ilosc> <przedmiot>) jezeli gildia ma byc tworzona za darmo wpisz "none" lub "0"#
- options:
- 1item: none
- 2item: none
- 3item: none
- 4item: none
- 5item: none
- 6item: none
- 7item: none
- 8item: none
- 9item: none
- #~~KOD SKRYPTU~~#
- options:
- tag: &7[&6EasyGuilds&7]
- tag2: &2================&a[&eEasyGuilds&a]&2================
- skname: EasyGuilds
- version: 1.0 [beta]
- autor: SzymnYo
- variables:
- {gildia.%player%.status} = false
- {gildia.%player%.smr} = 0
- {gildia.%player%.zab} = 0
- command /stworz [<text>] [<text>]:
- permission: easyguild.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 sponge
- 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: easyguild.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: easyguild.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: easyguild.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: easyguild.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: easyguild.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: easyguild.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: easyguild.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
- if arg 1 is "autor" or "author":
- send "{@tag2}"
- send "&9Nazwa: &3{@skname}"
- send "&9Autor: &3{@autor}"
- send "&9Wersja: &3{@version}"
- stop
- command /myguilds reload:
- permission: myguilds.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 EASYGUILDS~~#
- on chat:
- set {_chat} to "{@easyguildschat}"
- replace all "{TAG}" with "%{gildia.%player%.tag}%" in {_chat}
- replace all "{GROUP}" with "%colored player's prefix%" 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! =)~~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement