Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #<>-------------------------------------<>#
- # Autor: Dinekkk #
- # Wersja: v0.9[Beta] + SQLite + SkPlus #
- # Kanal: yt.com/user/DinekkkPlay #
- # Nie zezwalam na : #
- # Podszywanie się za autora skryptu #
- # Usuwania linijek 1-14 #
- # Zarabiania na skrypcie #
- # Usuwania komendy /irank #
- # Reklamowania go na forach #
- # Zezwalam na: #
- # Zmiane kodu wg wlasnych potrzeb #
- # Subskrybowanie kanału autora #
- #<>-------------------------------------<>#
- #<>-----------------------------------( Zmienne )-----------------------------------<>#
- variables:
- {p.%player%} = 1000
- {zab.%player%} = 0
- {sm.%player%} = 0
- #<>---------------------------------------------------------------------------------<>#
- #<>-------------------------------( Punkty na start )-------------------------------<>#
- on first join:
- set {p.%player%} to 1000
- set {zab.%player%} to 0
- set {sm.%player%} to 0
- #<>---------------------------------------------------------------------------------<>#
- #<>--------------------------( Punkty za zabicie gracza )---------------------------<>#
- on death of player:
- attacker is a player
- victim is a player
- set {_p} to random integer between 10 and 100
- add {_p} to {p.%attacker%}
- broadcast "&c%victim% &czostal zabity przez &c%attacker% &c(&c%{_p}%&c)"
- #<>---------------------------------------------------------------------------------<>#
- #<>------------------------------------( Glowa )------------------------------------<>#
- on death of player:
- attacker is player
- victim is a player
- add victim's skull to attacker
- #<>---------------------------------------------------------------------------------<>#
- #<>-------------------------( Punkty za smierc przez moba )-------------------------<>#
- on death of player:
- victim is a player
- attacker is a zombie or a creeper or a spider or a blaze or an enderman or a skeleton or a witch or a ghast or a slime
- add 1 to {sm.%victim%}
- set {_p} to random integer between 10 and 50
- remove {_p} from {p.%victim%}
- broadcast "&c%victim% &czginal w niewyjasnionych okolicznosciach!"
- #<>---------------------------------------------------------------------------------<>#
- #<>-------------------------------( Punkty za smierc )------------------------------<>#
- on death of player:
- victim is a player
- attacker is a player
- add 1 to {sm.%victim%}
- set {_p} to random integer between 10 and 50
- remove {_p} from {p.%victim%}
- #<>---------------------------------------------------------------------------------<>#
- #<>-------------------------------( Komenda /ranking )------------------------------<>#
- command /ranking [<offlineplayer>]:
- trigger:
- argument 1 is set:
- send "&aRanking gracza %argument 1%: %{p.%argument 1%}% &a(k: %{zab.%argument 1%}% &ad: %{sm.%argument 1%}%&a)"
- else:
- send "&aRanking gracza %player%: %{p.%player%}% &a(k: %{zab.%player%}% &ad: %{sm.%player%}%&a)"
- on rightclick on player:
- send "&aRanking gracza %clicked player%: %{p.%clicked player%}% &a(k: %{zab.%clicked player%}% &ad: %{sm.%clicked player%}%&a)" to player
- #<>---------------------------------------------------------------------------------<>#
- #<>-------------------------------( Komenda /resetuj )------------------------------<>#
- command /resetuj [<offlineplayer>]:
- trigger:
- player has permissions "irank.resetuj":
- if argument 1 is set:
- send "&2iRank > &aPomyslnie zresetowales ranking gracza %argument 1%!"
- set {zab.%argument 1%} to 0
- set {sm.%argument 1%} to 0
- set {p.%argument 1%} to 1000
- else:
- loop all players:
- send "&2iRank > &aPomyslnie zresetowales ranking wszystkich graczy!"
- set {zab.%loop-player%} to 0
- set {sm.%loop-player%} to 0
- set {p.%loop-player%} to 1000
- else:
- send "&cNie masz uprawnien"
- #<>---------------------------------------------------------------------------------<>#
- #<>--------------------------------( Komenda /irank )-------------------------------<>#
- command /irank [<text>]:
- trigger:
- argument 1 is "komendy":
- send "&2--------------( iRank )--------------"
- send "&a/ranking - info o rankingu"
- send "&a/resetuj - resetuje punkty graczowi"
- send "&a/irank-reload - reload skryptu"
- send "&2--------------( ***** )--------------"
- argument 1 is not set:
- send "&2--------------( iRank )--------------"
- send "&aWersja: &2v0.8.5"
- send "&aAutor: &2Dinekkk"
- send "&aYouTube: &2youtube.com/user/DinekkkPlay"
- send "&aKomendy: &2/irank komendy"
- send "&2--------------( ***** )--------------"
- #<>---------------------------------------------------------------------------------<>#
- #<>----------------------------( Komenda /irank-reload )----------------------------<>#
- command /irank-reload:
- trigger:
- execute console command "skript reload iRank"
- send "&2iRank > &aReload skryptu zostal przeprowadzony pomyslnie!"
- #<>---------------------------------------------------------------------------------<>#
- #<>----------------------------------( Anty-Relog )---------------------------------<>#
- on quit:
- {in.combat.%player%} is true:
- kill player
- broadcast "&c%player% wylogowal sie podczas walki!"
- delete {in.combat.%player%}
- delete {seconds.until.out.%player%}
- on damage:
- victim is player
- attacker is player
- if {in.combat.%victim%} is true:
- set {seconds.until.out.%victim%} to 10
- stop
- send "&cJestes podczas walki! Nie wylogowywuj sie!" to victim
- set {in.combat.%victim%} to true
- set {seconds.until.out.%victim%} to 10
- while {seconds.until.out.%victim%} is more than 1:
- {seconds.until.out.%victim%} is not set:
- stop
- subtract 1 from {seconds.until.out.%victim%}
- wait 1 second
- delete {in.combat.%victim%}
- delete {seconds.until.out.%victim%}
- send "&cMozesz sie bezpiecznie wylogowac." to victim
- on death:
- delete {walka.%victim%}
- delete {czas.%victim%}
- on damage:
- victim is player
- attacker is player
- if {walka.%attacker%} is true:
- set {czas.%attacker%} to 10
- stop
- send "&cJestes podczas walki! Nie wylogowywuj sie!" to attacker
- set {walka.%attacker%} to true
- set {czas.%attacker%} to 10
- while {czas.%attacker%} is more than 1:
- {czas.%attacker%} is not set:
- stop
- subtract 1 from {czas.%attacker%}
- wait 1 second
- delete {walka.%attacker%}
- delete {czas.%attacker%}
- send "&cMozesz sie bezpiecznie wylogowac." to attacker
- on join:
- {walka.%player%} is set:
- delete {walka.%player%}
- {czas.%player%} is set:
- delete {czas.%player%}
- on death of player:
- victim is a player
- attacker is a player
- add 1 to {zab.%attacker%}
- add 1 to {sm.%victim%}
- #<>---------------------------------------------------------------------------------<>#
- #<>------------------------------( Tablica Wynikow )--------------------------------<>#
- every 200 ticks:
- loop all players:
- display board named "&8.:: &4Ranking &8::." to loop-player
- make score "&7Punkty:" in board of loop-player to {p.%loop-player%}
- make score "&7Zabojstwa:" in board of loop-player to {zab.%loop-player%}
- make score "&7Smierci:" in board of loop-player to {sm.%loop-player%}
- move display of loop-player to "sidebar"
Advertisement
Add Comment
Please, Sign In to add comment