FlupMC

Untitled

Jul 21st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.85 KB | None | 0 0
  1. on join:
  2. if {kills::%uuid of player%} is not set:
  3. set {kills::%uuid of player%} to 0
  4. set {deaths::%uuid of player%} to 0
  5. set {level::%uuid of player%} to 1
  6. set {tstreak::%uuid of player%} to 0
  7. set {nstreak::%uuid of player%} to 0
  8. set {uuid::%player%} to uuid of player
  9. set {sb.kills::%player%} to {kills::%uuid of player%}
  10. set {sb.deaths::%player%} to {deaths::%uuid of player%}
  11. on respawn:
  12. wait 3 ticks
  13. if {autoarmor.%player%} is true:
  14. if {level::%uuid of player%} is 1:
  15. set helmet of player to iron helmet
  16. set chestplate of player to iron chestplate
  17. set leggings of player to iron leggings
  18. set boots of player to iron boots
  19. set slot 0 of player to iron sword
  20. set slot 1 of player to fishing rod
  21. set slot 2 of player to bow
  22. set slot 3 of player to 16 steak
  23. set slot 8 of player to 32 arrow
  24. stop
  25. else if {level::%uuid of player%} is 2:
  26. set helmet of player to iron helmet of protection 1
  27. set chestplate of player to iron chestplate
  28. set leggings of player to iron leggings
  29. set boots of player to iron boots of protection 1
  30. set slot 0 of player to iron sword
  31. set slot 1 of player to fishing rod of unbreaking 1
  32. set slot 2 of player to bow
  33. set slot 3 of player to 32 steak
  34. set slot 8 of player to 48 arrow
  35. stop
  36. else if {level::%uuid of player%} is 3:
  37. set helmet of player to iron helmet of protection 1
  38. set chestplate of player to diamond chestplate
  39. set leggings of player to diamond leggings
  40. set boots of player to iron boots of protection 1
  41. set slot 0 of player to diamond sword
  42. set slot 1 of player to fishing rod of unbreaking 1
  43. set slot 2 of player to bow
  44. set slot 3 of player to 48 steak
  45. set slot 8 of player to 64 arrow
  46. stop
  47. else if {level::%uuid of player%} is 4:
  48. set helmet of player to diamond helmet
  49. set chestplate of player to diamond chestplate
  50. set leggings of player to diamond leggings
  51. set boots of player to diamond boots
  52. set slot 0 of player to diamond sword
  53. set slot 1 of player to fishing rod of unbreaking 1
  54. set slot 2 of player to bow of power 1
  55. set slot 3 of player to 64 steak
  56. set slot 8 of player to 64 arrow
  57. stop
  58. else if {level::%uuid of player%} is 5:
  59. set helmet of player to diamond helmet
  60. set chestplate of player to diamond chestplate
  61. set leggings of player to diamond leggings
  62. set boots of player to diamond boots
  63. set slot 0 of player to diamond sword of sharpness 1
  64. set slot 1 of player to fishing rod of unbreaking 1
  65. set slot 2 of player to bow of power 1
  66. set slot 3 of player to 64 steak
  67. set slot 8 of player to 64 arrow
  68. stop
  69. else:
  70. send "&8[&4&lKIT&8] &cDer skete en fejl med dit level, kontakt en staff."
  71. command /stats [<offline player>]:
  72. trigger:
  73. if arg-1 is not set:
  74. send "&8&m-------------------"
  75. send ""
  76. send "&2%player% &8»"
  77. send "&8 - &2Kills &8» &a%{kills::%uuid of player%}%"
  78. send "&8 - &2Deaths &8» &a%{deaths::%uuid of player%}%"
  79. send "&8 - &2Nuværrende Streak &8» &a%{nstreak::%uuid of player%}%"
  80. send "&8 - &2Top Streak &8» &a%{tstreak::%uuid of player%}%"
  81. send ""
  82. send "&8&m-------------------"
  83. stop
  84. send "&8&m-------------------"
  85. send ""
  86. send "&2%arg-1% &8»"
  87. send "&8 - &2Kills &8» &a%{kills::%{uuid::%arg-1%}%}%"
  88. send "&8 - &2Deaths &8» &a%{deaths::%{uuid::%arg-1%}%}%"
  89. send "&8 - &2Nuværrende Streak &8» &a%{nstreak::%{uuid::%arg-1%}%}%"
  90. send "&8 - &2Top Streak &8» &a%{tstreak::%{uuid::%arg-1%}%}%"
  91. send ""
  92. send "&8&m-------------------"
  93. on death of player:
  94. set {nstreak::%uuid of victim%} to 0
  95. add 1 to {nstreak::%uuid of attacker%}
  96. if {nstreak::%uuid of attacker%} is greater or equal to {tstreak::%uuid of attacker%}:
  97. set {tstreak::%uuid of attacker%} to {nstreak::%uuid of attacker%}
  98. on death:
  99. add 1 to {kills::%uuid of attacker%}
  100. add 1 to {deaths::%uuid of victim%}
  101. set {sb.kills::%attacker%} to {kills::%uuid of attacker%}
  102. set {sb.deaths::%victim%} to {deaths::%uuid of victim%}
  103. set {kills::<none>} to 0
  104. wait 3 ticks
  105. force respawn victim
  106. if {kills::%uuid of attacker%} is between 100 and 249:
  107. set {level::%uuid of attacker%} to 2
  108. execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &22"
  109. else if {kills::%uuid of attacker%} is between 250 and 599:
  110. set {level::%uuid of attacker%} to 3
  111. execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &23"
  112. else if {kills::%uuid of attacker%} is between 600 and 849:
  113. set {level::%uuid of attacker%} to 4
  114. execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &24"
  115. else if {kills::%uuid of attacker%} is greater or equal to 850:
  116. set {level::%uuid of attacker%} to 5
  117. execute console command "tm msg %attacker% &a&lLEVEL<nl>&aDu er kommet i level &25"
  118.  
  119. command /kit [<text>]:
  120. trigger:
  121. wait 3 ticks
  122. if arg-1 is not set:
  123. open chest with 3 rows named "&2&lKITS" to player
  124. if "%inventory name of player's current inventory%" is "&2&lKITS":
  125. wait 3 ticks
  126. loop integers from 0 to 26:
  127. format slot loop-number of player with light green stained glass pane named " " to be unstealable
  128. if {autoarmor.%player%} is true:
  129. format slot 4 of player with 323 named "&2&lINFO&8:" with lore "&2Auto Kit &8» &aJa||&7&oKlik for at ændre." to run [ make player execute command "kit config"]
  130. else:
  131. format slot 4 of player with 323 named "&2&lINFO&8:" with lore "&2Auto Kit &8» &4Nej||&7&oKlik for at ændre." to run [ make player execute command "kit config"]
  132. format slot 11 of player with stone sword named "&2&lKIT PVP" with lore "&aKlik for at tage kit &2PVP||&aLevel &8» &2%{level::%uuid of player%}%" to close then run [ make player execute command "kit pvp"]
  133. if player has permission "rank.vip":
  134. format slot 15 of player with iron sword named "&2&lKIT VIP" with lore "&aKlik for at tage kit &2VIP" to close then run [ make player execute command "kit vip"]
  135. else:
  136. format slot 15 of player with iron sword named "&4&lKIT VIP" with lore "&7&oKøb adgang via &c&o/buy&7&o!" to be unstealable
  137. if player has permission "rank.mvp":
  138. format slot 16 of player with diamond sword named "&2&lKIT MVP" with lore "&aKlik for at tage kit &2MVP" to close then run [ make player execute command "kit mvp"]
  139. else:
  140. format slot 16 of player with diamond sword named "&4&lKIT MVP" with lore "&7&oKøb adgang via &c&o/buy&7&o!" to be unstealable
  141. else if arg-1 is "config":
  142. open chest with 1 row named "&2&lKITS" to player
  143. if "%inventory name of player's current inventory%" is "&2&lKITS":
  144. wait 3 ticks
  145. if {autoarmor.%player%} is true:
  146. format slot 4 of player with 160:5 named "&2&lAKTIVERET!" with lore "&aKlik for at deaktivere." to close then run [ make player execute command "kit auto"]
  147. else:
  148. format slot 4 of player with 160:14 named "&2&lDEAKTIVERET!" with lore "&aKlik for at aktivere." to close then run [ make player execute command "kit auto"]
  149. else if arg-1 is "auto":
  150. if {autoarmor.%player%} is true:
  151. delete {autoarmor.%player%}
  152. execute player command "kit config"
  153. else:
  154. set {autoarmor.%player%} to true
  155. execute player command "kit config"
  156. else if arg-1 is "vip":
  157. if player has permission "rank.vip":
  158. set {_waited} to difference between {kits.vip.%uuid of player%} and now
  159. if {_waited} is less than 10 hours:
  160. set {_besked} to "%difference between 10 hours and {_waited}%"
  161. replace all "hours" with "timer" in {_besked}
  162. replace all "hour" with "time" in {_besked}
  163. replace all "minutes" with "minutter" in {_besked}
  164. replace all "minute" with "minut" in {_besked}
  165. replace all "and" with "og" in {_besked}
  166. replace all "seconds" with "sekunder" in {_besked}
  167. replace all "second" with "sekund" in {_besked}
  168. send "&8[&2&lKITS&8] &aDu kan først tage kit &2VIP&a om %{_besked}%"
  169. stop
  170. set {kits.vip.%uuid of player%} to now
  171. give player diamond sword of sharpness 2 and unbreaking 3
  172. give player fishing rod of unbreaking 3
  173. give player bow of power 2 and unbreaking 3
  174. give player 16 steak
  175. give player 32 arrow
  176. give player diamond helmet of protection 1 and unbreaking 3
  177. give player iron chestplate of protection 2 and unbreaking 3
  178. give player iron leggings of protection 2 and unbreaking 3
  179. give player diamond boots of protection 1 and unbreaking 3
  180. send "&8[&2&lKITS&8] &aDu tog kittet &2VIP"
  181.  
  182. else if arg-1 is "mvp":
  183. if player has permission "rank.mvp":
  184. set {_waited} to difference between {kits.mvp.%uuid of player%} and now
  185. if {_waited} is less than 10 hours:
  186. set {_besked} to "%difference between 10 hours and {_waited}%"
  187. replace all "hours" with "timer" in {_besked}
  188. replace all "hour" with "time" in {_besked}
  189. replace all "minutes" with "minutter" in {_besked}
  190. replace all "minute" with "minut" in {_besked}
  191. replace all "and" with "og" in {_besked}
  192. replace all "seconds" with "sekunder" in {_besked}
  193. replace all "second" with "sekund" in {_besked}
  194. send "&8[&2&lKITS&8] &aDu kan først tage kit &2MVP&a om %{_besked}%"
  195. stop
  196. set {kits.mvp.%uuid of player%} to now
  197. give player diamond sword of sharpness 2 and fire aspect 1 and unbreaking 3
  198. give player fishing rod of unbreaking 3
  199. give player bow of power 2 and flame 1 and unbreaking 3
  200. give player 16 steak
  201. give player 32 arrow
  202. give player iron helmet of protection 3 and unbreaking 3
  203. give player diamond chestplate of protection 2 and unbreaking 3
  204. give player diamond leggings of protection 2 and unbreaking 3
  205. give player iron boots of protection 3 and unbreaking 3
  206. send "&8[&2&lKITS&8] &aDu tog kittet &2MVP"
  207.  
  208. else if arg-1 is "pvp" or "spiller":
  209. set {_waited} to difference between {kits.pvp.%uuid of player%} and now
  210. if {_waited} is less than 10 seconds:
  211. set {_besked} to "%difference between 10 seconds and {_waited}%"
  212. replace all "hours" with "timer" in {_besked}
  213. replace all "hour" with "time" in {_besked}
  214. replace all "minutes" with "minutter" in {_besked}
  215. replace all "minute" with "minut" in {_besked}
  216. replace all "and" with "og" in {_besked}
  217. replace all "seconds" with "sekunder" in {_besked}
  218. replace all "second" with "sekund" in {_besked}
  219. send "&8[&2&lKITS&8] &aDu kan først tage kit &2PVP&a om %{_besked}%"
  220. stop
  221. if {level::%uuid of player%} is 1:
  222. set {kits.pvp.%uuid of player%} to now
  223. give player iron sword
  224. give player fishing rod
  225. give player bow
  226. give player 16 steak
  227. give player 32 arrow
  228. give player iron helmet
  229. give player iron chestplate
  230. give player iron leggings
  231. give player iron boots
  232. send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &21&a!"
  233. stop
  234. else if {level::%uuid of player%} is 2:
  235. set {kits.pvp.%uuid of player%} to now
  236. give player iron sword
  237. give player fishing rod of unbreaking 1
  238. give player bow
  239. give player 32 steak
  240. give player 48 arrow
  241. give player iron helmet of protection 1
  242. give player iron chestplate
  243. give player iron leggings
  244. give player iron boots of protection 1
  245. send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &22&a!"
  246. stop
  247. else if {level::%uuid of player%} is 3:
  248. set {kits.pvp.%uuid of player%} to now
  249. give player diamond sword
  250. give player fishing rod of unbreaking 1
  251. give player bow
  252. give player 48 steak
  253. give player 64 arrow
  254. give player iron helmet of protection 1
  255. give player diamond chestplate
  256. give player diamond leggings
  257. give player iron boots of protection 1
  258. send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &23&a!"
  259. stop
  260. else if {level::%uuid of player%} is 4:
  261. set {kits.pvp.%uuid of player%} to now
  262. give player diamond sword
  263. give player fishing rod of unbreaking 1
  264. give player bow of power 1
  265. give player 64 steak
  266. give player 64 arrow
  267. give player diamond helmet
  268. give player diamond chestplate
  269. give player diamond leggings
  270. give player diamond boots
  271. send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &24&a!"
  272. stop
  273. else if {level::%uuid of player%} is 5:
  274. set {kits.pvp.%uuid of player%} to now
  275. give player diamond sword of sharpness 1
  276. give player fishing rod of unbreaking 1
  277. give player bow of power 1
  278. give player 64 steak
  279. give player 64 arrow
  280. give player diamond helmet
  281. give player diamond chestplate
  282. give player diamond leggings
  283. give player diamond boots
  284. send "&8[&2&lKITS&8] &aDu tog kittet &2PVP&a i level &25&a!"
  285. stop
  286. command /level:
  287. trigger:
  288. open chest with 2 rows named "&2&lLEVELS" to player
  289. if "%inventory name of player's current inventory%" is "&2&lLEVELS":
  290. wait 3 ticks
  291. loop integers from 0 to 16:
  292. format slot loop-number of player with light green stained glass pane named "&r" to be unstealable
  293. format slot 4 of player with 323 named "&2&lLEVEL&8:" with lore "&2Level 1&8: &aStarter Level||&2Level 2&8: &a100 Kills||&2Level 3&8: &a250 Kills||&2Level 4&8: &a600 Kills||&2Level 5&8: &a850 Kills" to be unstealable
  294. format slot 9 of player with wooden sword named "&2&lLEVEL 1" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod|| &8- &aBow|| &8- &a16x Steaks|| &8- &aIron Helmet|| &8- &aIron Chestplate|| &8- &aIron Leggings|| &8- &aIron Boots|| &8- &a32x Arrows" to be unstealable
  295. format slot 11 of player with stone sword named "&2&lLEVEL 2" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow|| &8- &a32x Steaks|| &8- &aIron Helmet &8[&2Protection I&8]|| &8- &aIron Chestplate|| &8- &aIron Leggings|| &8- &aIron Boots &8[&2Protection I&8]|| &8- &a48x Arrows" to be unstealable
  296. format slot 13 of player with golden sword named "&2&lLEVEL 3" with lore "&aKit Indeholder&8:|| || &8- &aIron Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow|| &8- &a48x Steaks|| &8- &aIron Helmet &8[&2Protection I&8]|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aIron Boots &8[&2Protection I&8]|| &8- &a64x Arrows" to be unstealable
  297. format slot 15 of player with iron sword named "&2&lLEVEL 4" with lore "&aKit Indeholder&8:|| || &8- &aDiamond Sword|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow &8[&2Power I&8]|| &8- &a64x Steaks|| &8- &aDiamond Helmet|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aDiamond Boots|| &8- &a64x Arrows" to be unstealable
  298. format slot 17 of player with diamond sword named "&2&lLEVEL 5" with lore "&aKit Indeholder&8:|| || &8- &aDiamond Sword &8[&2Sharpness I&8]|| &8- &aFishing Rod &8[&2Unbreaking I&8]|| &8- &aBow &8[&2Power I&8]|| &8- &a64x Steaks|| &8- &aDiamond Helmet|| &8- &aDiamond Chestplate|| &8- &aDiamond Leggings|| &8- &aDiamond Boots|| &8- &a64x Arrows" to be unstealable
Add Comment
Please, Sign In to add comment