patison234

regrg

May 23rd, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.51 KB | None | 0 0
  1. variables:
  2. {dedy::%player%} = 0
  3. {k.%player%} = 0
  4. {d.%player%} = 0
  5. on death of player:
  6. attacker is player
  7. add 5 to the attacker's balance
  8. send "&7[&cWalls&7] &7Zabiles &c%victim% &7dostajesz &c5 coins" to the attacker
  9. send "&7[&cWalls&7] &7Zabil cie &c%attacker%" to the victim
  10.  
  11. on death of player:
  12. if attacker is player:
  13. if victim is player:
  14. add 1 to {k.pvp::%attacker%}
  15. add 1 to {dedy::%victim%}
  16. add 1 to {d.%victim%}
  17. add 1 to {k.%attacker%}
  18. on join:
  19. if {k.pvp::%player%} is not set:
  20. set {k.pvp::%player%} to 0
  21. set {dedy::%player%} to 0
  22.  
  23. command /staty:
  24. trigger:
  25. send "&7[&bx&7]&7&M--------------&7[ &bSTATS &7]&7&M--------------&7[&bx&7]"
  26. send "&7Kille: &b%{k.pvp::%player%}%"
  27. send "&7Dedy: &b%{dedy::%player%}%"
  28. set {_kdr.%player%} to {k.%player%} / {d.%player%}
  29. send "&7KDR: &b%{_kdr.%player%}%"
  30. send "&7[&bx&7]&7&M--------------&7[ &bSTATS &7]&7&M--------------&7[&bx&7]"
  31. stop
  32. command /top:
  33. trigger:
  34. send "&7[&bx&7]&7&M--------------&7[ &bTOP-KILLS &7]&7&M--------------&7[&bx&7]"
  35. delete {top.kill::*}
  36. set {_num} to size of {k.pvp::*}
  37. loop {k.pvp::*}:
  38. set {top.kill::%loop-index%} to loop-value
  39. loop {_num} times:
  40. loop {top.kill::*}:
  41. {_v.%loop-number%} is not set:
  42. set {_v.%loop-number%} to loop-value
  43. set {_n.%loop-number%} to loop-index
  44. if loop-value is bigger than {_v.%loop-number%}:
  45. set {_v.%loop-number%} to loop-value
  46. set {_n.%loop-number%} to loop-index
  47. remove {_v.%loop-number%} from {top.kill::*}
  48. loop {_num} times:
  49. loop-number is less than or equal to 10:
  50. loop-number is 1:
  51. set {topelo1} to "%{_n.%loop-number%}% "
  52. set {topelopunkty1} to {_v.%loop-number%}
  53. loop-number is 2:
  54. set {topelo2} to "%{_n.%loop-number%}% "
  55. set {topelopunkty2} to {_v.%loop-number%}
  56. loop-number is 3:
  57. set {topelo3} to "%{_n.%loop-number%}% "
  58. set {topelopunkty3} to {_v.%loop-number%}
  59. loop-number is 4:
  60. set {topelo4} to "%{_n.%loop-number%}% "
  61. set {topelopunkty4} to {_v.%loop-number%}
  62. loop-number is 5:
  63. set {topelo5} to "%{_n.%loop-number%}% "
  64. set {topelopunkty5} to {_v.%loop-number%}
  65. loop-number is 6:
  66. set {topelo6} to "%{_n.%loop-number%}% "
  67. set {topelopunkty6} to {_v.%loop-number%}
  68. loop-number is 7:
  69. set {topelo7} to "%{_n.%loop-number%}% "
  70. set {topelopunkty7} to {_v.%loop-number%}
  71. loop-number is 8:
  72. set {topelo8} to "%{_n.%loop-number%}% "
  73. set {topelopunkty8} to {_v.%loop-number%}
  74. loop-number is 9:
  75. set {topelo9} to "%{_n.%loop-number%}% "
  76. set {topelopunkty9} to {_v.%loop-number%}
  77. loop-number is 10:
  78. set {topelo10} to "%{_n.%loop-number%}% "
  79. set {topelopunkty10} to {_v.%loop-number%}
  80. send "&b%loop-number%. &7%{_n.%loop-number%}% &b%{_v.%loop-number%}%"
  81. {_num} is less than 10:
  82. set {_r} to {_num}
  83. loop 1- - {_num} times:
  84. add 1 to {_r}
  85. send "&b%{_r}%. &7brak"
  86. send "&7[&bx&7]&7&M----------------------------------------&7[&bx&7]"
  87.  
  88. command /loc <integer>:
  89. trigger:
  90. if arg 1 is 1:
  91. set {topkill.1} to location of player
  92. send "&aUstawiono"
  93. if arg 1 is 2:
  94. set {topkill.2} to location of player
  95. send "&aUstawiono"
  96. if arg 1 is 3:
  97. set {topkill.3} to location of player
  98. send "&aUstawiono"
  99. if arg 1 is 4:
  100. set {topkill.4} to location of player
  101. send "&aUstawiono"
  102. if arg 1 is 5:
  103. set {topkill.5} to location of player
  104. send "&aUstawiono"
  105. if arg 1 is 6:
  106. set {topkill.6} to location of player
  107. send "&aUstawiono"
  108. if arg 1 is 7:
  109. set {topkill.7} to location of player
  110. send "&aUstawiono"
  111. if arg 1 is 8:
  112. set {topkill.8} to location of player
  113. send "&aUstawiono"
  114. if arg 1 is 9:
  115. set {topkill.9} to location of player
  116. send "&aUstawiono"
  117. if arg 1 is 10:
  118. set {topkill.10} to location of player
  119. send "&aUstawiono"
  120. if arg 1 is 11:
  121. set {topkill.11} to location of player
  122. send "&aUstawiono"
  123. if arg 1 is 12:
  124. set {topkill.12} to location of player
  125. send "&aUstawiono"
  126. if arg 1 is 13:
  127. set {topkill.13} to location of player
  128. send "&aUstawiono"
  129. if arg 1 is 14:
  130. set {topkill.14} to location of player
  131. send "&aUstawiono"
  132. if arg 1 is 15:
  133. set {topkill.15} to location of player
  134. send "&aUstawiono"
  135. if arg 1 is 16:
  136. set {topkill.16} to location of player
  137. send "&aUstawiono"
  138. if arg 1 is 17:
  139. set {topkill.17} to location of player
  140. send "&aUstawiono"
  141. if arg 1 is 18:
  142. set {topkill.18} to location of player
  143. send "&aUstawiono"
  144. if arg 1 is 19:
  145. set {topkill.19} to location of player
  146. send "&aUstawiono"
  147. if arg 1 is 20:
  148. set {topkill.20} to location of player
  149. send "&aUstawiono"
  150.  
  151. every 1 seconds:
  152. set line 1 of the block at {topkill.1} to "&4%{topelo1}%"
  153. set line 2 of the block at {topkill.1} to "Kille: &4%{topelopunkty1}%"
  154.  
  155. set line 1 of the block at {topkill.2} to "&4%{topelo2}%"
  156. set line 2 of the block at {topkill.2} to "Kille: &4%{topelopunkty2}%"
  157.  
  158. set line 1 of the block at {topkill.3} to "&4%{topelo3}%"
  159. set line 2 of the block at {topkill.3} to "Kille: &4%{topelopunkty3}%"
  160.  
  161. set line 1 of the block at {topkill.4} to "&4%{topelo4}%"
  162. set line 2 of the block at {topkill.4} to "Kille: &4%{topelopunkty4}%"
  163.  
  164. set line 1 of the block at {topkill.5} to "&4%{topelo5}%"
  165. set line 2 of the block at {topkill.5} to "Kille: &4%{topelopunkty5}%"
  166.  
  167. set line 1 of the block at {topkill.6} to "&4%{topelo6}%"
  168. set line 2 of the block at {topkill.6} to "Kille: &4%{topelopunkty6}%"
  169.  
  170. set line 1 of the block at {topkill.7} to "&4%{topelo7}%"
  171. set line 2 of the block at {topkill.7} to "Kille: &4%{topelopunkty7}%"
  172.  
  173. set line 1 of the block at {topkill.8} to "&4%{topelo8}%"
  174. set line 2 of the block at {topkill.8} to "Kille: &4%{topelopunkty8}%"
  175.  
  176. set line 1 of the block at {topkill.9} to "&4%{topelo9}%"
  177. set line 2 of the block at {topkill.9} to "Kille: &4%{topelopunkty9}%"
  178.  
  179. set line 1 of the block at {topkill.10} to "&4%{topelo10}%"
  180. set line 2 of the block at {topkill.10} to "Kille: &4%{topelopunkty10}%"
  181.  
  182. set line 1 of the block at {topkill.11} to "&4%{topelo11}%"
  183. set line 2 of the block at {topkill.11} to "Kille: &4%{topelopunkty11}%"
  184.  
  185. set line 1 of the block at {topkill.12} to "&4%{topelo12}%"
  186. set line 2 of the block at {topkill.12} to "Kille: &4%{topelopunkty12}%"
  187.  
  188. set line 1 of the block at {topkill.13} to "&4%{topelo13}%"
  189. set line 2 of the block at {topkill.13} to "Kille: &4%{topelopunkty13}%"
  190.  
  191. set line 1 of the block at {topkill.14} to "&4%{topelo14}%"
  192. set line 2 of the block at {topkill.14} to "Kille: &4%{topelopunkty14}%"
  193.  
  194. set line 1 of the block at {topkill.15} to "&4%{topelo15}%"
  195. set line 2 of the block at {topkill.15} to "Kille: &4%{topelopunkty15}%"
  196.  
  197. set line 1 of the block at {topkill.16} to "&4%{topelo16}%"
  198. set line 2 of the block at {topkill.16} to "Kille: &4%{topelopunkty16}%"
  199.  
  200. set line 1 of the block at {topkill.17} to "&4%{topelo17}%"
  201. set line 2 of the block at {topkill.17} to "Kille: &4%{topelopunkty17}%"
  202.  
  203. set line 1 of the block at {topkill.18} to "&4%{topelo18}%"
  204. set line 2 of the block at {topkill.18} to "Kille: &4%{topelopunkty18}%"
  205.  
  206. set line 1 of the block at {topkill.19} to "&4%{topelo19}%"
  207. set line 2 of the block at {topkill.19} to "Kille: &4%{topelopunkty19}%"
  208.  
  209. set line 1 of the block at {topkill.20} to "&4%{topelo20}%"
  210. set line 2 of the block at {topkill.20} to "Kille: &4%{topelopunkty20}%"
  211.  
  212. command /resetstaty <integer>:
  213. permission: admin
  214. trigger:
  215. clear {topelo%argument 1%}
  216. clear {topelopunkty%argument 1%}
Advertisement
Add Comment
Please, Sign In to add comment