Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ===================================== #
- # Skript by TheMrkoia #
- # Name: KGuilds #
- # Version: 1.0 #
- # #
- # ===================================== #
- # Nie zezwalam na: #
- # * Usuwanie komendy dotyczącej autora #
- # * Zarabiania na skrypcie #
- # * Udostepnianie go bez mojej zgody #
- # * Podszywania sie pod autora #
- # * Przywlaszczania skryptu #
- # * Przerabiania skryptu #
- # ===================================== #
- # Zezwalam na: #
- # * Dopisywania fragmentow #
- # * Edycje wiadomosci na wlasne #
- # potrzeby #
- # ===================================== #
- # #
- # KORZYSTAJAC Z TEGO SKRYPTU #
- # AKCEPTUJESZ LICENJE UZYTKOWANIA! #
- # #
- # ===================================== #
- options:
- # ============================= #
- # #
- # GLOBAL #
- # #
- # ==============================#
- # ====================== #
- #Tag wyswietlany przed wiadomosciami:
- tag: &2[&4K&7Guilds&2]
- #Nick gdy gracz nie ma gildii:
- nick.guilds.1: &7%player%
- # ====================== #
- # ============================= #
- # #
- # ITEMS #
- # #
- # ==============================#
- # ====================== #
- #Jakie itemy maja byc za gildie:
- #Wpisz "none" aby zostawić puste
- item1: 1 dirt
- item2: none
- item3: none
- item4: none
- item5: none
- item6: none
- item7: none
- item8: none
- item9: none
- # ============================= #
- # #
- # END CONFIG #
- # #
- # ==============================#
- # ======================================================================== #
- command /gildia [<text>] [<text>] [<text>]:
- aliases: g
- trigger:
- if arg 1 is not set:
- send "&7|================================|"
- send "&a/gildia zaloz <tag> <nazwa> - &fZaklada gildie"
- send "&a/gildia zapros <tag twojej gildii> <gracz> - &fZaprasza gracza do gildii"
- send "&a/gildia dolacz <tag> - &fDolacza do gildii"
- send "&a/gildia opusc <tag> - &fOpuszcza gildie"
- send "&a/gildia usun <tag> - &fUsuwa gildie"
- send "&a/gildia info <tag> - &fInformacje na temat danej gildii"
- send "&a/gildia dom <tag> - &fTeleportuje do domu gildii"
- send "&a/gildia ustawdom <tag> - &fUstawia dom gildii"
- send "&a/gildia lista - &fWszystkie gildie na serwerze"
- send "&a/gildia autor - &fInformacje o autorze"
- send "&7|================================|"
- stop
- if arg 1 is "autor":
- send "&7|=====================|"
- send "&6Autorem skryptu jest: &7TheMrkoia"
- send "&6Kanal YouTube: &7http://www.youtube.com/channel/UCo-oEah5lJ9UuYj9v58GdGg"
- send "&6Nazwa skryptu: &7 KGuilds"
- send "&7|=====================|"
- stop
- if arg 1 is "ustawdom":
- if arg 2 is set:
- if arg 3 is not set:
- if {Gildie.%arg 2%.tag} is set:
- if {Gildie.%arg 2%.zalozyciel} is set:
- send "&6Dom gildii zostal ustawiony!"
- set {Gildie.%arg 2%.home} to location of player
- stop
- else:
- send "{@tag}&cTylko zalozyciel moze zmienic dom gildii!"
- stop
- else:
- send "{@tag}&cTaka gildia nie istnieje!"
- stop
- else:
- send "{@tag}&cPodaj tag gildii!"
- stop
- if arg 1 is "dom":
- if arg 2 is set:
- if arg 3 is not set:
- if {Gildie.%arg 2%.tag} is set:
- if {Gildie.%arg 2%.home} is set:
- send "&6Teleportacja..."
- wait 1 seconds
- send "&65..."
- wait 1 seconds
- set {Gildie.%name of player%.ruch} to true
- if {Gildie.%name of player%.ruch} is true:
- send "&64..."
- wait 1 seconds
- if {Gildie.%name of player%.ruch} is true:
- send "&63..."
- wait 1 seconds
- if {Gildie.%name of player%.ruch} is true:
- send "&62..."
- wait 1 seconds
- if {Gildie.%name of player%.ruch} is true:
- send "&61..."
- wait 1 seconds
- if {Gildie.%name of player%.ruch} is true:
- send "&6Witaj w domu!"
- teleport player to {Gildie.%arg 2%.home}
- stop
- else:
- send "&cWykryto ruch! Teleportacja anulowana"
- stop
- else:
- send "&cWykryto ruch! Teleportacja anulowana"
- stop
- else:
- send "&cWykryto ruch! Teleportacja anulowana"
- stop
- else:
- send "&cWykryto ruch! Teleportacja anulowana"
- stop
- else:
- send "&cWykryto ruch! Teleportacja anulowana"
- stop
- else:
- send "&cNie ma ustawionego domu gildii!"
- stop
- else:
- send "&cTaka gildia nie istnieje!"
- stop
- if arg 1 is "opusc":
- if arg 2 is set:
- if arg 3 is not set:
- if {Gildie.%arg 2%.tag} is set:
- if {Gildie.%arg 2%.gracz} is set:
- remove player from {Gildie.%arg 2%.gracz}
- clear {Gildie.%name of player%.chat}
- remove player from {Gildie.%arg 2%::*}
- broadcast "&6Gracz &7%player% &6wyszedl z gildii &7%arg 2%&6!"
- stop
- else:
- send "{@tag}&cNie jestes w zadnej gildii"
- stop
- if {Gildie.%arg 2%.zalozyciel} is set:
- send "{@tag}&cJestes zalozycielem gildii i nie mozesz wyjsc!"
- stop
- else:
- send "{@tag}&cTaka gildia nie istnieje!"
- stop
- if arg 1 is "dolacz":
- if arg 2 is set:
- if arg 3 is not set:
- if {Gildie.%name of player%.addplayer} is true:
- if {Gildie.%arg 2%.tag} is set:
- set {Gildie.%name of player%.chat} to arg 2
- add player to {Gildie.%arg 2%::*}
- set {Gildie.%name of player%.gracz} to player
- broadcast "&6Gracz &7%player% &6doszedl do gildii: &7%arg 2%& 6!"
- stop
- else:
- send "{@tag}&cTaka gildia nie istnieje!"
- stop
- else:
- send "{@tag}&cNie zostales zaproszony do tej gildii!"
- stop
- else:
- send "{@tag}&cNie ma takiej komendy!"
- stop
- else:
- send "{@tag}&cPodaj tag gildii!"
- stop
- if arg 1 is "zapros":
- if arg 2 is set:
- if arg 3 is set:
- if {Gildie.%arg 2%.zalozyciel} is set:
- set {Gildie.%arg 3%.addplayer} to true
- send "{@tag}&6Zaprosiles gracza &7%arg 3% &6do swojej gildii!"
- send "{@tag}&6Dostales zaproszenie do gildii: &7%arg 3%"
- stop
- else:
- send "{@tag}&cNie posiadasz gildii!"
- stop
- else:
- send "{@tag}&cPodaj tag twojej gildii!"
- stop
- else:
- send "{@tag}&cPodaj nick gracza!"
- stop
- if arg 1 is "pomoc":
- if arg 2 is not set:
- if arg 3 is not set:
- send "&7|================================|"
- send "&6Aby zalozyc gildie potrzebujesz:"
- send "&7 * {@item1}"
- send "&7 * {@item2}"
- send "&7 * {@item3}"
- send "&7 * {@item4}"
- send "&7 * {@item5}"
- send "&7 * {@item6}"
- send "&7 * {@item7}"
- send "&7 * {@item8}"
- send "&7 * {@item9}"
- send "&7|================================|"
- stop
- if arg 1 is "usun":
- if arg 2 is set:
- if arg 3 is not set:
- if player has permission "Gildie.*" or "Gildie.player" or "Gildie.usun":
- if {Gildie.%arg 2%.zalozyciel} is set:
- remove {Gildie.%arg 2%.tag} from {KGuild::*}
- clear {Gildie.%arg 2%.tag}
- clear {Gildie.%arg 2%.name}
- clear {Gildie.%arg 2%.kills}
- clear {Gildie.%arg 2%.deaths}
- clear {Gildie.%arg 2%.zalozyciel}
- clear {Gildie.%arg 2%.gracz}
- clear {Gildie.%name of player%.chat}
- broadcast "&6Gracz &7%player% &6Usunal gildie &7%arg 2%"
- stop
- else:
- send "{@tag}&cNie posiadasz gildii!"
- stop
- else:
- send "{@tag}&cNie masz uprawnien!"
- stop
- else:
- send "{@tag}&cNie ma takiej komendy!"
- stop
- else:
- send "{@tag}&cPodaj tag gildii!"
- stop
- if arg 1 is "lista":
- if arg 2 is not set:
- if arg 3 is not set:
- if player has permission "Gildie.*" or "Gildie.player" or "Gildie.lista":
- send "&7|================================|"
- send "&6%{Gildie::*}%"
- send "&7|================================|"
- stop
- else:
- send "{@tag}&cNie masz uprawnien!"
- stop
- else:
- send "{@tag}&c}Nie ma takiej komendy!"
- stop
- else:
- send "{@tag}&cNie ma takiej komendy!"
- stop
- if arg 1 is "info":
- if arg 2 is set:
- if arg 3 is not set:
- if {Gildie.%arg 2%.tag} is set:
- send "&7|==========================|"
- send "&6TAG gildii: &7%{Gildie.%arg 2%.tag}%"
- send "&6Zabojstwa: &7%{Gildie.%arg 2%.kills}%"
- send "&6Zginiecia: &7%{Gildie.%arg 2%.deaths}%"
- send "&6Zalozyciel: &7%{Gildie.%arg 2%.zalozyciel}%"
- send "&6Gracze w gildii: &7%{KGuilds.%arg 2%::*}%"
- send "&7|==========================|"
- else:
- send "{@tag}&cTaka gildia nie istnieje!"
- stop
- else:
- send "{@tag}&cPodaj tag gildii!"
- stop
- if arg 1 is "zaloz":
- if arg 2 is set:
- if arg 3 is set:
- if player has permission "Gildie.*" or "Gildie.player" or "Gildie.zaloz":
- if player has {@item1}:
- if player has {@item2}:
- if player has {@item3}:
- if player has {@item4}:
- if player has {@item5}:
- if player has {@item6}:
- if player has {@item7}:
- if player has {@item8}:
- if player has {@item9}:
- if {Gildie.%arg 2%.tag} is not set:
- if {Gildie.%arg 3%.name} is not set:
- if {Gildie.%name of player%.gracz} is not set:
- if {Gildie.%name of player%.zalozyciel} is not set:
- remove {@item1} from player
- remove {@item2} from player
- remove {@item3} from player
- remove {@item4} from player
- remove {@item5} from player
- remove {@item6} from player
- remove {@item7} from player
- remove {@item8} from player
- remove {@item9} from player
- add arg 2 to {Gildie::*}
- set {Gildie.%arg 2%.home} to location of player
- set {Gildie.%arg 2%.tag} to arg 2
- set {Gildie.%arg 3%.name} to arg 3
- set {Gildie.%arg 2%.kills} to 0
- set {Gildie.%arg 2%.deaths} to 0
- set {Gildie.%arg 2%.zalozyciel} to player
- add player to {Gildie.%arg 2%::*}
- set {Gildie.%name of player%.chat} to arg 2
- broadcast "&6Gracz &7%player% &6zalozyl gildie pod nazwa:&7%arg 2% %arg 3%"
- stop
- else:
- send "{@tag}&cMasz juz gildie!"
- stop
- else:
- send "{@tag}&cJestes juz w gildii!"
- stop
- else:
- send "{@tag}&cGildia z ta nazwa juz istnieje!"
- stop
- else:
- send "{@tag}&cGidlia z tym tagiem juz istnieje!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
- stop
- else:
- send "{@tag}&cNie masz uprawnien!"
- stop
- else:
- send "{@tag}&cPodaj pelna nazwe gildii!"
- stop
- else:
- send "{@tag}&cPodaj tag gildii!"
- stop
- on chat:
- if {Gildie.%name of player%.chat} is set:
- set player's display name to "&6%{Gildie.%name of player%.chat}% &7%player%"
- else:
- set player's display name to "{@nick.guilds.1}"
- on any movement:
- if {Gildie.%name of player%.ruch} is true:
- set {Gildie.%name of player%.ruch} to false
- on death:
- victim is player
- attacker is player:
- if {Gildie.%name of player%.chat} is set:
- add 1 to {Gildie.%{Gildie.%name of player%.chat}%.kills}
- stop
- else:
- if {Gildie.%name of player%.chat} is set:
- add 1 to {Gildie.%{Gildie.%name of player%.chat}%.deaths}
- stop
Advertisement
Add Comment
Please, Sign In to add comment