Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #================================#
- # Script by MilutuS #
- # Name: Ranking #
- # Version: 1.1 #
- #================================#
- #================================#
- # Licencja | Ranking #
- # by MilutuS #
- #--------------------------------#
- # ~ Nie zezwalam na: #
- # - Zarabianie na skrypcie #
- # - Przerabianie/modyfikowanie #
- # zmienianie tresci dla grona #
- # publicznego #
- # - Wykorzystywanie kodu skryptu #
- # w swoich skryptach #
- # - Udostepniania skryptu w #
- # paczkach plikow serwerowch itp #
- # - Usuwanie tresci #
- # zawierajacych autora #
- # * - Tylko za zgoda autora #
- #--------------------------------#
- # Mylnie odczytana licencja nie #
- # zwalnia z przestrzegania jej #
- #================================#
- options:
- logo: LOGO #Tu daj twoje logo
- top: 10 #ilosc osob w topce
- ilosc: 1000 #Tutaj ilosc pkt na start
- variables:
- #zmienne do statystyk
- {kill.%player%} = 0 #ilosc kili na start
- {zgon.%player%} = 0 #ilosc zgonow na startart
- #Zmienne do topki
- {kill::%player%} = 0 #ilosc kili na start
- {zgon::%player%} = 0 #ilosc zgonow na start
- {pkt::%player%} = 1000 #Ilosc pkt na start
- {ranking} = true
- on first join:
- set {pkt.%player%} to {@ilosc}
- on join:
- if {pkt.%player%} is not set:
- set {pkt.%player%} to {@ilosc}
- command /statystyki [<player>]:
- trigger:
- if arg 1 is not set:
- send "&6===================== &9&l> &7{@logo} &9&l< &6====================="
- send "&7>> &eNick:&b %player%"
- send "&7>> &eZgony:&b %{zgon.%player%}%"
- send "&7>> &eZabojstwa:&b %{kill.%player%} %"
- send "&7>> &ePunkty:&b %{pkt.%player%}%"
- send "&6===================================================="
- if arg 1 is set:
- send "&6===================== &9&l> &7{@logo} &9&l< &6====================="
- send "&7>> &eNick:&b %player-arg%"
- send "&7>> &eZgony:&b %{zgon.%player-arg%}%"
- send "&7>> &eZabojstwa:&b %{kill.%player-arg%}%"
- send "&7>> &ePunkty:&b %{pkt.%player-arg%}%"
- send "&6===================================================="
- on death of player:
- if attacker is a player:
- if {kill.%attacker%} is not set:
- set {kill.%attacker%} to 1
- if {zgon.%victim%} is not set:
- set {zgon.%victim%} to 1
- else:
- add 1 to {zgon.%victim%}
- else:
- if {pkt.%victim%} is more than 30:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon.%victim%}
- remove 30 from {pkt.%victim%}
- send "&8>> Straciles &c30pkt" to victim
- #============================================#
- # Ataker #
- #============================================#
- add 1 to {kill.%attacker%}
- add 30 to {pkt.%attacker%}
- send "&8>> Zyskales &230pkt" to attacker
- else:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon.%victim%}
- set {pkt.%victim%} to 0
- send "&8>> Nie masz juz &cpkt do stracenia" to victim
- #============================================#
- # Ataker #
- #============================================#
- add 1 to {kill.%attacker%}
- add 5 to {pkt.%attacker%}
- send "&8>> Zyskales &25pkt" to attacker
- else:
- if {pkt.%victim%} is more than 30:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon.%victim%}
- remove 30 from {pkt.%victim%}
- send "&8>> Straciles &c30pkt" to victim
- else:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon.%victim%}
- set {pkt.%victim%} to 0
- send "&8>> Nie masz juz &cpkt do stracenia" to victim
- #dodawanie do topki ==================================================================
- on death of player:
- if attacker is a player:
- if {kill::%attacker%} is not set:
- set {kill::%attacker%} to 1
- if {zgon::%victim%} is not set:
- set {zgon::%victim%} to 1
- else:
- add 1 to {zgon::%victim%}
- else:
- if {pkt::%victim%} is more than 30:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon::%victim%}
- remove 30 from {pkt::%victim%}
- #============================================#
- # Ataker #
- #============================================#
- add 1 to {kill::%attacker%}
- add 30 to {pkt::%attacker%}
- else:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon::%victim%}
- set {pkt::%victim%} to 0
- #============================================#
- # Ataker #
- #============================================#
- add 1 to {kill::%attacker%}
- add 5 to {pkt::%attacker%}
- else:
- if {pkt::%victim%} is more than 30:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon::%victim%}
- remove 30 from {pkt::%victim%}
- else:
- #============================================#
- # Umierajacy #
- #============================================#
- add 1 to {zgon::%victim%}
- set {pkt::%victim%} to 0
- on join:
- if name of player is "MilutuS":
- broadcast "&7{@logo} Witamy tworce rankingu i sytemu PvP &cMilutuS'a"
- command /topka [<text>]:
- trigger:
- if {ranking} is true:
- send "&6================= &7{@logo} &6================="
- set {_num} to size of {kill::*}
- loop {_num} times:
- loop {kill::*}:
- {_v.%loop-number%} is not set:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- loop-value is greater than {_v.%loop-number%}:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- remove {_v.%loop-number%} from {kill::*}
- loop {_num} times:
- loop-number is less than or equal to {@top}:
- set {_m} to "%loop-number%"
- loop-number is more than 19:
- set {_m} to loop-number
- {_v.%loop-number%} is more than 0:
- send "&6>> &7%{_m}% &8%{_n.%loop-number%}% &c(%{_v.%loop-number%}%)"
- set {kill::%{_n.%loop-number%}%} to {_v.%loop-number%}
- {_num} is less than {@top}:
- set {_r} to {_num}+1
- loop {@top} - {_num} times:
- set {_m} to "0%{_r}%"
- {_r} is more than 19:
- set {_m} to {_r}
- add 1 to {_r}
- send "&fChwilowy brak danych"
- send "&6========================================"
- stop
- else:
- send "&6>> &cNie mozesz uzyc tej komendy"
- stop
- command /toppvpon:
- trigger:
- set {ranking} to true
- send "&6>> &7Wlaczyles ranking"
- command /toppvpoff:
- trigger:
- set {ranking} to false
- send "&6>> &7Wylaczyles ranking"
- on load:
- send "&e==========================================" to console
- send "&aRanking i system pvp by &6MilutuS &azostal wlaczony" to console
- send "&e==========================================" to console
- set {Wersja} to "v1.1"
- stop
- on skript stop:
- send "&e==========================================" to console
- send "&cRanking i system pvp by &6MilutuS zostal wylaczony" to console
- send "&e==========================================" to console
- stop
- every 1 hours:
- set {Version} to text from url "http://uptry.pl/Version.txt"
- wait 10 ticks
- if {Wersja} is not {Version}:
- send "&e=============================================" to console
- send "&4&lPosiadasz przedawniona wersje SK skontaktuj sie z tworca na MPC" to console
- send "&4&lhttp://www.mpcforum.pl/user/926314-milutus/" to console
- send "&e=============================================" to console
- send "&e=============================================" to all ops
- send "&4&lPosiadasz przedawniona wersje SK skontaktuj sie z tworca na MPC" to all ops
- send "&4&lhttp://www.mpcforum.pl/user/926314-milutus/" to all ops
- send "&e=============================================" to all ops
Advertisement
Add Comment
Please, Sign In to add comment