Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pkt::%player%} = 1000
- {zabicia.%player%} = 0
- {zginiecia.%player%} = 0
- {walka.%player%} = false
- on script load:
- execute console command "scoreboard objectives add &aPunktow dummy"
- execute console command "scoreboard objectives setdisplay belowName &aPunktow"
- on script unload:
- execute console command "scoreboard objectives remove &aPunktow"
- on join:
- if {pkt::%player%} is not set:
- set {pkt.%player%} to 1000
- if {zabicia.%player%} is not set:
- set {zabicia.%player%} to 0
- if {zginiecia.%player%} is not set:
- set {zginiecia.%player%} to 0
- if {nick::%player%} is not set:
- set {nick::%player%} to uncolored display name of player
- execute console command "scoreboard players %player% set &aPunktow %{pkt::%player%}%"
- command /rs [<player>]:
- trigger:
- if arg 1 is set:
- if player has permission "pixelrank.rs.player":
- set {pkt::%arg 1%} to 1000
- execute console command "scoreboard players set %arg 1% &aPunktow %{pkt::%arg 1%}%"
- set {zginiecia.%arg 1%} to 0
- set {zabicia.%arg 1%} to 0
- send "&2Pomyslnie zresetowales statystyki gracza: &6%arg 1%!"
- else:
- send "&4Blad: &cNie masz uprawnien !"
- stop
- else:
- set {pkt::%player%} to 1000
- execute console command "scoreboard players set %player% &aPunktow %{pkt::%player%}%"
- set {zginiecia.%player%} to 0
- set {zabicia.%player%} to 0
- send "&2Pomyslnie zresetowales swoje statystyki !"
- on chat:
- broadcast "&8[&2%{pkt::%player%}%&8] &7%display name of player%: %message%"
- cancel event
- on death:
- if victim is player:
- if attacker is player:
- if {pkt.%victim%} is smaller than 999:
- strike lightning effect at the player
- add 1 to {kille.%attacker%}
- add 1 to {dedy.%victim%}
- add 5 to {pkt::%attacker%}
- set death message to "&6%victim% &czostal zabity przez: &6%attacker% &cz przedmiotu: &6%tool of attacker% &7(&a+58:&c-0&7)"
- execute console command "scoreboard players set %victim% &aPunktow %{pkt::%victim%}%"
- execute console command "scoreboard players set %attacker% &aPunktow %{pkt::%attacker%}%"
- else:
- strike lightning effect at the player
- add 1 to {kille.%attacker%}
- add 1 to {dedy.%victim%}
- set {_pktattacker} to {pkt::%victim%}*0.1
- add {_pktattacker} to {pkt::%attacker%}
- set {_pktvictim} to random integer between 30 and 50
- remove {_pktvictim} from {pkt::%victim%}
- set death message to "&6%victim% &czostal zabity przez: &6%attacker% &cz przedmiotu: &6%tool of attacker% &7(&a+%{_pktattacker}%&8:&c-%{_pktvictim}%&7)"
- execute console command "scoreboard players set %victim% &aPunktow %{pkt::%victim%}%"
- execute console command "scoreboard players set %attacker% &aPunktow %{pkt::%attacker%}%"
- else:
- strike lightning effect at the player
- add 1 to {dedy.%victim%}
- add -30 to {pkt.%victim%}
- set death message to "&6%victim% &czginal &7[&c-30&7]"
- execute console command "scoreboard players set %player% &aPunktow %{pkt::%victim%}%"
- command /ranking [<offlineplayer>]:
- trigger:
- if arg 1 is set:
- send "&7&l--------------------------------------------"
- send "&cGracz: &6%arg 1%"
- send "&cIlosc rankingu: &6%{pkt::%arg 1%}%"
- send "&cIlosc zabójstw: &6%{zabicia.%arg 1%}%"
- send "&cIlosc zgonów: &6%{zginiecia.%arg 1%}%"
- send "&7&l--------------------------------------------"
- else:
- send "&7&l--------------------------------------------"
- send "&cGracz: &6%player% &7&l "
- send "&cIlosc rankingu: &6%{pkt::%player%}% &7&l "
- send "&cIlosc zabójstw: &6%{zabicia.%player%}%&7&l "
- send "&cIlosc zgonów: &6%{zginiecia.%player%}%&7&l "
- send "&7&l--------------------------------------------"
- on right click with sword on player:
- send "&cRanking gracza: &6%clicked player% &cwynosi: &8[&2%{pkt::%clicked player%}%&8]"
- on damage:
- victim is player
- attacker is player:
- if {walka.%victim%} is true:
- if {walka.%attacker%} is true:
- stop
- else:
- set {walka.%victim%} to true
- set {walka.%attacker%} to true
- send "&cNie mozesz sie wylogowac poniewaz jestes podczas walki !" to the victim
- send "&cNie mozesz sie wylogowac poniewaz jestes podczas walki !" to the attacker
- wait 9 second
- set {walka.%victim%} to false
- set {walka.%attacker%} to false
- send "&aMozesz juz spokojnie sie wylogowac &b:)" to the victim
- send "&aMozesz juz spokojnie sie wylogowac &b:)" to the attacker
- stop
- else:
- set {walka.%victim%} to true
- set {walka.%attacker%} to true
- send "&cNie mozesz sie wylogowac poniewaz jestes podczas walki !" to the victim
- send "&cNie mozesz sie wylogowac poniewaz jestes podczas walki !" to the attacker
- wait 5 second
- set {walka.%victim%} to false
- set {walka.%attacker%} to false
- send "&aMozesz juz spokojnie sie wylogowac &b:)" to the victim
- send "&aMozesz juz spokojnie sie wylogowac &b:)" to the attacker
- stop
- command /top [<integer=1>]:
- trigger:
- set {_strony} to rounded up (size of {pkt::*} / 5)
- arg is between 1 and {_strony}:
- send "&8&l====&6Ranking top rank&8&l===="
- loop {stone::*}:
- set {_lista::%loop-index%} to loop-value
- set {_num} to size of {_lista::*}
- set {_max} to arg * 5
- set {_min} to {_max} - 4
- loop {_max} times:
- loop {_lista::*}:
- {_wartosc.%loop-number%} is not set:
- set {_wartosc.%loop-number%} to loop-value
- set {_nazwa.%loop-number%} to loop-index
- loop-value is more than {_wartosc.%loop-number%}:
- set {_wartosc.%loop-number%} to loop-value
- set {_nazwa.%loop-number%} to loop-index
- remove {_wartosc.%loop-number%} from {_lista::*}
- loop {_max} times:
- loop-number is between {_min} and {_max}
- loop-number <= {_num}:
- send "&8%loop-number%. &7%{nick::%{_nazwa.%loop-number%}%}% &2(%{_wartosc.%loop-number%}%)"
- {_max} is more than {_num}:
- set {_r} to {_num}
- loop {_max} - {_num} times:
- add 1 to {_r}
- send "&8%{_r}%. &7Brak gracz na tym miejscu"
- send "Strona: %arg% z %{_strony}%"
- stop
- {_strony} is 1:
- send "Wyniki mieszcza sie na 1 stronie."
- stop
- send "Wyniki mieszcza sie na %{_strony}% stronach."
- on quit:
- if {walka.%player%} is true:
- strike lightning effect at the player
- add 1 to {dedy.%player%}
- add -40 to {pkt::%player%}
- broadcast "&6%player% &clognol podczas walki &7[&c40&7]"
- execute console command "scoreboard players set %player% &aPunktow %{pkt::%player%}%"
- every 15 second:
- loop all players:
- execute console command "scoreboard players set %loop-player% &aPunktow %{pkt::%loop-player%}%"
- set {_packet::*} to "PacketPlayOutPlayerInfo", "%loop-players%", false and 0
- loop-player.sendPacket{{_packet::*}};
- set {_packet::*} to "PacketPlayOutPlayerInfo", "&2mc&7.&4pixel&7.&1net", true and 0
- loop-player.sendPacket{{_packet::*}};
- on command:
- if {walka.%player%} is true:
- cancel event
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment