Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {punkty::%player%} = 0
- command /resetlp [<offline player>]:
- permission: essentials.item
- trigger:
- if arg is set:
- set {lpstart.%arg%} to 5
- set {punkty::%arg%} to 0
- on join:
- if {lpstart.%player%} is not set:
- set {lpstart.%player%} to 1
- set {punkty::%player%} to 0
- stop
- if {lpstart.%player%} is 1:
- set {lpstart.%player%} to 2
- stop
- if {lpstart.%player%} is 2:
- set {lpstart.%player%} to 3
- stop
- if {lpstart.%player%} is 3:
- set {lpstart.%player%} to 4
- stop
- if {lpstart.%player%} is 4:
- set {lpstart.%player%} to 5
- stop
- on death:
- victim is player
- attacker is player
- if {punkty::%attacker%} < {punkty::%victim%}:
- set {_elobetween} to {punkty::%victim%}-{punkty::%attacker%}
- if {_elobetween} is between 0 and 49:
- add 25 to {punkty::%attacker%}
- remove 38 to {punkty::%victim%}
- if {_elobetween} is between 50 and 99:
- add 27 to {punkty::%attacker%}
- remove 41 to {punkty::%victim%}
- if {_elobetween} is between 100 and 149:
- add 29 to {punkty::%attacker%}
- remove 44 to {punkty::%victim%}
- if {_elobetween} is between 150 and 199:
- add 31 to {punkty::%attacker%}
- remove 47 to {punkty::%victim%}
- if {_elobetween} is between 200 and 249:
- add 33 to {punkty::%attacker%}
- remove 50 to {punkty::%victim%}
- if {_elobetween} is between 250 and 299:
- add 35 to {punkty::%attacker%}
- remove 53 to {punkty::%victim%}
- if {_elobetween} is between 300 and 349:
- add 37 to {punkty::%attacker%}
- remove 56 to {punkty::%victim%}
- if {_elobetween} is between 350 and 399:
- add 39 to {punkty::%attacker%}
- remove 59 to {punkty::%victim%}
- if {_elobetween} is between 400 and 449:
- add 41 to {punkty::%attacker%}
- remove 62 to {punkty::%victim%}
- if {_elobetween} is between 450 and 499:
- add 43 to {punkty::%attacker%}
- remove 65 to {punkty::%victim%}
- if {_elobetween} is between 500 and 549:
- add 45 to {punkty::%attacker%}
- remove 68 to {punkty::%victim%}
- if {_elobetween} is between 550 and 599:
- add 47 to {punkty::%attacker%}
- remove 71 to {punkty::%victim%}
- if {_elobetween} is between 600 and 649:
- add 49 to {punkty::%attacker%}
- remove 74 to {punkty::%victim%}
- if {_elobetween} is between 650 and 699:
- add 51 to {punkty::%attacker%}
- remove 77 to {punkty::%victim%}
- if {_elobetween} is between 700 and 749:
- add 53 to {punkty::%attacker%}
- remove 80 to {punkty::%victim%}
- if {_elobetween} is between 750 and 799:
- add 55 to {punkty::%attacker%}
- remove 83 to {punkty::%victim%}
- if {_elobetween} is between 800 and 849:
- add 57 to {punkty::%attacker%}
- remove 86 to {punkty::%victim%}
- if {_elobetween} is between 850 and 899:
- add 59 to {punkty::%attacker%}
- remove 89 to {punkty::%victim%}
- if {_elobetween} is between 900 and 949:
- add 60 to {punkty::%attacker%}
- remove 91 to {punkty::%victim%}
- if {_elobetween} is between 950 and 999:
- add 62 to {punkty::%attacker%}
- remove 93 to {punkty::%victim%}
- if {_elobetween} is more than or equal to 1000:
- add 67 to {punkty::%attacker%}
- remove 100 to {punkty::%victim%}
- else:
- set {_elobetween} to {punkty::%attacker%}-{punkty::%victim%}
- if {_elobetween} is between 0 and 49:
- add 25 to {punkty::%attacker%}
- remove 38 to {punkty::%victim%}
- if {_elobetween} is between 50 and 99:
- add 24 to {punkty::%attacker%}
- remove 36 to {punkty::%victim%}
- if {_elobetween} is between 100 and 149:
- add 23 to {punkty::%attacker%}
- remove 35 to {punkty::%victim%}
- if {_elobetween} is between 150 and 199:
- add 22 to {punkty::%attacker%}
- remove 33 to {punkty::%victim%}
- if {_elobetween} is between 200 and 249:
- add 21 to {punkty::%attacker%}
- remove 32 to {punkty::%victim%}
- if {_elobetween} is between 250 and 299:
- add 20 to {punkty::%attacker%}
- remove 30 to {punkty::%victim%}
- if {_elobetween} is between 300 and 349:
- add 19 to {punkty::%attacker%}
- remove 29 to {punkty::%victim%}
- if {_elobetween} is between 350 and 399:
- add 18 to {punkty::%attacker%}
- remove 27 to {punkty::%victim%}
- if {_elobetween} is between 400 and 449:
- add 17 to {punkty::%attacker%}
- remove 26 to {punkty::%victim%}
- if {_elobetween} is between 450 and 499:
- add 16 to {punkty::%attacker%}
- remove 24 to {punkty::%victim%}
- if {_elobetween} is between 500 and 549:
- add 15 to {punkty::%attacker%}
- remove 23 to {punkty::%victim%}
- if {_elobetween} is between 550 and 599:
- add 14 to {punkty::%attacker%}
- remove 21 to {punkty::%victim%}
- if {_elobetween} is between 600 and 649:
- add 13 to {punkty::%attacker%}
- remove 20 to {punkty::%victim%}
- if {_elobetween} is between 650 and 699:
- add 12 to {punkty::%attacker%}
- remove 18 to {punkty::%victim%}
- if {_elobetween} is between 700 and 749:
- add 11 to {punkty::%attacker%}
- remove 17 to {punkty::%victim%}
- if {_elobetween} is between 750 and 799:
- add 10 to {punkty::%attacker%}
- remove 15 to {punkty::%victim%}
- if {_elobetween} is between 800 and 849:
- add 9 to {punkty::%attacker%}
- remove 14 to {punkty::%victim%}
- if {_elobetween} is between 850 and 899:
- add 8 to {punkty::%attacker%}
- remove 12 to {punkty::%victim%}
- if {_elobetween} is between 900 and 949:
- add 7 to {punkty::%attacker%}
- remove 11 to {punkty::%victim%}
- if {_elobetween} is between 950 and 999:
- add 6 to {punkty::%attacker%}
- remove 9 to {punkty::%victim%}
- if {_elobetween} is more than or equal to 1000:
- add 5 to {punkty::%attacker%}
- remove 8 to {punkty::%victim%}
- command /ranking [<offline player>]:
- trigger:
- if {lpstart.%arg%} is 5:
- if arg is set:
- if {punkty::%arg%} is below or equal to 100:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel V&7]"
- stop
- if {punkty::%arg%} is between 101 and 200:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel IV&7]"
- stop
- if {punkty::%arg%} is between 201 and 300:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel III&7]"
- stop
- if {punkty::%arg%} is between 301 and 400:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel II&7]"
- stop
- if {punkty::%arg%} is between 401 and 500:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel I&7]"
- stop
- if {punkty::%arg%} is between 501 and 600:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt V&1]"
- stop
- if {punkty::%arg%} is between 601 and 700:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt IV&1]"
- stop
- if {punkty::%arg%} is between 701 and 800:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt III&1]"
- stop
- if {punkty::%arg%} is between 801 and 900:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt II&1]"
- stop
- if {punkty::%arg%} is between 901 and 1000:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt I&1]"
- stop
- if {punkty::%arg%} is between 1001 and 1100:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo V&f]"
- stop
- if {punkty::%arg%} is between 1101 and 1200:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo IV&f]"
- stop
- if {punkty::%arg%} is between 1201 and 1300:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo III&f]"
- stop
- if {punkty::%arg%} is between 1301 and 1400:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo II&f]"
- stop
- if {punkty::%arg%} is between 1401 and 1500:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo I&f]"
- stop
- if {punkty::%arg%} is between 1501 and 1600:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc V&7]"
- stop
- if {punkty::%arg%} is between 1601 and 1700:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc IV&7]"
- stop
- if {punkty::%arg%} is between 1701 and 1800:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc III&7]"
- stop
- if {punkty::%arg%} is between 1801 and 1900:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc II&7]"
- stop
- if {punkty::%arg%} is between 1901 and 2000:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc I&7]"
- stop
- if {punkty::%arg%} is between 2001 and 2100:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone V&c]"
- stop
- if {punkty::%arg%} is between 2101 and 2200:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone IV&c]"
- stop
- if {punkty::%arg%} is between 2201 and 2300:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone III&c]"
- stop
- if {punkty::%arg%} is between 2301 and 2400:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone II&c]"
- stop
- if {punkty::%arg%} is between 2401 and 2500:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone I&c]"
- stop
- if {punkty::%arg%} is between 2501 and 2600:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto V&6]"
- stop
- if {punkty::%arg%} is between 2601 and 2700:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto IV&6]"
- stop
- if {punkty::%arg%} is between 2701 and 2800:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto III&6]"
- stop
- if {punkty::%arg%} is between 2801 and 2900:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto II&6]"
- stop
- if {punkty::%arg%} is between 2901 and 3000:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto I&6]"
- stop
- if {punkty::%arg%} is between 3001 and 3100:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd V&3]"
- stop
- if {punkty::%arg%} is between 3101 and 3200:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd IV&3]"
- stop
- if {punkty::%arg%} is between 3201 and 3300:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd III&3]"
- stop
- if {punkty::%arg%} is between 3301 and 3400:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd II&3]"
- stop
- if {punkty::%arg%} is between 3401 and 3500:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd I&3]"
- stop
- if {punkty::%arg%} is between 3501 and 3600:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament V&f]"
- stop
- if {punkty::%arg%} is between 3601 and 3700:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament IV&f]"
- stop
- if {punkty::%arg%} is between 3701 and 3800:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament III&f]"
- stop
- if {punkty::%arg%} is between 3801 and 3900:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament II&f]"
- stop
- if {punkty::%arg%} is between 3901 and 4000:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament I&f]"
- stop
- if {punkty::%arg%} is more than or equal to 4001:
- send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &0{&6&lBedrock&0}"
- stop
- else:
- send "&e&l%arg% &f| &fELO: &e&l0 &f| &fDivision: &7Unranked"
- stop
- else:
- send "&e&l%arg% &f| &fELO: &e&l0 &f| &fDivision: &7Unranked"
- stop
- command /toppvp:
- trigger:
- send "&6&lRanking &4&l[&eTOP PVP&4&l]&7:"
- set {_num} to size of {punkty::*}
- loop {_num} times:
- loop {punkty::*}:
- if {_topscore.%loop-number%} is not set:
- set {_topscore.%loop-number%} to loop-value
- set {_topplayer.%loop-number%} to loop-index
- else if loop-value is greater than {_topscore.%loop-number%}:
- set {_topscore.%loop-number%} to loop-value
- set {_topplayer.%loop-number%} to loop-index
- remove {_topscore.%loop-number%} from {punkty::*}
- loop {_num} times:
- if loop-number is less than or equal to 5:
- send "&6&l%loop-number%. &e&l%{_topplayer.%loop-number%}% &f| &fELO: &e&l%{_topscore.%loop-number%}%" to player
- set {punkty::%{_topplayer.%loop-number%}%} to {_topscore.%loop-number%}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement