Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.67 KB | None | 0 0
  1. variables:
  2. {punkty::%player%} = 0
  3. command /resetlp [<offline player>]:
  4. permission: essentials.item
  5. trigger:
  6. if arg is set:
  7. set {lpstart.%arg%} to 5
  8. set {punkty::%arg%} to 0
  9. on join:
  10. if {lpstart.%player%} is not set:
  11. set {lpstart.%player%} to 1
  12. set {punkty::%player%} to 0
  13. stop
  14. if {lpstart.%player%} is 1:
  15. set {lpstart.%player%} to 2
  16. stop
  17. if {lpstart.%player%} is 2:
  18. set {lpstart.%player%} to 3
  19. stop
  20. if {lpstart.%player%} is 3:
  21. set {lpstart.%player%} to 4
  22. stop
  23. if {lpstart.%player%} is 4:
  24. set {lpstart.%player%} to 5
  25. stop
  26. on death:
  27. victim is player
  28. attacker is player
  29. if {punkty::%attacker%} < {punkty::%victim%}:
  30. set {_elobetween} to {punkty::%victim%}-{punkty::%attacker%}
  31. if {_elobetween} is between 0 and 49:
  32. add 25 to {punkty::%attacker%}
  33. remove 38 to {punkty::%victim%}
  34. if {_elobetween} is between 50 and 99:
  35. add 27 to {punkty::%attacker%}
  36. remove 41 to {punkty::%victim%}
  37. if {_elobetween} is between 100 and 149:
  38. add 29 to {punkty::%attacker%}
  39. remove 44 to {punkty::%victim%}
  40. if {_elobetween} is between 150 and 199:
  41. add 31 to {punkty::%attacker%}
  42. remove 47 to {punkty::%victim%}
  43. if {_elobetween} is between 200 and 249:
  44. add 33 to {punkty::%attacker%}
  45. remove 50 to {punkty::%victim%}
  46. if {_elobetween} is between 250 and 299:
  47. add 35 to {punkty::%attacker%}
  48. remove 53 to {punkty::%victim%}
  49. if {_elobetween} is between 300 and 349:
  50. add 37 to {punkty::%attacker%}
  51. remove 56 to {punkty::%victim%}
  52. if {_elobetween} is between 350 and 399:
  53. add 39 to {punkty::%attacker%}
  54. remove 59 to {punkty::%victim%}
  55. if {_elobetween} is between 400 and 449:
  56. add 41 to {punkty::%attacker%}
  57. remove 62 to {punkty::%victim%}
  58. if {_elobetween} is between 450 and 499:
  59. add 43 to {punkty::%attacker%}
  60. remove 65 to {punkty::%victim%}
  61. if {_elobetween} is between 500 and 549:
  62. add 45 to {punkty::%attacker%}
  63. remove 68 to {punkty::%victim%}
  64. if {_elobetween} is between 550 and 599:
  65. add 47 to {punkty::%attacker%}
  66. remove 71 to {punkty::%victim%}
  67. if {_elobetween} is between 600 and 649:
  68. add 49 to {punkty::%attacker%}
  69. remove 74 to {punkty::%victim%}
  70. if {_elobetween} is between 650 and 699:
  71. add 51 to {punkty::%attacker%}
  72. remove 77 to {punkty::%victim%}
  73. if {_elobetween} is between 700 and 749:
  74. add 53 to {punkty::%attacker%}
  75. remove 80 to {punkty::%victim%}
  76. if {_elobetween} is between 750 and 799:
  77. add 55 to {punkty::%attacker%}
  78. remove 83 to {punkty::%victim%}
  79. if {_elobetween} is between 800 and 849:
  80. add 57 to {punkty::%attacker%}
  81. remove 86 to {punkty::%victim%}
  82. if {_elobetween} is between 850 and 899:
  83. add 59 to {punkty::%attacker%}
  84. remove 89 to {punkty::%victim%}
  85. if {_elobetween} is between 900 and 949:
  86. add 60 to {punkty::%attacker%}
  87. remove 91 to {punkty::%victim%}
  88. if {_elobetween} is between 950 and 999:
  89. add 62 to {punkty::%attacker%}
  90. remove 93 to {punkty::%victim%}
  91. if {_elobetween} is more than or equal to 1000:
  92. add 67 to {punkty::%attacker%}
  93. remove 100 to {punkty::%victim%}
  94. else:
  95. set {_elobetween} to {punkty::%attacker%}-{punkty::%victim%}
  96. if {_elobetween} is between 0 and 49:
  97. add 25 to {punkty::%attacker%}
  98. remove 38 to {punkty::%victim%}
  99. if {_elobetween} is between 50 and 99:
  100. add 24 to {punkty::%attacker%}
  101. remove 36 to {punkty::%victim%}
  102. if {_elobetween} is between 100 and 149:
  103. add 23 to {punkty::%attacker%}
  104. remove 35 to {punkty::%victim%}
  105. if {_elobetween} is between 150 and 199:
  106. add 22 to {punkty::%attacker%}
  107. remove 33 to {punkty::%victim%}
  108. if {_elobetween} is between 200 and 249:
  109. add 21 to {punkty::%attacker%}
  110. remove 32 to {punkty::%victim%}
  111. if {_elobetween} is between 250 and 299:
  112. add 20 to {punkty::%attacker%}
  113. remove 30 to {punkty::%victim%}
  114. if {_elobetween} is between 300 and 349:
  115. add 19 to {punkty::%attacker%}
  116. remove 29 to {punkty::%victim%}
  117. if {_elobetween} is between 350 and 399:
  118. add 18 to {punkty::%attacker%}
  119. remove 27 to {punkty::%victim%}
  120. if {_elobetween} is between 400 and 449:
  121. add 17 to {punkty::%attacker%}
  122. remove 26 to {punkty::%victim%}
  123. if {_elobetween} is between 450 and 499:
  124. add 16 to {punkty::%attacker%}
  125. remove 24 to {punkty::%victim%}
  126. if {_elobetween} is between 500 and 549:
  127. add 15 to {punkty::%attacker%}
  128. remove 23 to {punkty::%victim%}
  129. if {_elobetween} is between 550 and 599:
  130. add 14 to {punkty::%attacker%}
  131. remove 21 to {punkty::%victim%}
  132. if {_elobetween} is between 600 and 649:
  133. add 13 to {punkty::%attacker%}
  134. remove 20 to {punkty::%victim%}
  135. if {_elobetween} is between 650 and 699:
  136. add 12 to {punkty::%attacker%}
  137. remove 18 to {punkty::%victim%}
  138. if {_elobetween} is between 700 and 749:
  139. add 11 to {punkty::%attacker%}
  140. remove 17 to {punkty::%victim%}
  141. if {_elobetween} is between 750 and 799:
  142. add 10 to {punkty::%attacker%}
  143. remove 15 to {punkty::%victim%}
  144. if {_elobetween} is between 800 and 849:
  145. add 9 to {punkty::%attacker%}
  146. remove 14 to {punkty::%victim%}
  147. if {_elobetween} is between 850 and 899:
  148. add 8 to {punkty::%attacker%}
  149. remove 12 to {punkty::%victim%}
  150. if {_elobetween} is between 900 and 949:
  151. add 7 to {punkty::%attacker%}
  152. remove 11 to {punkty::%victim%}
  153. if {_elobetween} is between 950 and 999:
  154. add 6 to {punkty::%attacker%}
  155. remove 9 to {punkty::%victim%}
  156. if {_elobetween} is more than or equal to 1000:
  157. add 5 to {punkty::%attacker%}
  158. remove 8 to {punkty::%victim%}
  159. command /ranking [<offline player>]:
  160. trigger:
  161. if {lpstart.%arg%} is 5:
  162. if arg is set:
  163. if {punkty::%arg%} is below or equal to 100:
  164. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel V&7]"
  165. stop
  166. if {punkty::%arg%} is between 101 and 200:
  167. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel IV&7]"
  168. stop
  169. if {punkty::%arg%} is between 201 and 300:
  170. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel III&7]"
  171. stop
  172. if {punkty::%arg%} is between 301 and 400:
  173. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel II&7]"
  174. stop
  175. if {punkty::%arg%} is between 401 and 500:
  176. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&8&lWegiel I&7]"
  177. stop
  178. if {punkty::%arg%} is between 501 and 600:
  179. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt V&1]"
  180. stop
  181. if {punkty::%arg%} is between 601 and 700:
  182. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt IV&1]"
  183. stop
  184. if {punkty::%arg%} is between 701 and 800:
  185. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt III&1]"
  186. stop
  187. if {punkty::%arg%} is between 801 and 900:
  188. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt II&1]"
  189. stop
  190. if {punkty::%arg%} is between 901 and 1000:
  191. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &1[&9&lLazuryt I&1]"
  192. stop
  193. if {punkty::%arg%} is between 1001 and 1100:
  194. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo V&f]"
  195. stop
  196. if {punkty::%arg%} is between 1101 and 1200:
  197. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo IV&f]"
  198. stop
  199. if {punkty::%arg%} is between 1201 and 1300:
  200. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo III&f]"
  201. stop
  202. if {punkty::%arg%} is between 1301 and 1400:
  203. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo II&f]"
  204. stop
  205. if {punkty::%arg%} is between 1401 and 1500:
  206. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&7&lZelazo I&f]"
  207. stop
  208. if {punkty::%arg%} is between 1501 and 1600:
  209. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc V&7]"
  210. stop
  211. if {punkty::%arg%} is between 1601 and 1700:
  212. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc IV&7]"
  213. stop
  214. if {punkty::%arg%} is between 1701 and 1800:
  215. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc III&7]"
  216. stop
  217. if {punkty::%arg%} is between 1801 and 1900:
  218. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc II&7]"
  219. stop
  220. if {punkty::%arg%} is between 1901 and 2000:
  221. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &7[&f&lKwarc I&7]"
  222. stop
  223. if {punkty::%arg%} is between 2001 and 2100:
  224. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone V&c]"
  225. stop
  226. if {punkty::%arg%} is between 2101 and 2200:
  227. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone IV&c]"
  228. stop
  229. if {punkty::%arg%} is between 2201 and 2300:
  230. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone III&c]"
  231. stop
  232. if {punkty::%arg%} is between 2301 and 2400:
  233. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone II&c]"
  234. stop
  235. if {punkty::%arg%} is between 2401 and 2500:
  236. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &c[&4&lRedstone I&c]"
  237. stop
  238. if {punkty::%arg%} is between 2501 and 2600:
  239. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto V&6]"
  240. stop
  241. if {punkty::%arg%} is between 2601 and 2700:
  242. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto IV&6]"
  243. stop
  244. if {punkty::%arg%} is between 2701 and 2800:
  245. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto III&6]"
  246. stop
  247. if {punkty::%arg%} is between 2801 and 2900:
  248. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto II&6]"
  249. stop
  250. if {punkty::%arg%} is between 2901 and 3000:
  251. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &6[&e&lZloto I&6]"
  252. stop
  253. if {punkty::%arg%} is between 3001 and 3100:
  254. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd V&3]"
  255. stop
  256. if {punkty::%arg%} is between 3101 and 3200:
  257. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd IV&3]"
  258. stop
  259. if {punkty::%arg%} is between 3201 and 3300:
  260. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd III&3]"
  261. stop
  262. if {punkty::%arg%} is between 3301 and 3400:
  263. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd II&3]"
  264. stop
  265. if {punkty::%arg%} is between 3401 and 3500:
  266. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &3[&a&lSzmaragd I&3]"
  267. stop
  268. if {punkty::%arg%} is between 3501 and 3600:
  269. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament V&f]"
  270. stop
  271. if {punkty::%arg%} is between 3601 and 3700:
  272. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament IV&f]"
  273. stop
  274. if {punkty::%arg%} is between 3701 and 3800:
  275. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament III&f]"
  276. stop
  277. if {punkty::%arg%} is between 3801 and 3900:
  278. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament II&f]"
  279. stop
  280. if {punkty::%arg%} is between 3901 and 4000:
  281. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &f[&b&lDiament I&f]"
  282. stop
  283. if {punkty::%arg%} is more than or equal to 4001:
  284. send "&e&l%arg% &f| &fELO: &e&l%{punkty::%arg%}% &f| &fDivision: &0{&6&lBedrock&0}"
  285. stop
  286. else:
  287. send "&e&l%arg% &f| &fELO: &e&l0 &f| &fDivision: &7Unranked"
  288. stop
  289. else:
  290. send "&e&l%arg% &f| &fELO: &e&l0 &f| &fDivision: &7Unranked"
  291. stop
  292. command /toppvp:
  293. trigger:
  294. send "&6&lRanking &4&l[&eTOP PVP&4&l]&7:"
  295. set {_num} to size of {punkty::*}
  296. loop {_num} times:
  297. loop {punkty::*}:
  298. if {_topscore.%loop-number%} is not set:
  299. set {_topscore.%loop-number%} to loop-value
  300. set {_topplayer.%loop-number%} to loop-index
  301. else if loop-value is greater than {_topscore.%loop-number%}:
  302. set {_topscore.%loop-number%} to loop-value
  303. set {_topplayer.%loop-number%} to loop-index
  304. remove {_topscore.%loop-number%} from {punkty::*}
  305. loop {_num} times:
  306. if loop-number is less than or equal to 5:
  307. send "&6&l%loop-number%. &e&l%{_topplayer.%loop-number%}% &f| &fELO: &e&l%{_topscore.%loop-number%}%" to player
  308. set {punkty::%{_topplayer.%loop-number%}%} to {_topscore.%loop-number%}
  309. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement