Guest User

iRank - skrypt na ranking by Dinekkk v0.9 + SQLite + SkPlus

a guest
May 6th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.32 KB | None | 0 0
  1. #<>-------------------------------------<>#
  2. # Autor: Dinekkk #
  3. # Wersja: v0.9[Beta] + SQLite + SkPlus #
  4. # Kanal: yt.com/user/DinekkkPlay #
  5. # Nie zezwalam na : #
  6. # Podszywanie się za autora skryptu #
  7. # Usuwania linijek 1-14 #
  8. # Zarabiania na skrypcie #
  9. # Usuwania komendy /irank #
  10. # Reklamowania go na forach #
  11. # Zezwalam na: #
  12. # Zmiane kodu wg wlasnych potrzeb #
  13. # Subskrybowanie kanału autora #
  14. #<>-------------------------------------<>#
  15.  
  16.  
  17. #<>-----------------------------------( Zmienne )-----------------------------------<>#
  18. variables:
  19. {p.%player%} = 1000
  20. {zab.%player%} = 0
  21. {sm.%player%} = 0
  22. #<>---------------------------------------------------------------------------------<>#
  23.  
  24.  
  25.  
  26.  
  27.  
  28. #<>-------------------------------( Punkty na start )-------------------------------<>#
  29. on first join:
  30. set {p.%player%} to 1000
  31. set {zab.%player%} to 0
  32. set {sm.%player%} to 0
  33. #<>---------------------------------------------------------------------------------<>#
  34.  
  35.  
  36.  
  37.  
  38.  
  39. #<>--------------------------( Punkty za zabicie gracza )---------------------------<>#
  40. on death of player:
  41. attacker is a player
  42. victim is a player
  43. set {_p} to random integer between 10 and 100
  44. add {_p} to {p.%attacker%}
  45. broadcast "&c%victim% &czostal zabity przez &c%attacker% &c(&c%{_p}%&c)"
  46. #<>---------------------------------------------------------------------------------<>#
  47.  
  48.  
  49.  
  50.  
  51.  
  52. #<>------------------------------------( Glowa )------------------------------------<>#
  53. on death of player:
  54. attacker is player
  55. victim is a player
  56. add victim's skull to attacker
  57. #<>---------------------------------------------------------------------------------<>#
  58.  
  59.  
  60.  
  61.  
  62.  
  63. #<>-------------------------( Punkty za smierc przez moba )-------------------------<>#
  64. on death of player:
  65. victim is a player
  66. 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
  67. add 1 to {sm.%victim%}
  68. set {_p} to random integer between 10 and 50
  69. remove {_p} from {p.%victim%}
  70. broadcast "&c%victim% &czginal w niewyjasnionych okolicznosciach!"
  71. #<>---------------------------------------------------------------------------------<>#
  72.  
  73.  
  74.  
  75.  
  76.  
  77. #<>-------------------------------( Punkty za smierc )------------------------------<>#
  78. on death of player:
  79. victim is a player
  80. attacker is a player
  81. add 1 to {sm.%victim%}
  82. set {_p} to random integer between 10 and 50
  83. remove {_p} from {p.%victim%}
  84. #<>---------------------------------------------------------------------------------<>#
  85.  
  86.  
  87.  
  88.  
  89. #<>-------------------------------( Komenda /ranking )------------------------------<>#
  90. command /ranking [<offlineplayer>]:
  91. trigger:
  92. argument 1 is set:
  93. send "&aRanking gracza %argument 1%: %{p.%argument 1%}% &a(k: %{zab.%argument 1%}% &ad: %{sm.%argument 1%}%&a)"
  94. else:
  95. send "&aRanking gracza %player%: %{p.%player%}% &a(k: %{zab.%player%}% &ad: %{sm.%player%}%&a)"
  96. on rightclick on player:
  97. send "&aRanking gracza %clicked player%: %{p.%clicked player%}% &a(k: %{zab.%clicked player%}% &ad: %{sm.%clicked player%}%&a)" to player
  98. #<>---------------------------------------------------------------------------------<>#
  99.  
  100.  
  101.  
  102.  
  103.  
  104. #<>-------------------------------( Komenda /resetuj )------------------------------<>#
  105. command /resetuj [<offlineplayer>]:
  106. trigger:
  107. player has permissions "irank.resetuj":
  108. if argument 1 is set:
  109. send "&2iRank > &aPomyslnie zresetowales ranking gracza %argument 1%!"
  110. set {zab.%argument 1%} to 0
  111. set {sm.%argument 1%} to 0
  112. set {p.%argument 1%} to 1000
  113. else:
  114. loop all players:
  115. send "&2iRank > &aPomyslnie zresetowales ranking wszystkich graczy!"
  116. set {zab.%loop-player%} to 0
  117. set {sm.%loop-player%} to 0
  118. set {p.%loop-player%} to 1000
  119. else:
  120. send "&cNie masz uprawnien"
  121. #<>---------------------------------------------------------------------------------<>#
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. #<>--------------------------------( Komenda /irank )-------------------------------<>#
  129. command /irank [<text>]:
  130. trigger:
  131. argument 1 is "komendy":
  132. send "&2--------------( iRank )--------------"
  133. send "&a/ranking - info o rankingu"
  134. send "&a/resetuj - resetuje punkty graczowi"
  135. send "&a/irank-reload - reload skryptu"
  136. send "&2--------------( ***** )--------------"
  137. argument 1 is not set:
  138. send "&2--------------( iRank )--------------"
  139. send "&aWersja: &2v0.8.5"
  140. send "&aAutor: &2Dinekkk"
  141. send "&aYouTube: &2youtube.com/user/DinekkkPlay"
  142. send "&aKomendy: &2/irank komendy"
  143. send "&2--------------( ***** )--------------"
  144. #<>---------------------------------------------------------------------------------<>#
  145.  
  146.  
  147.  
  148.  
  149.  
  150. #<>----------------------------( Komenda /irank-reload )----------------------------<>#
  151. command /irank-reload:
  152. trigger:
  153. execute console command "skript reload iRank"
  154. send "&2iRank > &aReload skryptu zostal przeprowadzony pomyslnie!"
  155. #<>---------------------------------------------------------------------------------<>#
  156.  
  157.  
  158.  
  159.  
  160.  
  161. #<>----------------------------------( Anty-Relog )---------------------------------<>#
  162. on quit:
  163. {in.combat.%player%} is true:
  164. kill player
  165. broadcast "&c%player% wylogowal sie podczas walki!"
  166. delete {in.combat.%player%}
  167. delete {seconds.until.out.%player%}
  168.  
  169. on damage:
  170. victim is player
  171. attacker is player
  172. if {in.combat.%victim%} is true:
  173. set {seconds.until.out.%victim%} to 10
  174. stop
  175. send "&cJestes podczas walki! Nie wylogowywuj sie!" to victim
  176. set {in.combat.%victim%} to true
  177. set {seconds.until.out.%victim%} to 10
  178. while {seconds.until.out.%victim%} is more than 1:
  179. {seconds.until.out.%victim%} is not set:
  180. stop
  181. subtract 1 from {seconds.until.out.%victim%}
  182. wait 1 second
  183. delete {in.combat.%victim%}
  184. delete {seconds.until.out.%victim%}
  185. send "&cMozesz sie bezpiecznie wylogowac." to victim
  186.  
  187. on death:
  188. delete {walka.%victim%}
  189. delete {czas.%victim%}
  190.  
  191. on damage:
  192. victim is player
  193. attacker is player
  194. if {walka.%attacker%} is true:
  195. set {czas.%attacker%} to 10
  196. stop
  197. send "&cJestes podczas walki! Nie wylogowywuj sie!" to attacker
  198. set {walka.%attacker%} to true
  199. set {czas.%attacker%} to 10
  200. while {czas.%attacker%} is more than 1:
  201. {czas.%attacker%} is not set:
  202. stop
  203. subtract 1 from {czas.%attacker%}
  204. wait 1 second
  205. delete {walka.%attacker%}
  206. delete {czas.%attacker%}
  207. send "&cMozesz sie bezpiecznie wylogowac." to attacker
  208.  
  209. on join:
  210. {walka.%player%} is set:
  211. delete {walka.%player%}
  212. {czas.%player%} is set:
  213. delete {czas.%player%}
  214.  
  215. on death of player:
  216. victim is a player
  217. attacker is a player
  218. add 1 to {zab.%attacker%}
  219. add 1 to {sm.%victim%}
  220. #<>---------------------------------------------------------------------------------<>#
  221.  
  222.  
  223.  
  224.  
  225. #<>------------------------------( Tablica Wynikow )--------------------------------<>#
  226. every 200 ticks:
  227. loop all players:
  228. display board named "&8.:: &4Ranking &8::." to loop-player
  229. make score "&7Punkty:" in board of loop-player to {p.%loop-player%}
  230. make score "&7Zabojstwa:" in board of loop-player to {zab.%loop-player%}
  231. make score "&7Smierci:" in board of loop-player to {sm.%loop-player%}
  232. move display of loop-player to "sidebar"
Advertisement
Add Comment
Please, Sign In to add comment