Guest User

MicroBattle v.0.1 - boleknowak

a guest
Oct 25th, 2014
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.10 KB | None | 0 0
  1. on load:
  2. send "Minigra MicroBattle zostala pomyslnie wlaczona!" to console
  3. on unload:
  4. send "Minigra MicroBattle zostala wylaczona! :C" to console
  5. options:
  6. tag: &8[&eMicroBattle&8]
  7. arena.region: microbattle-arena
  8. czas: 30
  9. item: gold nugget
  10. name: &9Start gry za:&2
  11. command /mb [<text>] [<text>] [<text>]:
  12. description: Glowne komendy MicroBattle
  13. aliases: microbattle
  14. trigger:
  15. if arg 1 is not set:
  16. send "&2&m-----------------------------------------------"
  17. send "&b MicroBattle"
  18. send "&7- &e/mb create [arena_name] &7- Tworzy arene"
  19. send "&7- &e/mb delete [arena_name] &7- Usuwa arene"
  20. send "&7- &e/mb setmainlobby &7- Ustawia lobby glowne"
  21. send "&7- &e/mb setlobby [arena_name] &7- Ustawia lobby areny"
  22. send "&7- &e/mb setspawn [arena_name] [team] &7- Ustawia spawn druzyn"
  23. send "&7- &e/mb join [arena_name] &7- Dolacza do areny"
  24. send "&7- &e/mb leave &7- Wychodzi z areny"
  25. send "&7- &e/mb stats &7- Statystyki"
  26. send "&7- &e/mb reload &7- Przeladowanie skryptu"
  27. send "&b by boleknowak"
  28. send "&2&m-----------------------------------------------"
  29. if arg 1 is "reload" or "rl":
  30. send "{@tag} &7Przeladowano! :)"
  31. execute player command "sk reload %script%"
  32. if arg 1 is "create":
  33. if arg 2 is set:
  34. if {microbattle.arena.%arg 2%} is true:
  35. send "{@tag} &cTaka arena juz istnieje!"
  36. else:
  37. send "{@tag} &aArena &3%arg 2% &azostala pomyslnie stworzona!"
  38. set {microbattle.arena.%arg 2%} to true
  39. send "{@tag} &2Ustaw teraz: &bglowne lobby (&c/mb setmainlobby&b), lobby areny (&c/mb setlobby [arena_name]&b), spawny druzyn (&csetspawn [arena_name] [team]&b)"
  40. else:
  41. send "{@tag} &cPodaj nazwe areny!"
  42. if arg 1 is "delete":
  43. if arg 2 is set:
  44. if {microbattle.arena.%arg 2%} is true:
  45. set {microbattle.arena.%arg 2%} to false
  46. send "{@tag} &aUsuneles arene &c%arg 2%&a!"
  47. delete {microbattle.spawn.%arg 2%.team.red}
  48. delete {microbattle.spawn.%arg 2%.team.blue}
  49. delete {microbattle.spawn.%arg 2%.team.yellow}
  50. delete {microbattle.spawn.%arg 2%.team.green}
  51. delete {microbattle.lobby.%arg 2%}
  52. else:
  53. send "{@tag} &cPodaj nazwe areny!"
  54. if arg 1 is "setmainlobby":
  55. send "{@tag} &aUstawiles glowne lobby dla gry &eMicroBattle&a!"
  56. set {microbattle.main.lobby} to location of player
  57. if arg 1 is "setlobby":
  58. if arg 2 is set:
  59. if {microbattle.arena.%arg 2%} is true:
  60. send "{@tag} &aUstawiles lobby dla areny &6%arg 2%"
  61. set {microbattle.arena.%arg 2%.lobby} to location of player
  62. else:
  63. send "{@tag} &cNie ma takiej areny!"
  64. else:
  65. send "{@tag} &cPodaj nazwe areny!"
  66. if arg 1 is "setspawn":
  67. if arg 2 is set:
  68. if {microbattle.arena.%arg 2%} is true:
  69. if arg 3 is "blue":
  70. set {microbattle.spawn.%arg 2%.team.blue} to location of player
  71. send "{@tag} &cUstawiles spawn dla druzyny &1BLUE"
  72. if arg 3 is "red":
  73. set {microbattle.spawn.%arg 2%.team.red} to location of player
  74. send "{@tag} &cUstawiles spawn dla druzyny &4RED"
  75. if arg 3 is "yellow":
  76. set {microbattle.spawn.%arg 2%.team.yellow} to location of player
  77. send "{@tag} &cUstawiles spawn dla druzyny &eYELLOW"
  78. if arg 3 is "green":
  79. set {microbattle.spawn.%arg 2%.team.green} to location of player
  80. send "{@tag} &cUstawiles spawn dla druzyny &2GREEN"
  81. if arg 3 is not set:
  82. send "{@tag} &cPodaj team! (&6blue | red | yellow | green&c)"
  83. if arg 1 is "join":
  84. if arg 2 is set:
  85. if {microbattle.arena.%arg 2%} is true:
  86. if {microbattle.full.%arg 2%} is greater than 11:
  87. send "{@tag} &cNie mozesz dolaczyc bo jest arena pelna!"
  88. else:
  89. send "{@tag} &aDolaczyles do areny!"
  90. send "%arg 2%"
  91. send "{@tag} &9Teraz dolacz do druzyny!"
  92. send "{@tag} &3Team'y: &1BLUE&3, &2GREEN&3, &eYELLOW&3, &4RED"
  93. send "{@tag} &9Wybierz klase!"
  94. set {_} to "{@tag} &3Klasy: &7tank&3, &7worker&3, &7archer"
  95. replace all "<none>" with "NIE ZAKUPIONE" in {_}
  96. replace all "true" with "ZAKUPIONE" in {_}
  97. send "%{_}%"
  98. teleport player to {microbattle.arena.%arg 2%.lobby}
  99. set {microbattle.state.%player%} to true
  100. add 1 to {microbattle.full.%arg 2%}
  101. give nether star named "&6Sklep" to player
  102. if {microbattle.odlicz.%arg 2%} is greater than 10:
  103. execute player command "mb start %arg 2%"
  104. if arg 1 is "team":
  105. if arg 2 is "blue":
  106. if {microbattle.team.blue} is greater than 2:
  107. send "{@tag} &cNie mozesz do tego teamu wejsc! (3/3)"
  108. else:
  109. add 1 to {microbattle.team.blue}
  110. set {microbattle.team.%player%.blue} to true
  111. set {microbattle.team.%player%.red} to false
  112. set {microbattle.team.%player%.green} to false
  113. set {microbattle.team.%player%.yellow} to false
  114. add player to {microbattle.arena.players::*}
  115. add player to {microbattle.arena.team.blue.players::*}
  116. send "{@tag} &aWybrales team &1BLUE"
  117. if arg 2 is "red":
  118. if {microbattle.team.red} is greater than 2:
  119. send "{@tag} &cNie mozesz do tego teamu wejsc! (3/3)"
  120. else:
  121. add 1 to {microbattle.team.red}
  122. set {microbattle.team.%player%.blue} to false
  123. set {microbattle.team.%player%.red} to true
  124. set {microbattle.team.%player%.green} to false
  125. set {microbattle.team.%player%.yellow} to false
  126. add player to {microbattle.arena.players::*}
  127. add player to {microbattle.arena.team.red.players::*}
  128. send "{@tag} &aWybrales team &4RED"
  129. if arg 2 is "green":
  130. if {microbattle.team.green} is greater than 2:
  131. send "{@tag} &cNie mozesz do tego teamu wejsc! (3/3)"
  132. else:
  133. add 1 to {microbattle.team.green}
  134. set {microbattle.team.%player%.blue} to false
  135. set {microbattle.team.%player%.red} to false
  136. set {microbattle.team.%player%.green} to true
  137. set {microbattle.team.%player%.yellow} to false
  138. add player to {microbattle.arena.players::*}
  139. add player to {microbattle.arena.team.green.players::*}
  140. send "{@tag} &aWybrales team &2GREEN"
  141. if arg 2 is "yellow":
  142. if {microbattle.team.yellow} is greater than 2:
  143. send "{@tag} &cNie mozesz do tego teamu wejsc! (3/3)"
  144. else:
  145. add 1 to {microbattle.team.yellow}
  146. set {microbattle.team.%player%.blue} to false
  147. set {microbattle.team.%player%.red} to false
  148. set {microbattle.team.%player%.green} to false
  149. set {microbattle.team.%player%.yellow} to true
  150. add player to {microbattle.arena.players::*}
  151. add player to {microbattle.arena.team.yellow.players::*}
  152. send "{@tag} &aWybrales team &eYELLOW"
  153. if arg 2 is not set:
  154. send "{@tag} &cWybierz team! /mb team <blue | red | yellow | green>"
  155. if arg 1 is "kit":
  156. if arg 2 is "tank":
  157. remove bow from player
  158. remove 128 arrow from player
  159. remove stone pickaxe from player
  160. give wooden sword to player
  161. send "{@tag} &aWybrales klase &3tank"
  162. if arg 2 is "worker":
  163. if {microbattle.class.archer.state.%player%} is true:
  164. remove wooden sword from player
  165. give wooden sword to player
  166. give stone pickaxe to player
  167. send "{@tag} &aWybrales klase &3worker"
  168. else:
  169. send "{@tag} &cNie masz tej klasy zakupionej!"
  170. if arg 2 is "archer":
  171. if {microbattle.class.worker.state.%player%} is true:
  172. remove wooden sword from player
  173. give wooden sword to player
  174. give bow to player
  175. send "{@tag} &aWybrales klase &3archer"
  176. give 10 arrow to player
  177. wait 60 seconds
  178. give 20 arrow to player
  179. else:
  180. send "{@tag} &cNie masz tej klasy zakupionej!"
  181. if arg 2 is not set:
  182. send "{@tag} &aDostepne zestawy: &3tank&7, &3worker&7, &3archer"
  183. if arg 1 is "start":
  184. if arg 2 is set:
  185. if {microbattle.arena.%arg 2%} is true:
  186. set {_} to {@czas} + 1
  187. loop {@czas} + 1 times:
  188. add -1 to {_}
  189. remove {@item} from player
  190. give {@item} named "{@name} %{_}%" to player
  191. wait 1 seconds
  192. if {_} is 0:
  193. remove {@item} from player
  194. send "&aZostales przeteleportowany na arene!"
  195. teleport {microbattle.arena.team.red.players::*} to {microbattle.spawn.%arg 2%.team.red}
  196. teleport {microbattle.arena.team.blue.players::*} to {microbattle.spawn.%arg 2%.team.blue}
  197. teleport {microbattle.arena.team.green.players::*} to {microbattle.spawn.%arg 2%.team.green}
  198. teleport {microbattle.arena.team.yellow.players::*} to {microbattle.spawn.%arg 2%.team.yellow}
  199. send "{@tag} &6Za 10 sekund bedziesz mogl niszczyc, a za 20 atakowac!" to {microbattle.arena.team.blue.players::*}
  200. send "{@tag} &6Za 10 sekund bedziesz mogl niszczyc, a za 20 atakowac!" to {microbattle.arena.team.red.players::*}
  201. send "{@tag} &6Za 10 sekund bedziesz mogl niszczyc, a za 20 atakowac!" to {microbattle.arena.team.green.players::*}
  202. send "{@tag} &6Za 10 sekund bedziesz mogl niszczyc, a za 20 atakowac!" to {microbattle.arena.team.yellow.players::*}
  203. wait 5 seconds
  204. send "{@tag} &6Za 5 sekund bedziesz mogl niszczyc, a za 14 atakowac!" to {microbattle.arena.team.blue.players::*}
  205. send "{@tag} &6Za 5 sekund bedziesz mogl niszczyc, a za 14 atakowac!" to {microbattle.arena.team.red.players::*}
  206. send "{@tag} &6Za 5 sekund bedziesz mogl niszczyc, a za 14 atakowac!" to {microbattle.arena.team.green.players::*}
  207. send "{@tag} &6Za 5 sekund bedziesz mogl niszczyc, a za 14 atakowac!" to {microbattle.arena.team.yellow.players::*}
  208. wait 1 seconds
  209. send "{@tag} &6Za 4 sekund bedziesz mogl niszczyc, a za 13 atakowac!" to {microbattle.arena.team.blue.players::*}
  210. send "{@tag} &6Za 4 sekund bedziesz mogl niszczyc, a za 13 atakowac!" to {microbattle.arena.team.red.players::*}
  211. send "{@tag} &6Za 4 sekund bedziesz mogl niszczyc, a za 13 atakowac!" to {microbattle.arena.team.green.players::*}
  212. send "{@tag} &6Za 4 sekund bedziesz mogl niszczyc, a za 13 atakowac!" to {microbattle.arena.team.yellow.players::*}
  213. wait 1 seconds
  214. send "{@tag} &6Za 3 sekund bedziesz mogl niszczyc, a za 12 atakowac!" to {microbattle.arena.team.blue.players::*}
  215. send "{@tag} &6Za 3 sekund bedziesz mogl niszczyc, a za 12 atakowac!" to {microbattle.arena.team.red.players::*}
  216. send "{@tag} &6Za 3 sekund bedziesz mogl niszczyc, a za 12 atakowac!" to {microbattle.arena.team.green.players::*}
  217. send "{@tag} &6Za 3 sekund bedziesz mogl niszczyc, a za 12 atakowac!" to {microbattle.arena.team.yellow.players::*}
  218. wait 1 seconds
  219. send "{@tag} &6Za 2 sekund bedziesz mogl niszczyc, a za 11 atakowac!" to {microbattle.arena.team.blue.players::*}
  220. send "{@tag} &6Za 2 sekund bedziesz mogl niszczyc, a za 11 atakowac!" to {microbattle.arena.team.red.players::*}
  221. send "{@tag} &6Za 2 sekund bedziesz mogl niszczyc, a za 11 atakowac!" to {microbattle.arena.team.green.players::*}
  222. send "{@tag} &6Za 2 sekund bedziesz mogl niszczyc, a za 11 atakowac!" to {microbattle.arena.team.yellow.players::*}
  223. wait 1 seconds
  224. send "{@tag} &6Za 1 sekund bedziesz mogl niszczyc, a za 10 atakowac!" to {microbattle.arena.team.blue.players::*}
  225. send "{@tag} &6Za 1 sekund bedziesz mogl niszczyc, a za 10 atakowac!" to {microbattle.arena.team.red.players::*}
  226. send "{@tag} &6Za 1 sekund bedziesz mogl niszczyc, a za 10 atakowac!" to {microbattle.arena.team.green.players::*}
  227. wait 1 seconds
  228. send "{@tag} &3Ruszaj! Atakowac mozesz za 10 sekund!" to {microbattle.arena.team.yellow.players::*}
  229. send "{@tag} &3Ruszaj! Atakowac mozesz za 10 sekund!" to {microbattle.arena.team.red.players::*}
  230. send "{@tag} &3Ruszaj! Atakowac mozesz za 10 sekund!" to {microbattle.arena.team.blue.players::*}
  231. send "{@tag} &3Ruszaj! Atakowac mozesz za 10 sekund!" to {microbattle.arena.team.green.players::*}
  232. wait 10 seconds
  233. send "{@tag} &aMozesz juz atakowac!" to {microbattle.arena.team.blue.players::*}
  234. send "{@tag} &aMozesz juz atakowac!" to {microbattle.arena.team.yellow.players::*}
  235. send "{@tag} &aMozesz juz atakowac!" to {microbattle.arena.team.red.players::*}
  236. send "{@tag} &aMozesz juz atakowac!" to {microbattle.arena.team.green.players::*}
  237. set {microbattle.arena.state} to true
  238. set {microbattle.attack} to true
  239. set {microbattle.build} to true
  240. if arg 1 is "leave":
  241. if {microbattle.state.%player%} is true:
  242. send "{@tag} &cOpusciles arene!"
  243. teleport player to {microbattle.main.lobby}
  244. remove player from {microbattle.arena.team.blue.players::*}
  245. remove player from {microbattle.arena.team.red.players::*}
  246. remove player from {microbattle.arena.team.green.players::*}
  247. remove player from {microbattle.arena.team.yellow.players::*}
  248. remove wooden sword from player
  249. else:
  250. send "{@tag} &cNie ma cie na arenie!"
  251. if arg 1 is "stats":
  252. set {_1} to "%{microbattle.%player%.win}%"
  253. set {_2} to "%{microbattle.%player%.lose}%"
  254. set {_3} to "%{microbattle.%player%.rozegrane}%"
  255. set {_4} to "%{microbattle.%player%.monety}%"
  256. replace all "<none>" with "0" in {_1}
  257. replace all "<none>" with "0" in {_2}
  258. replace all "<none>" with "0" in {_3}
  259. replace all "<none>" with "0" in {_4}
  260. send "&6Wygrane: &7%{_1}%"
  261. send "&6Przegrane: &7%{_2}%"
  262. send "&6Rozegrane: &7%{_3}%"
  263. send "&6Monety: &7%{_4}%"
  264. if arg 1 is "shop":
  265. execute console command "mbshop %player% shop"
  266. command /mbshop [<player>] [<text>]:
  267. executable by: console
  268. trigger:
  269. if arg 2 is "klasy":
  270. wait 2 tick
  271. open chest with 1 rows named "&eMicroBattle - klasy &7(1/1)" to player-arg
  272. wait 2 tick
  273. set {_none} to "&c%{microbattle.class.worker.state.%player-arg%}%"
  274. set {_true} to "&c%{microbattle.class.worker.state.%player-arg%}%"
  275. replace all "<none>" with "NIE ZAKUPIONE" in {_none}
  276. replace all "true" with "ZAKUPIONE" in {_true}
  277. format slot 0 of player-arg with 1 of stone pickaxe named "&2Klasa: &7Worker" with lore "&3&lCennik:||&a||&b* &2Gracz: &7100||&b* &6VIP: &780||&b* &3Super&6VIP: &770" to run "mbshop %player-arg% worker"
  278. format slot 1 of player-arg with 1 of bow named "&2Klasa: &7Archer" with lore "&3&lCennik:||&a||&b* &2Gracz: &7100||&b* &6VIP: &780||&b* &3Super&6VIP: &770" to run "mbshop %player-arg% archer"
  279. if arg 2 is "shop":
  280. wait 2 tick
  281. open chest with 1 rows named "&eMicroBattle - sklep &7(1/1)" to player-arg
  282. wait 2 tick
  283. format slot 0 of player-arg with 1 of nether star named "&6Sklep z klasami" to run "mbshop %player-arg% klasy"
  284. if arg 2 is "worker":
  285. if {microbattle.class.worker.state.buy.%player-arg%} is true:
  286. send "{@tag} &cZakupiles juz ta klase!" to player-arg
  287. else:
  288. if player-arg has permission "microbattle.buy.worker.gracz":
  289. if {microbattle.%player-arg%.monety} is greater or equal to 100:
  290. add -100 to {microbattle.%player-arg%.monety}
  291. send "{@tag} &aZakupiles klase &3WORKER&a!" to player-arg
  292. set {microbattle.class.worker.state.%player-arg%} to true
  293. set {microbattle.class.worker.state.buy.%player-arg%} to true
  294. else:
  295. send "{@tag} &cNie stac Cie!" to player-arg
  296. else if player-arg has permission "microbattle.buy.worker.vip":
  297. if {microbattle.%player-arg%.monety} is greater or equal to 80:
  298. add -80 to {microbattle.%player-arg%.monety}
  299. send "{@tag} &aZakupiles klase &3WORKER&a!" to player-arg
  300. set {microbattle.class.worker.state.%player-arg%} to true
  301. set {microbattle.class.worker.state.buy.%player-arg%} to true
  302. else if player-arg has permission "microbattle.buy.worker.svip":
  303. if {microbattle.%player-arg%.monety} is greater or equal to 70:
  304. add -70 to {microbattle.%player-arg%.monety}
  305. send "{@tag} &aZakupiles klase &3WORKER&a!" to player-arg
  306. set {microbattle.class.worker.state.%player-arg%} to true
  307. set {microbattle.class.worker.state.buy.%player-arg%} to true
  308. else:
  309. send "{@tag} &cNie masz uprawnien do tej czynnosci!"
  310. if arg 2 is "archer":
  311. if {microbattle.class.archer.state.buy.%player-arg%} is true:
  312. send "{@tag} &cZakupiles juz ta klase!" to player-arg
  313. else:
  314. if player-arg has permission "microbattle.buy.archer.gracz":
  315. if {microbattle.%player-arg%.monety} is greater or equal to 100:
  316. add -100 to {microbattle.%player-arg%.monety}
  317. send "{@tag} &aZakupiles klase &3ARCHER&a!" to player-arg
  318. set {microbattle.class.archer.state.%player-arg%} to true
  319. set {microbattle.class.archer.state.buy.%player-arg%} to true
  320. else:
  321. send "{@tag} &cNie stac Cie!" to player-arg
  322. else if player-arg has permission "microbattle.buy.archer.vip":
  323. if {microbattle.%player-arg%.monety} is greater or equal to 80:
  324. add -80 to {microbattle.%player-arg%.monety}
  325. send "{@tag} &aZakupiles klase &3ARCHER&a!" to player-arg
  326. set {microbattle.class.archer.state.%player-arg%} to true
  327. set {microbattle.class.archer.state.buy.%player-arg%} to true
  328. else if player-arg has permission "microbattle.buy.archer.svip":
  329. if {microbattle.%player-arg%.monety} is greater or equal to 70:
  330. add -70 to {microbattle.%player-arg%.monety}
  331. send "{@tag} &aZakupiles klase &3ARCHER&a!" to player-arg
  332. set {microbattle.class.archer.state.%player-arg%} to true
  333. set {microbattle.class.archer.state.buy.%player-arg%} to true
  334. else:
  335. send "{@tag} &cNie masz uprawnien do tej czynnosci!"
  336. on death:
  337. if attacker is player:
  338. if victim is player:
  339. if {microbattle.arena.state} is true:
  340. send "{@tag} &aGracz &6%attacker% &azabil gracza &6%victim%&a!" to {microbattle.arena.players::*}
  341. send "&a+4 monety!" to attacker
  342. send "{@tag} &cPrzegrales, wiec zostales przeteleportowany do glownego lobby!" to victim
  343. add 1 to {microbattle.%victim%.lose}
  344. add 4 to {microbattle.%attacker%.monety}
  345. remove player from {microbattle.arena.team.blue.players::*}
  346. add -1 to {microbattle.arena.team.blue.players::*}
  347. clear drops
  348. if {microbattle.arena.team.blue.players::*} is 0:
  349. send "{@tag} &cDruzyna &1BLUE &czostala pokonana!" to {microbattle.arena.team.red.players::*}
  350. send "{@tag} &cDruzyna &1BLUE &czostala pokonana!" to {microbattle.arena.team.green.players::*}
  351. send "{@tag} &cDruzyna &1BLUE &czostala pokonana!" to {microbattle.arena.team.yellow.players::*}
  352. delete {microbattle.arena.team.blue.players::*}
  353. delete {microbattle.team.blue}
  354. else if {microbattle.arena.team.green.players::*} is 0:
  355. send "{@tag} &cDruzyna &2GREEN &czostala pokonana!" to {microbattle.arena.team.red.players::*}
  356. send "{@tag} &cDruzyna &2GREEN &czostala pokonana!" to {microbattle.arena.team.blue.players::*}
  357. send "{@tag} &cDruzyna &2GREEN &czostala pokonana!" to {microbattle.arena.team.yellow.players::*}
  358. delete {microbattle.arena.team.green.players::*}
  359. delete {microbattle.team.green}
  360. else if {microbattle.arena.team.red.players::*} is 0:
  361. send "{@tag} &cDruzyna &4RED &czostala pokonana!" to {microbattle.arena.team.blue.players::*}
  362. send "{@tag} &cDruzyna &4RED &czostala pokonana!" to {microbattle.arena.team.green.players::*}
  363. send "{@tag} &cDruzyna &4RED &czostala pokonana!" to {microbattle.arena.team.yellow.players::*}
  364. delete {microbattle.arena.team.red.players::*}
  365. delete {microbattle.team.red}
  366. else if {microbattle.arena.team.yellow.players::*} is 0:
  367. send "{@tag} &cDruzyna &eYELLOW &czostala pokonana!" to {microbattle.arena.team.red.players::*}
  368. send "{@tag} &cDruzyna &eYELLOW &czostala pokonana!" to {microbattle.arena.team.green.players::*}
  369. send "{@tag} &cDruzyna &eYELLOW &czostala pokonana!" to {microbattle.arena.team.blue.players::*}
  370. delete {microbattle.arena.team.yellow.players::*}
  371. delete {microbattle.team.yellow}
  372. else if {microbattle.team.red} and {microbattle.team.blue} and {microbattle.team.green} and {microbattle.team.yellow} is 0:
  373. execute player command "mbres"
  374. on place:
  375. if {microbattle.build} is true:
  376. stop
  377. else:
  378. send "Nie mozesz budowac!"
  379. cancel event
  380. on break:
  381. if {microbattle.build} is true:
  382. stop
  383. else:
  384. send "Nie mozesz niszczyc!"
  385. cancel event
  386. on damage:
  387. if {microbattle.attack} is true:
  388. stop
  389. else:
  390. send "Nie mozesz jeszcze bic!"
  391. cancel event
  392. every 180 seconds:
  393. if {microbattle.arena.state} is true:
  394. send "{@tag} &4Koniec gry!" to {microbattle.arena.team.red.players::*}
  395. send "{@tag} &4Koniec gry!" to {microbattle.arena.team.blue.players::*}
  396. send "{@tag} &4Koniec gry!" to {microbattle.arena.team.green.players::*}
  397. send "{@tag} &4Koniec gry!" to {microbattle.arena.team.yellow.players::*}
  398. teleport {microbattle.arena.team.red.players::*} to {microbattle.main.lobby}
  399. teleport {microbattle.arena.team.blue.players::*} to {microbattle.main.lobby}
  400. teleport {microbattle.arena.team.green.players::*} to {microbattle.main.lobby}
  401. teleport {microbattle.arena.team.yellow.players::*} to {microbattle.main.lobby}
  402. set {microbattle.arena.state} to false
  403. #delete
  404. else:
  405. stop
  406. on rightclick with nether star:
  407. if name of player's tool is "&6Sklep":
  408. execute player command "mb shop"
  409. command /mbres:
  410. trigger:
  411. delete {microbattle.team.red}
  412. delete {microbattle.team.blue}
  413. delete {microbattle.team.yellow}
  414. delete {microbattle.team.green}
  415. delete {microbattle.arena.full.%arg 2%}
  416. send "Cleared!"
Advertisement
Add Comment
Please, Sign In to add comment