BloodHead2001

TQRanks

Oct 15th, 2014
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. #Autor: Twaq
  2. #Wersja: 3.0
  3. #Kontakt skype: mateusz.michalski525
  4. #Nie kopiuj go! - Ani 1 czesci ;O
  5. variables:
  6. {walka.%player%} = false
  7. {punkty::%player%} = 0
  8. {deaths.%player%} = 0
  9. {kills.%player%} = 0
  10. options:
  11. PASEK: ANTY-LOGOUT
  12. OstatniPASEK: ANTY-LOGOUT
  13.  
  14. on damage of player:
  15. if {walka.%victim%} is false:
  16. if attacker is a player:
  17. set {walka.%victim%} to true
  18. display "{@PASEK}" on bossbar with 100 percent by 99 seconds for victim
  19. wait 1 second
  20. display "{@PASEK}" on bossbar with 95 percent by 98 seconds for victim
  21. wait 1 second
  22. display "{@PASEK}" on bossbar with 90 percent by 97 seconds for victim
  23. wait 1 second
  24. display "{@PASEK}" on bossbar with 85 percent by 96 seconds for victim
  25. wait 1 second
  26. display "{@PASEK}" on bossbar with 80 percent by 95 seconds for victim
  27. wait 1 second
  28. display "{@PASEK}" on bossbar with 75 percent by 94 seconds for victim
  29. wait 1 second
  30. display "{@PASEK}" on bossbar with 70 percent by 93 seconds for victim
  31. wait 1 second
  32. display "{@PASEK}" on bossbar with 65 percent by 92 seconds for victim
  33. wait 1 second
  34. display "{@PASEK}" on bossbar with 60 percent by 91 seconds for victim
  35. wait 1 second
  36. display "{@PASEK}" on bossbar with 55 percent by 90 seconds for victim
  37. wait 1 second
  38. display "{@PASEK}" on bossbar with 50 percent by 89 seconds for victim
  39. wait 1 second
  40. display "{@PASEK}" on bossbar with 45 percent by 88 seconds for victim
  41. wait 1 second
  42. display "{@PASEK}" on bossbar with 40 percent by 87 seconds for victim
  43. wait 1 second
  44. display "{@PASEK}" on bossbar with 35 percent by 86 seconds for victim
  45. wait 1 second
  46. display "{@PASEK}" on bossbar with 30 percent by 85 seconds for victim
  47. wait 1 second
  48. display "{@PASEK}" on bossbar with 25 percent by 84 seconds for victim
  49. wait 1 second
  50. display "{@PASEK}" on bossbar with 20 percent by 83 seconds for victim
  51. wait 1 second
  52. display "{@PASEK}" on bossbar with 15 percent by 82 seconds for victim
  53. wait 1 second
  54. display "{@PASEK}" on bossbar with 10 percent by 81 seconds for victim
  55. wait 1 second
  56. display "{@OstatniPASEK}" on bossbar with 5 percent by 80 seconds for victim
  57. wait 1 second
  58. delete {walka.%victim%}
  59. stop
  60. on respawn:
  61. set {walka.%player%} to false
  62. on join:
  63. set {walka.%player%} to false
  64. on first join:
  65. set {rank::%player%} to 1000
  66. on quit:
  67. if {walka.%player%} is true:
  68. clear the player's inventory
  69. set {walka.%player%} to false
  70. make player execute command "kill %player%"
  71. broadcast "&cGracz &6[%player%] &cWylogowal sie podczas walki!"
  72. stop
  73. command /logout [<player>]:
  74. trigger:
  75. if arg 1 is not set:
  76. if {walka::%player%} is false:
  77. send "&c> CZY MOZESZ LOGNAC: &aTAK"
  78. if {walka::%player%} is true:
  79. send "&c> CZY MOZESZ LOGNAC: &4NIE!"
  80. if arg 1 is set:
  81. if {walka::%player%} is false:
  82. send "&c> CZY &6[%arg 1%] &cMOZE LOGNAC: &aTAK"
  83. if {walka::%player%} is true:
  84. send "&c> CZY [%arg 1%] MOZE LOGNAC: &4NIE"
  85. on death:
  86. add 1 to {deaths.%victim%}
  87. if victim is player:
  88. if attacker is player:
  89. strike lightning effect at the player
  90. add 1 to {kills.%attacker%}
  91. set {_pkt} to random integer between -50 and 300
  92. add {_pkt} to {punkty::%attacker%}
  93. set death message to "&c%victim% zostal zabity przez %attacker% (%{_pkt}%)"
  94. command /ranking [<player>]:
  95. aliases: gracz
  96. trigger:
  97. if arg 1 is not set:
  98. send "&bRanking gracza %player%: &6%{punkty::%player%}%"
  99. send "&bZabicia gracza %player%: &6%{kills.%player%}%"
  100. send "&bSmierci gracza %player%: &6%{deaths.%player%}%"
  101. if arg 1 is set:
  102. send "&bRanking gracza %arg 1%: &6%{punkty::%arg 1%}%"
  103. send "&bZabicia gracza %arg 1%: &6%{kills.%arg 1%}%"
  104. send "&bSmierci gracza %arg 1%: &6%{deaths.%arg 1%}%"
  105. command /tqranks [<text>] [<player>] [<integer>]:
  106. permission message: ยง4Nie masz dostepu do tej komedy...
  107. permission: tqranks.any
  108. trigger:
  109. if arg 1 is not set:
  110. send "&9[------------- &6[TQRanks] &9-------------]"
  111. send "&3 *&c/tqranks dodaj [Gracz] [Ilosc] &7- Dodaje dany ranking dla danego gracza."
  112. send "&3 *&c/tqranks ustaw [Gracz] [Ilosc] &7- Ustawia dany ranking dla danego gracza."
  113. send "&9[------------- &6[TQRanks] &9-------------]"
  114. if arg 1 is not "dodaj" or "ustaw":
  115. send "&9[------------- &6[TQRanks] &9-------------]"
  116. send "&3 *&c/tqranks dodaj [Gracz] [Ilosc] &7- Dodaje dany ranking dla danego gracza."
  117. send "&3 *&c/tqranks ustaw [Gracz] [Ilosc] &7- Ustawia dany ranking dla danego gracza."
  118. send "&9[------------- &6[TQRanks] &9-------------]"
  119. if arg 1 is "dodaj":
  120. if arg 2 is set:
  121. if arg 3 is set:
  122. add arg 3 to {punkty::%arg 2%}
  123. send "&cDodales graczowi [%arg 2%] &6%arg 3% &cRankingu."
  124. else:
  125. send "&cPoprawne uzycie /tqranks dodaj [Gracz] [Ilosc]"
  126. else:
  127. send "&cPoprawne uzycie /tqranks dodaj [Gracz] [Ilosc]"
  128. if arg 1 is "ustaw":
  129. if arg 2 is set:
  130. if arg 3 is set:
  131. set {punkty::%arg 2%} to arg 3
  132. send "&cUstawiles graczowi [%arg 2%] &6%arg 3% &cRankingu."
  133. else:
  134. send "&cPoprawne uzycie /tqranks ustaw [Gracz] [Ilosc]"
  135. else:
  136. send "&cPoprawne uzycie /tqranks ustaw [Gracz] [Ilosc]"
Advertisement
Add Comment
Please, Sign In to add comment