FlupMC

Untitled

May 27th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.62 KB | None | 0 0
  1. Options:
  2. Bannednavne: "Fuck","Noob","Ingen","None","<none>","Staff","HeadAdmin","Nations","Mod","Moderator","Ejer","Owner","Mor","Fuc","Nigg",".",",","Lort","Server","pik","fisse","dick","dic","*","_","&","-","'","¥","+","?","=","]","[","{","}","(",")","^",":",";","O","@","£","%%","§","/" or "Admin"
  3. p: &6&lTEAM &8» &e
  4. crate: Diamond
  5. cratecaps: DIAMOND
  6. on join:
  7. if {team::%uuid of player%} is set:
  8. set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
  9. if {team::%{team::%uuid of player%}%::kills} is not set:
  10. set {team::%{team::%uuid of player%}%::kills} to 0
  11. if {team::%{team::%uuid of player%}%::death} is not set:
  12. set {team::%{team::%uuid of player%}%::death} to 0
  13. set {navn::%uuid of player%} to "%player%"
  14. set {uuid::%player%} to "%uuid of player%"
  15. command /tc [<text>]:
  16. trigger:
  17. if arg-1 is set:
  18. if {team::%uuid of player%} is set:
  19. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  20. set {_prefix} to "&8[&6Leder&8] &e"
  21. else:
  22. set {_prefix} to "&8[&eMedlem&8] &e"
  23. loop all players:
  24. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  25. message "&8&l[&6&lTeam Chat&8&l]&e %{_prefix}%%player% &8»&e %arg text%." to loop-player
  26. else:
  27. send "{@p}Du skal skrive en besked."
  28.  
  29. Command /team [<text>] [<text>] [<text>]:
  30. Trigger:
  31. If arg-1 is not set:
  32. if {team::%uuid of player%} is not set:
  33. make player execute command "/team hjælp"
  34. stop
  35. if {team::%uuid of player%} is set:
  36. make player execute command "/team start"
  37. stop
  38. If arg-1 is "hjælp":
  39. send "&8&l&m-----------------------------------------"
  40. send ""
  41. send "&6/team hjælp &8| &eViser denne guide."
  42. send "&6/team opret <navn> &8| &eFor at lave et team."
  43. send "&6/team invite <navn> &8| &eFor at invitere en til dit team."
  44. send "&6/team join &8| &eFor at joine et team."
  45. send "&6/team afvis &8| &eFor at afvise en invitation."
  46. if {team::%uuid of player%} is set:
  47. send "&6/team forlad &8| &eFor at forlade et team."
  48. send "&6/team kick <navn> &8| &eFor at smide en ud af dit team."
  49. send "&6/team info <navn> &8| &eViser stats om dit team."
  50. send "&6/team levelup &8| &eLeveler dit team op."
  51. send "&6/team shop &8| &eÅbner team shoppen."
  52. send "&6/team bank <penge> &8| &eSætter penge ind på team kontoen."
  53. send "&6/team ejer <navn> &8| &eGiv dit ejerskam til en anden."
  54. send "&6/tc &8| &eSkriv i team chatten."
  55. send "&6/tk &8| &eÅbner dit teams fæles kiste."
  56. send ""
  57. send "&8&l&m-----------------------------------------"
  58. if arg-1 is "ejer":
  59. if {team::%uuid of player%} is not set:
  60. message "{@p}Du er ikke medlem af et team!"
  61. stop
  62. if arg-2 is set:
  63. set {_arg} to {uuid::%arg-2%}
  64. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  65. if {team::%{_arg}%} is {team::%uuid of player%}:
  66. send "{@p}Du har givet ejerskabet til &6%arg-2%"
  67. set {team::%{team::%uuid of player%}%::ejer} to {_arg}
  68. set {team::%{team::%uuid of player%}%::ejernavn} to "%arg-2%"
  69. send "{@p}&6 %command sender% &ehar givet ejerskabet til &6%arg-2%" to arg 2 parsed as a player
  70. if arg-1 is "chest":
  71. if {team::%uuid of player%} is set:
  72. if {teamv1::%{team::%uuid of player%}%::chest} is not set:
  73. invoke "team.page1" from player
  74. set {teamv1::%{team::%uuid of player%}%::chest} to true
  75. else:
  76. send "{@p}&6 Der er allerede en spiller i kisten"
  77. stop
  78. if {team::%uuid of player%} is not set:
  79. message "{@p}Du er ikke medlem af et team!"
  80. stop
  81. if arg-1 is "levelup":
  82. if {team::%uuid of player%} is set:
  83. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  84. if {team::%{team::%uuid of player%}%::lvl} is 1:
  85. if {team::%{team::%uuid of player%}%::kills} is between 300 and 1000000000000000000000:
  86. set {team::%{team::%uuid of player%}%::lvl} to 2
  87. set {team::%{team::%uuid of player%}%::lvlkills} to 1000
  88. set {team::%{team::%uuid of player%}%::farve} to "&a"
  89. loop all players:
  90. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  91. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a2&e!" to loop-player
  92. execute console command "eco give %loop-player% 500"
  93. else:
  94. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&6300&8)."
  95. else if {team::%{team::%uuid of player%}%::lvl} is 2:
  96. if {team::%{team::%uuid of player%}%::kills} is between 1000 and 1000000000000000000000:
  97. set {team::%{team::%uuid of player%}%::lvl} to 3
  98. set {team::%{team::%uuid of player%}%::lvlkills} to 3000
  99. set {team::%{team::%uuid of player%}%::farve} to "&3"
  100. loop all players:
  101. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  102. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a3&e!" to loop-player
  103. execute console command "eco give %loop-player% 2000"
  104. else:
  105. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&61000&8)."
  106. else if {team::%{team::%uuid of player%}%::lvl} is 3:
  107. if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
  108. set {team::%{team::%uuid of player%}%::lvl} to 4
  109. set {team::%{team::%uuid of player%}%::lvlkills} to 10000
  110. set {team::%{team::%uuid of player%}%::farve} to "&d"
  111. loop all players:
  112. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  113. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a4&e!" to loop-player
  114. execute console command "eco give %loop-player% 2000"
  115. else:
  116. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&63000&8)."
  117. else if {team::%{team::%uuid of player%}%::lvl} is 4:
  118. if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
  119. set {team::%{team::%uuid of player%}%::lvl} to 5
  120. set {team::%{team::%uuid of player%}%::lvlkills} to "MAX"
  121. set {team::%{team::%uuid of player%}%::farve} to "&c"
  122. loop all players:
  123. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  124. message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a5&e!" to loop-player
  125. execute console command "eco give %loop-player% 2000"
  126. else:
  127. message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&610000&8)."
  128. stop
  129.  
  130. else:
  131. message "{@p}Du skal være ejeren for at levelup dit team :)"
  132. stop
  133. else:
  134. message "{@p}Du er ikke medlem af et team!"
  135. stop
  136.  
  137. If arg-1 is "opret":
  138. if {team::%uuid of player%} is set:
  139. message "{@p}Du er allerede med i team &a%{team::%uuid of player%}% &eog hvis du vil forlade teamet.. &a/team forlad"
  140. stop
  141. Else:
  142. if arg-2 is set:
  143. set {_arg2} to "%arg-2%" parsed as a text
  144. if arg 3 is set:
  145. message "{@p}Der må &4&LIKKE &evære &6mellemrum &ei team navnet."
  146. stop
  147. if length of {_arg2} is between -9999999999999 and 3:
  148. message "{@p}Dit team navn skal være længere end &63 &ebogstaver!"
  149. stop
  150. if length of {_arg2} is above 15:
  151. message "{@p}Dit team navn må &4&LIKKE være længere end &615 &ebogstaver!"
  152. stop
  153. if arg-2 contains {@Bannednavne}:
  154. message "{@p}Dit team må &4&lIKKE &ehedde &6%arg-2%"
  155. stop
  156. if arg-2 do not contain "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "ø", "æ" or "å":
  157. message "{@p}Dit team må &4&LIKKE &ehedde &6%arg-2%"
  158. stop
  159. if {team::%arg-2%} is set:
  160. message "{@p}Der er allerede et team der hedder &6%arg-2%&e."
  161. stop
  162. set {team::%uuid of player%} to "%arg-2%"
  163. set {team::%arg-2%} to "%arg-2%"
  164. set {team::%arg-2%::lvl} to 1
  165. set {team::%arg-2%::lavet} to now
  166. set {team::%arg-2%::lvlkills} to 300
  167. set {team::%arg-2%::maxmem} to 3
  168. set {team::%arg-2%::kills} to 0
  169. set {team::%arg-2%::deaths} to 0
  170. set {team::%arg-2%::bank} to 0
  171. set {team::%arg-2%::points} to 0
  172. set {team::%arg-2%::ejer} to uuid of player
  173. set {team::%arg-2%::ejernavn} to "%player%"
  174. set {team::%arg-2%::mission::1::kills} to 0
  175. set {team::%arg-2%::mission::1} to "igang"
  176. set {team::%arg-2%::mission::2} to "låst"
  177. set {team::%arg-2%::mission::3} to "låst"
  178. set {team::%arg-2%::mission::4} to "låst"
  179. set {team::%arg-2%::mission::5} to "låst"
  180. set {team::%arg-2%::mission::6} to "låst"
  181. set {team::%arg-2%::mission::7} to "låst"
  182. set {team::%arg-2%::mission::8} to "låst"
  183. set {team::%arg-2%::mission::9} to "låst"
  184. set {team::%arg-2%::farve} to "&7"
  185. set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
  186. add "%arg-2%" to {teams::*}
  187. set {navn::%uuid of player%} to "%player%"
  188. set {uuid::%player%} to "%uuid of player%"
  189. add uuid of player to {team::%{team::%uuid of player%}%::medlemmer::*}
  190. message "{@p}Du har lavet et team navngivet &6%arg-2%&e."
  191. stop
  192.  
  193.  
  194. if arg-1 is "forlad":
  195. if {team::%uuid of player%} is not set:
  196. message "{@p}Du er ikke medlem af et team!"
  197. stop
  198. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  199. message "{@p}Du har forladt teamet &6%{team::%uuid of player%}%&e, men fordi du var ejeren, så blev hele teamet slettet! "
  200. delete {team::%{team::%uuid of player%}%::lvlkills}
  201. delete {team::%{team::%uuid of player%}%::lvl}
  202. delete {team::%{team::%uuid of player%}%::kills}
  203. delete {team::%{team::%uuid of player%}%::deaths}
  204. delete {team::%{team::%uuid of player%}%::ejer}
  205. delete {team::%{team::%uuid of player%}%}
  206. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  207. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  208. delete {team::%loop-value%}
  209. delete {team::%{team::%loop-value%}%::medlemmer::*}
  210. if {team::%uuid of player%} is set:
  211. message "{@p}&6Der skete en fejl, kontakt en staff."
  212. else:
  213. loop all players:
  214. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  215. message "{@p}&6%player% &ehar forladt teamet." to loop-player
  216. remove uuid of player from {team::%{team::%uuid of player%}%::medlemmer::*}
  217. delete {team::%uuid of player%}
  218. stop
  219.  
  220. if arg 1 is "invite":
  221. if {team::%uuid of player%} is not set:
  222. message "{@p}Du er ikke medlem af et team!"
  223. stop
  224. else:
  225. set {_size} to "%size of {team::%{team::%uuid of player%}%::medlemmer::*}%"
  226. if {team::%{uuid::%arg-2%}%} is set:
  227. message "{@p}&6%arg 2% &eer allerede med i et team."
  228. stop
  229. if {team::%player%::invite} is set:
  230. message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team."
  231. stop
  232. if {_size} is greater or equal to 4:
  233. send "{@p}Du kan max have 3 medlemmer"
  234. stop
  235. set {_player} to "%arg 2%" parsed as a player
  236. set {_playeruuid} to uuid of {_player}
  237. set {_uuidplayer} to "%{_playeruuid}%" parsed as a player
  238. if {_player} is online:
  239. if {team::%{team::%uuid of player%}%::ejer} is not uuid of player:
  240. message "{@p}Du &4&LSKAl &evære &6ejeren &efor at invitere folk."
  241. stop
  242. else:
  243. if arg 2 is not set:
  244. message "{@p}Korrekt brug: &6/team inviter <navn>&e."
  245. stop
  246. else:
  247. if {team::%{_player}%::invite} is set:
  248. message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team, få %{_player}% til at afvise den anden invitation med &6/team afvis&e."
  249. stop
  250. else:
  251. if {team::%{_uuidplayer}%} is set:
  252. message "{@p}&6%{_player}% &eer allerede med i et team."
  253. stop
  254. else:
  255. set {team::%{_player}%::invite} to "%{team::%uuid of player%}%"
  256. message "{@p}Du er blevet inviteret til &6%{team::%uuid of player%}% &eskriv &6/team join &efor at joine teamet, for at afvise invitationen skriv &6/team afvis&e." to {_player}
  257. message "{@p}Du har inviteret &6%{_player}% &etil teamet."
  258. wait 30 seconds
  259. delete {team::%{_player}%::invite}
  260. stop
  261. else:
  262. message "{@p}&6%arg 2% &eer ikke online.... Han/Hun skal være online."
  263.  
  264. if arg-1 is "afvis":
  265. If {team::%player%::invite} is set:
  266. message "{@p}Du har afvist invitationen fra &6%{team::%player%::invite}%&e."
  267. loop all players:
  268. if {team::%{team::%player%::invite}%::ejer} is uuid of loop-player:
  269. message "{@p}&6%player% &ehar afvist invitationen." to loop-player
  270. delete {team::%player%::invite}
  271. stop
  272. else:
  273. message "{@p}Du er ikke blevet inviteret til et team!"
  274. stop
  275.  
  276. if arg 1 is "join":
  277. if {team::%uuid of player%} is set:
  278. message "{@p}Du er allerede med i et team!"
  279. stop
  280. else:
  281. if player's balance is between -0 and -1:
  282. send "{@p}Det koster &a$&2500&e At joine et team :)"
  283. stop
  284. loop {team::%{team::%player%::invite}%::medlemmer::*}:
  285. add 1 to {_medlemmer}
  286. if {_medlemmer} is greater or equal to {team::%{team::%player%::invite}%::maxmem}:
  287. send "&8&l[&e&lMAINTON-TEAM&8&l] &eTeamet har plads til flere."
  288. stop
  289. if {team::%player%::invite} is set:
  290. loop all players:
  291. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  292. send "{@p}&6%player% &ehar joinet teamet." to loop-player
  293. set {team::%uuid of player%} to {team::%player%::invite}
  294. add uuid of player to {team::%{team::%player%::invite}%::medlemmer::*}
  295. message "{@p}Du har joinet teamet &6%{team::%player%::invite}%&e."
  296. set {navn::%uuid of player%} to "%player%"
  297. set {uuid::%player%} to "%uuid of player%"
  298. delete {team::%player%::invite}
  299. stop
  300. else:
  301. message "{@p}Du er ikke blevet inviteret til et team ;("
  302. stop
  303. if arg 1 is "shop":
  304. if arg-2 is not set:
  305. if {team::%uuid of player%} is set:
  306. open chest with 5 rows named "&6&lTEAM SHOP" to player
  307. wait 3 ticks
  308. format slot 0 of player with light blue stained glass pane named " " to be unstealable
  309. format slot 1 of player with blue stained glass pane named " " to be unstealable
  310. format slot 2 of player with light blue stained glass pane named " " to be unstealable
  311. format slot 3 of player with blue stained glass pane named " " to be unstealable
  312. format slot 4 of player with book named "&6&lCOINS&8&l:" with lore "&6Bank&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6Points&8: &e%{team::%{team::%uuid of player%}%::bank}%" to be unstealable
  313. format slot 5 of player with blue stained glass pane named " " to be unstealable
  314. format slot 6 of player with light blue stained glass pane named " " to be unstealable
  315. format slot 7 of player with blue stained glass pane named " " to be unstealable
  316. format slot 8 of player with light blue stained glass pane named " " to be unstealable
  317.  
  318. format slot 36 of player with light blue stained glass pane named " " to be unstealable
  319. format slot 37 of player with blue stained glass pane named " " to be unstealable
  320. format slot 38 of player with light blue stained glass pane named " " to be unstealable
  321. format slot 39 of player with blue stained glass pane named " " to be unstealable
  322. format slot 40 of player with light blue stained glass pane named " " to be unstealable
  323. format slot 41 of player with blue stained glass pane named " " to be unstealable
  324. format slot 42 of player with light blue stained glass pane named " " to be unstealable
  325. format slot 43 of player with blue stained glass pane named " " to be unstealable
  326. format slot 44 of player with light blue stained glass pane named " " to be unstealable
  327. #format slot 20 of player with 160:14 named "&4&lKOMMER" to be unstealable
  328. #format slot 21 of player with 160:14 named "&4&lKOMMER" to be unstealable
  329. #format slot 22 of player with 160:14 named "&4&lKOMMER" to be unstealable
  330. #format slot 23 of player with 160:14 named "&4&lKOMMER" to be unstealable
  331. #format slot 24 of player with 160:14 named "&4&lKOMMER" to be unstealable
  332. #format slot 25 of player with 160:14 named "&4&lKOMMER" to be unstealable
  333. if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
  334. format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 2" to be unstealable
  335. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
  336. format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e2500" to close then run [ make player execute command "team shop medlem"]
  337. if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
  338. format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 4" to be unstealable
  339. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
  340. format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e7500" to close then run [ make player execute command "team shop medlem"]
  341. format slot 20 of player with golden ingot named "&a&l$1000 TIL ALLE I TEAMET" with lore "&e&oKoster &e4 points" to close then run [ make player execute command "team shop 1000"]
  342. format slot 21 of player with paper named "&a&l{@cratecaps} KEY TIL ALLE ONLINE I TEAMET" with lore "&e&oKoster &e7 points" to close then run [ make player execute command "team shop key"]
  343. if {team::%uuid of player%} is not set:
  344. message "{@p}Du er ikke medlem af et team!"
  345. if arg-2 is "1000":
  346. if {team::%uuid of player%} is not set:
  347. message "{@p}Du er ikke medlem af et team!"
  348. stop
  349. if {team::%{team::%uuid of player%}%::points} is greater or equal to 4:
  350. send "{@p}Du har købt &6$1000&e til alle i dit team."
  351. subtract 4 from {team::%{team::%uuid of player%}%::points}
  352. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  353. execute console command "eco give %loop-value% 1000"
  354. stop
  355. send "{@p}Jeres team har ikke nok points."
  356. stop
  357. if arg-2 is "key":
  358. if {team::%uuid of player%} is not set:
  359. message "{@p}Du er ikke medlem af et team!"
  360. stop
  361. if {team::%{team::%uuid of player%}%::points} is greater or equal to 7:
  362. send "{@p}Du har købt &61 {@crate} &ecrate til alle online i teamet."
  363. subtract 7 from {team::%{team::%uuid of player%}%::points}
  364. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  365. execute console command "cc give physical {@crate} 1 %loop-value%"
  366. stop
  367. send "{@p}Jeres team har ikke nok points."
  368. stop
  369. if arg-2 is "medlem":
  370. if {team::%uuid of player%} is not set:
  371. message "{@p}Du er ikke medlem af et team!"
  372. stop
  373. if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
  374. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
  375. if {team::%{team::%uuid of player%}%::bank} is greater or equal to 2500:
  376. remove 2500 from {team::%{team::%uuid of player%}%::bank}
  377. add 1 to {team::%{team::%uuid of player%}%::maxmem}
  378. loop all players:
  379. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  380. send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
  381. stop
  382. send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
  383. stop
  384. send "{@p}Jeres team er ikke i level 2+"
  385. stop
  386. if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
  387. if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
  388. if {team::%{team::%uuid of player%}%::bank} is greater or equal to 7500:
  389. remove 7500 from {team::%{team::%uuid of player%}%::bank}
  390. add 1 to {team::%{team::%uuid of player%}%::maxmem}
  391. loop all players:
  392. if {team::%uuid of player%} is {team::%uuid of loop-player%}:
  393. send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
  394. stop
  395. send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
  396. stop
  397. send "{@p}Jeres team er ikke i level 4+"
  398. stop
  399. send "{@p}Jeres team kan ikke have flere medlemmer."
  400. stop
  401. if arg 1 is "kick":
  402. if {team::%uuid of player%} is not set:
  403. message "{@p}Du er ikke medlem af et team!"
  404. else:
  405. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  406. if arg 2 is not set:
  407. message "{@p}Korrekt brug: &6/team kick <spiller>&e."
  408. stop
  409. message "{@p}Du har smidt &6%arg 2% &eud af teamet."
  410. remove {uuid::%arg 2%} from {team::%{team::%uuid of player%}%::medlemmer::*}
  411. message "{@p}Du er blevet smidt ud af teamet &6%{team::%uuid of player%}%&e." to {_player}
  412. delete {team::%{uuid::%arg-2%}%}
  413. stop
  414. else:
  415. message "{@p}Du &4&LSKAL &evære ejeren for at smide en ud af team."
  416. stop
  417. If arg 1 is "info":
  418. if arg-2 is not set:
  419. if {team::%uuid of player%} is set:
  420. open chest with 5 rows named "&6&l%{team::%uuid of player%}%&6's Stats" to player
  421. wait 3 ticks
  422. loop integers from 0 to 44:
  423. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  424. loop {team::%{team::%uuid of player%}%::medlemmer::*}:
  425. if loop-value is {team::%{team::%uuid of player%}%::ejer}:
  426.  
  427. else:
  428. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  429. set {_medlemmer} to "%{_medlemmer1::*}%"
  430. replace "," with "||" in {_medlemmer}
  431. replace "and" with "||" in {_medlemmer}
  432. if {_medlemmer} contains "<none>":
  433. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  434. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%uuid of player%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  435. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%uuid of player%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%uuid of player%}%::kills}%&8/&e%{team::%{team::%uuid of player%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%uuid of player%}%::kills}%||&6DØDE&8: &e%{team::%{team::%uuid of player%}%::deaths}%" to be unstealable
  436. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6POINTS&8: &e%{team::%{team::%uuid of player%}%::points}%" to be unstealable
  437. if {team::%uuid of player%} is not set:
  438. message "{@p}Du er ikke medlem af et team!"
  439. else:
  440. set {_arg} to {uuid::%arg-2%}
  441. if {team::%{_arg}%} is set:
  442. open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
  443. wait 3 ticks
  444. loop integers from 0 to 44:
  445. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  446. loop {team::%{team::%{_arg}%}%::medlemmer::*}:
  447. if loop-value is {team::%{team::%{_arg}%}%::ejer}:
  448.  
  449. else:
  450. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  451. set {_medlemmer} to "%{_medlemmer1::*}%"
  452. replace "," with "||" in {_medlemmer}
  453. replace "and" with "||" in {_medlemmer}
  454. if {_medlemmer} contains "<none>":
  455. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  456. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  457. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
  458. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
  459. else:
  460. if {team::%arg-2%} is set:
  461. set {_arg} to arg 2
  462. open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
  463. wait 3 ticks
  464. loop integers from 0 to 44:
  465. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  466. loop {team::%{team::%{_arg}%}%::medlemmer::*}:
  467. if loop-value is {team::%{team::%{_arg}%}%::ejer}:
  468.  
  469. else:
  470. add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
  471. set {_medlemmer} to "%{_medlemmer1::*}%"
  472. replace "," with "||" in {_medlemmer}
  473. replace "and" with "||" in {_medlemmer}
  474. if {_medlemmer} contains "<none>":
  475. set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
  476. format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
  477. format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
  478. format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
  479. if arg 1 is "bank":
  480. if {team::%uuid of player%} is not set:
  481. message "{@p}Du er ikke medlem af et team!"
  482. stop
  483. if arg 2 is not set:
  484. message "{@p}Konto&8: &a%{team::%{team::%uuid of player%}%::bank}%$"
  485. message "{@p}Skriv &6/team bank <antal>&e, for at indsætte penge til din teamets bankkonto."
  486. stop
  487. if arg 2 is set:
  488. if arg 2 is "confirm":
  489. if {bankinset.%player%} is set:
  490. set {_penge} to {bankinset.%player%}
  491. remove {_penge} from player's money
  492. add {bankinset.%player%} to {team::%{team::%uuid of player%}%::bank}
  493. message "{@p}Du satte &a$%{_penge}%&e ind på teamets bank, og derfor er der nu &a$%{team::%{team::%uuid of player%}%::bank}%&e på jeres bankkonto."
  494. wait 2 ticks
  495. delete {bankinset.%player%}
  496. stop
  497. else:
  498. message "{@p}Du skal først bruge &a/team bank (antal)&e, for at kunne sætte penge ind på team kontoen."
  499. stop
  500. else:
  501. set {_number} to arg 2 parsed as a number
  502. if player's money is less than {_number}:
  503. message "{@p}&6Du har ikke &4$%{_number}%&e!"
  504. stop
  505. if {_number} is a number:
  506. message "{@p}For at sætte pengene ind skal du skrive &a/team bank confirm&e!"
  507. set {bankinset.%player%} to {_number}
  508. stop
  509. if {_number} is not a number:
  510. message "{@p}&6Du kan kun tilføje hele penge beløb!"
  511. stop
  512. if arg-1 is "mission":
  513. if arg-2 is not set:
  514. if {team::%uuid of player%} is set:
  515. open chest with 3 rows named "&6&lTEAM MISSIONER" to player
  516. wait 3 ticks
  517. format slot 0 of player with orange stained glass pane named "&r" to be unstealable
  518. format slot 1 of player with gray stained glass pane named "&r" to be unstealable
  519. format slot 2 of player with orange stained glass pane named "&r" to be unstealable
  520. format slot 3 of player with gray stained glass pane named "&r" to be unstealable
  521. format slot 4 of player with orange stained glass pane named "&r" to be unstealable
  522. format slot 5 of player with gray stained glass pane named "&r" to be unstealable
  523. format slot 6 of player with orange stained glass pane named "&r" to be unstealable
  524. format slot 7 of player with gray stained glass pane named "&r" to be unstealable
  525. format slot 8 of player with orange stained glass pane named "&r" to be unstealable
  526. format slot 18 of player with gray stained glass pane named "&r" to be unstealable
  527. format slot 19 of player with orange stained glass pane named "&r" to be unstealable
  528. format slot 20 of player with gray stained glass pane named "&r" to be unstealable
  529. format slot 21 of player with orange stained glass pane named "&r" to be unstealable
  530. format slot 22 of player with gray stained glass pane named "&r" to be unstealable
  531. format slot 23 of player with orange stained glass pane named "&r" to be unstealable
  532. format slot 24 of player with gray stained glass pane named "&r" to be unstealable
  533. format slot 25 of player with orange stained glass pane named "&r" to be unstealable
  534. format slot 26 of player with gray stained glass pane named "&r" to be unstealable
  535. if {team::%{team::%uuid of player%}%::mission::1} is "igang":
  536. format slot 9 of player with diamond sword named "&e&lMISSION 1" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::1::kills}%&8/&a200" to close then run [ make player execute command "team mission 1"]
  537. else if {team::%{team::%uuid of player%}%::mission::1} is "klaret":
  538. format slot 9 of player with light green stained glass pane named "&a&lMISSION 1" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  539. else if {team::%{team::%uuid of player%}%::mission::1} is "låst":
  540. format slot 9 of player with red stained glass pane named "&4&lMISSION 1" with lore "&r||&7Status &8» &4Låst" to be unstealable
  541.  
  542. if {team::%{team::%uuid of player%}%::mission::2} is "igang":
  543. format slot 10 of player with diamond sword named "&e&lMISSION 2" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::2::kills}%&8/&a400" to close then run [ make player execute command "team mission 2"]
  544. else if {team::%{team::%uuid of player%}%::mission::2} is "klaret":
  545. format slot 10 of player with light green stained glass pane named "&a&lMISSION 2" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  546. else if {team::%{team::%uuid of player%}%::mission::2} is "låst":
  547. format slot 10 of player with red stained glass pane named "&4&lMISSION 2" with lore "&r||&7Status &8» &4Låst" to be unstealable
  548.  
  549. if {team::%{team::%uuid of player%}%::mission::3} is "igang":
  550. format slot 11 of player with diamond sword named "&e&lMISSION 3" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::3::kills}%&8/&a500" to close then run [ make player execute command "team mission 3"]
  551. else if {team::%{team::%uuid of player%}%::mission::3} is "klaret":
  552. format slot 11 of player with light green stained glass pane named "&a&lMISSION 3" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  553. else if {team::%{team::%uuid of player%}%::mission::3} is "låst":
  554. format slot 11 of player with red stained glass pane named "&4&lMISSION 3" with lore "&r||&7Status &8» &4Låst" to be unstealable
  555.  
  556. if {team::%{team::%uuid of player%}%::mission::4} is "igang":
  557. format slot 12 of player with diamond sword named "&e&lMISSION 4" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::4::kills}%&8/&a600" to close then run [ make player execute command "team mission 4"]
  558. else if {team::%{team::%uuid of player%}%::mission::4} is "klaret":
  559. format slot 12 of player with light green stained glass pane named "&a&lMISSION 4" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  560. else if {team::%{team::%uuid of player%}%::mission::4} is "låst":
  561. format slot 12 of player with red stained glass pane named "&4&lMISSION 4" with lore "&r||&7Status &8» &4Låst" to be unstealable
  562.  
  563. if {team::%{team::%uuid of player%}%::mission::5} is "igang":
  564. format slot 13 of player with diamond sword named "&e&lMISSION 5" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::5::kills}%&8/&a700" to close then run [ make player execute command "team mission 5"]
  565. else if {team::%{team::%uuid of player%}%::mission::5} is "klaret":
  566. format slot 13 of player with light green stained glass pane named "&a&lMISSION 5" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  567. else if {team::%{team::%uuid of player%}%::mission::5} is "låst":
  568. format slot 13 of player with red stained glass pane named "&4&lMISSION 5" with lore "&r||&7Status &8» &4Låst" to be unstealable
  569.  
  570. if {team::%{team::%uuid of player%}%::mission::6} is "igang":
  571. format slot 14 of player with diamond sword named "&e&lMISSION 6" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::6::kills}%&8/&a800" to close then run [ make player execute command "team mission 6"]
  572. else if {team::%{team::%uuid of player%}%::mission::6} is "klaret":
  573. format slot 14 of player with light green stained glass pane named "&a&lMISSION 6" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  574. else if {team::%{team::%uuid of player%}%::mission::6} is "låst":
  575. format slot 14 of player with red stained glass pane named "&4&lMISSION 6" with lore "&r||&7Status &8» &4Låst" to be unstealable
  576.  
  577. if {team::%{team::%uuid of player%}%::mission::7} is "igang":
  578. format slot 15 of player with diamond sword named "&e&lMISSION 7" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::7::kills}%&8/&a900" to close then run [ make player execute command "team mission 7"]
  579. else if {team::%{team::%uuid of player%}%::mission::7} is "klaret":
  580. format slot 15 of player with light green stained glass pane named "&a&lMISSION 7" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  581. else if {team::%{team::%uuid of player%}%::mission::7} is "låst":
  582. format slot 15 of player with red stained glass pane named "&4&lMISSION 7" with lore "&r||&7Status &8» &4Låst" to be unstealable
  583.  
  584. if {team::%{team::%uuid of player%}%::mission::8} is "igang":
  585. format slot 16 of player with diamond sword named "&e&lMISSION 8" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::8::kills}%&8/&a1000" to close then run [ make player execute command "team mission 8"]
  586. else if {team::%{team::%uuid of player%}%::mission::8} is "klaret":
  587. format slot 16 of player with light green stained glass pane named "&a&lMISSION 8" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  588. else if {team::%{team::%uuid of player%}%::mission::8} is "låst":
  589. format slot 16 of player with red stained glass pane named "&4&lMISSION 8" with lore "&r||&7Status &8» &4Låst" to be unstealable
  590.  
  591. if {team::%{team::%uuid of player%}%::mission::9} is "igang":
  592. format slot 17 of player with diamond sword named "&e&lMISSION 9" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::9::kills}%&8/&a1100" to close then run [ make player execute command "team mission 9"]
  593. else if {team::%{team::%uuid of player%}%::mission::9} is "klaret":
  594. format slot 17 of player with light green stained glass pane named "&a&lMISSION 9" with lore "&r||&7Status &8» &aKlaret" to be unstealable
  595. else if {team::%{team::%uuid of player%}%::mission::9} is "låst":
  596. format slot 17 of player with red stained glass pane named "&4&lMISSION 9" with lore "&r||&7Status &8» &4Låst" to be unstealable
  597. else:
  598. send "{@p}Du er ikke medlem af et team" to player
  599. stop
  600. if arg-2 is "1":
  601. if {team::%uuid of player%} is set:
  602. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  603. if {team::%{team::%uuid of player%}%::mission::1} is "igang":
  604. if {team::%{team::%uuid of player%}%::mission::1::kills} is 200:
  605. set {team::%{team::%uuid of player%}%::mission::1} to "klaret"
  606. set {team::%{team::%uuid of player%}%::mission::2} to "igang"
  607. set {team::%{team::%uuid of player%}%::mission::2::kills} to 0
  608. add 1 to {team::%{team::%uuid of player%}%::points}
  609. send "{@p}Dit team har klaret mission &61&e!" to player
  610. stop
  611. else:
  612. send "{@p}Jeres team har ikke nok &6kills&e." to player
  613. stop
  614. else:
  615. send "{@p}Dit team har klaret den mission &61&e!" to player
  616. stop
  617. else:
  618. send "{@p}Du er ikke ejer af dit team." to player
  619. stop
  620. else:
  621. send "{@p}Du er ikke medlem af et team" to player
  622. stop
  623. if arg-2 is "2":
  624. if {team::%uuid of player%} is set:
  625. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  626. if {team::%{team::%uuid of player%}%::mission::2} is "igang":
  627. if {team::%{team::%uuid of player%}%::mission::2::kills} is 400:
  628. set {team::%{team::%uuid of player%}%::mission::2} to "klaret"
  629. set {team::%{team::%uuid of player%}%::mission::3} to "igang"
  630. set {team::%{team::%uuid of player%}%::mission::3::kills} to 0
  631. add 1 to {team::%{team::%uuid of player%}%::points}
  632. send "{@p}Dit team har klaret mission &62&e!" to player
  633. stop
  634. else:
  635. send "{@p}Jeres team har ikke nok &6kills&e." to player
  636. stop
  637. else:
  638. send "{@p}Dit team &e&nhar&e klaret mission &62&e!" to player
  639. stop
  640. else:
  641. send "{@p}Du er ikke ejer af dit team." to player
  642. stop
  643. else:
  644. send "{@p}Du er ikke medlem af et team" to player
  645. stop
  646. if arg-2 is "3":
  647. if {team::%uuid of player%} is set:
  648. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  649. if {team::%{team::%uuid of player%}%::mission::3} is "igang":
  650. if {team::%{team::%uuid of player%}%::mission::3::kills} is 500:
  651. set {team::%{team::%uuid of player%}%::mission::3} to "klaret"
  652. set {team::%{team::%uuid of player%}%::mission::4} to "igang"
  653. set {team::%{team::%uuid of player%}%::mission::4::kills} to 0
  654. add 2 to {team::%{team::%uuid of player%}%::points}
  655. send "{@p}Dit team har klaret mission &63&e!" to player
  656. stop
  657. else:
  658. send "{@p}Jeres team har ikke nok &6kills&e." to player
  659. stop
  660. else:
  661. send "{@p}Dit team &e&nhar&e klaret mission &63&e!" to player
  662. stop
  663. else:
  664. send "{@p}Du er ikke ejer af dit team." to player
  665. stop
  666. else:
  667. send "{@p}Du er ikke medlem af et team" to player
  668. stop
  669. if arg-2 is "4":
  670. if {team::%uuid of player%} is set:
  671. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  672. if {team::%{team::%uuid of player%}%::mission::4} is "igang":
  673. if {team::%{team::%uuid of player%}%::mission::4::kills} is 600:
  674. set {team::%{team::%uuid of player%}%::mission::4} to "klaret"
  675. set {team::%{team::%uuid of player%}%::mission::5} to "igang"
  676. set {team::%{team::%uuid of player%}%::mission::5::kills} to 0
  677. add 2 to {team::%{team::%uuid of player%}%::points}
  678. send "{@p}Dit team har klaret mission &64&e!" to player
  679. stop
  680. else:
  681. send "{@p}Jeres team har ikke nok &6kills&e." to player
  682. stop
  683. else:
  684. send "{@p}Dit team &e&nhar&e klaret mission &64&e!" to player
  685. stop
  686. else:
  687. send "{@p}Du er ikke ejer af dit team." to player
  688. stop
  689. else:
  690. send "{@p}Du er ikke medlem af et team" to player
  691. stop
  692. if arg-2 is "5":
  693. if {team::%uuid of player%} is set:
  694. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  695. if {team::%{team::%uuid of player%}%::mission::5} is "igang":
  696. if {team::%{team::%uuid of player%}%::mission::5::kills} is 700:
  697. set {team::%{team::%uuid of player%}%::mission::5} to "klaret"
  698. set {team::%{team::%uuid of player%}%::mission::6} to "igang"
  699. set {team::%{team::%uuid of player%}%::mission::6::kills} to 0
  700. add 3 to {team::%{team::%uuid of player%}%::points}
  701. send "{@p}Dit team har klaret mission &65&e!" to player
  702. stop
  703. else:
  704. send "{@p}Jeres team har ikke nok &6kills&e." to player
  705. stop
  706. else:
  707. send "{@p}Dit team &e&nhar&e klaret mission &65&e!" to player
  708. stop
  709. else:
  710. send "{@p}Du er ikke ejer af dit team." to player
  711. stop
  712. else:
  713. send "{@p}Du er ikke medlem af et team" to player
  714. stop
  715. if arg-2 is "6":
  716. if {team::%uuid of player%} is set:
  717. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  718. if {team::%{team::%uuid of player%}%::mission::6} is "igang":
  719. if {team::%{team::%uuid of player%}%::mission::6::kills} is 800:
  720. set {team::%{team::%uuid of player%}%::mission::6} to "klaret"
  721. set {team::%{team::%uuid of player%}%::mission::7} to "igang"
  722. set {team::%{team::%uuid of player%}%::mission::7::kills} to 0
  723. add 3 to {team::%{team::%uuid of player%}%::points}
  724. send "{@p}Dit team har klaret mission &66&e!" to player
  725. stop
  726. else:
  727. send "{@p}Jeres team har ikke nok &6kills&e." to player
  728. stop
  729. else:
  730. send "{@p}Dit team &e&nhar&e klaret mission &66&e!" to player
  731. stop
  732. else:
  733. send "{@p}Du er ikke ejer af dit team." to player
  734. stop
  735. else:
  736. send "{@p}Du er ikke medlem af et team" to player
  737. stop
  738. if arg-2 is "7":
  739. if {team::%uuid of player%} is set:
  740. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  741. if {team::%{team::%uuid of player%}%::mission::7} is "igang":
  742. if {team::%{team::%uuid of player%}%::mission::7::kills} is 900:
  743. set {team::%{team::%uuid of player%}%::mission::7} to "klaret"
  744. set {team::%{team::%uuid of player%}%::mission::8} to "igang"
  745. set {team::%{team::%uuid of player%}%::mission::8::kills} to 0
  746. add 4 to {team::%{team::%uuid of player%}%::points}
  747. send "{@p}Dit team har klaret mission &67&e!" to player
  748. stop
  749. else:
  750. send "{@p}Jeres team har ikke nok &6kills&e." to player
  751. stop
  752. else:
  753. send "{@p}Dit team &e&nhar&e klaret mission &67&e!" to player
  754. stop
  755. else:
  756. send "{@p}Du er ikke ejer af dit team." to player
  757. stop
  758. else:
  759. send "{@p}Du er ikke medlem af et team" to player
  760. stop
  761. if arg-2 is "8":
  762. if {team::%uuid of player%} is set:
  763. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  764. if {team::%{team::%uuid of player%}%::mission::8} is "igang":
  765. if {team::%{team::%uuid of player%}%::mission::8::kills} is 1000:
  766. set {team::%{team::%uuid of player%}%::mission::8} to "klaret"
  767. set {team::%{team::%uuid of player%}%::mission::9} to "igang"
  768. set {team::%{team::%uuid of player%}%::mission::9::kills} to 0
  769. add 4 to {team::%{team::%uuid of player%}%::points}
  770. send "{@p}Dit team har klaret mission &68&e!" to player
  771. stop
  772. else:
  773. send "{@p}Jeres team har ikke nok &6kills&e." to player
  774. stop
  775. else:
  776. send "{@p}Dit team &e&nhar&e klaret mission &68&e!" to player
  777. stop
  778. else:
  779. send "{@p}Du er ikke ejer af dit team." to player
  780. stop
  781. else:
  782. send "{@p}Du er ikke medlem af et team" to player
  783. stop
  784. if arg-2 is "9":
  785. if {team::%uuid of player%} is set:
  786. if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
  787. if {team::%{team::%uuid of player%}%::mission::9} is "igang":
  788. if {team::%{team::%uuid of player%}%::mission::9::kills} is 1100:
  789. set {team::%{team::%uuid of player%}%::mission::9} to "klaret"
  790. add 5 to {team::%{team::%uuid of player%}%::points}
  791. send "{@p}Dit team har nu klaret alle 9 missioner! Tillykke!" to player
  792. stop
  793. else:
  794. send "{@p}Jeres team har ikke nok &6kills&e." to player
  795. stop
  796. else:
  797. send "{@p}Dit team &e&nhar&e klaret mission &69&e!" to player
  798. stop
  799. else:
  800. send "{@p}Du er ikke ejer af dit team." to player
  801. stop
  802. else:
  803. send "{@p}Du er ikke medlem af et team" to player
  804. stop
  805. if arg-1 is "start":
  806. if {team::%uuid of player%} is set:
  807. open chest with 5 rows named "&6&lTEAM &8» &e%{team::%uuid of player%}%" to player
  808. wait 3 ticks
  809. loop integers from 0 to 44:
  810. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  811. format slot 13 of player with book named "&6&lTEAM INFO" with lore "&7&oKlik her for at se dit teams info" to run [ make player execute command "team info"]
  812. format slot 20 of player with diamond sword named "&6&lTEAM MISSIONER" with lore "&7&oKlik her for at se team missionerne" to run [ make player execute command "team mission"]
  813. format slot 24 of player with golden ingot named "&6&lTEAM SHOP" with lore "&7&oKlik her for at åbne team shoppen." to run [ make player execute command "team shop"]
  814. format slot 31 of player with chest named "&6&lTEAM KISTE" with lore "&7&oKlik her for at åbne team kisten" to run [ make player execute command "team chest"]
  815.  
  816. on death of player:
  817. if {team::%uuid of attacker%} is set:
  818. if {team::%{team::%uuid of attacker%}%::mission::1} is "igang":
  819. add 1 to {team::%{team::%uuid of attacker%}%::mission::1::kills}
  820. else if {team::%{team::%uuid of attacker%}%::mission::2} is "igang":
  821. add 1 to {team::%{team::%uuid of attacker%}%::mission::2::kills}
  822. else if {team::%{team::%uuid of attacker%}%::mission::3} is "igang":
  823. add 1 to {team::%{team::%uuid of attacker%}%::mission::3::kills}
  824. else if {team::%{team::%uuid of attacker%}%::mission::4} is "igang":
  825. add 1 to {team::%{team::%uuid of attacker%}%::mission::4::kills}
  826. else if {team::%{team::%uuid of attacker%}%::mission::5} is "igang":
  827. add 1 to {team::%{team::%uuid of attacker%}%::mission::5::kills}
  828. else if {team::%{team::%uuid of attacker%}%::mission::6} is "igang":
  829. add 1 to {team::%{team::%uuid of attacker%}%::mission::6::kills}
  830. else if {team::%{team::%uuid of attacker%}%::mission::7} is "igang":
  831. add 1 to {team::%{team::%uuid of attacker%}%::mission::7::kills}
  832. else if {team::%{team::%uuid of attacker%}%::mission::8} is "igang":
  833. add 1 to {team::%{team::%uuid of attacker%}%::mission::8::kills}
  834. else if {team::%{team::%uuid of attacker%}%::mission::9} is "igang":
  835. add 1 to {team::%{team::%uuid of attacker%}%::mission::9::kills}
  836. command /tk:
  837. trigger:
  838. execute player command "team chest"
  839. command /teamdisband <text>:
  840. trigger:
  841. if player is op:
  842. if {team::%{uuid::%arg-1%}%} is set:
  843. send "{@p}Du fjernede &6%arg-1%&6's &eteam."
  844. set {_arg} to {uuid::%arg-1%}
  845. delete {team::%{_arg}%::lvlkills}
  846. delete {team::%{_arg}%::lvl}
  847. delete {team::%{_arg}%::kills}
  848. delete {team::%{_arg}%::deaths}
  849. delete {team::%{_arg}%::ejer}
  850. loop {team::%{_arg}%::medlemmer::*}:
  851. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  852. delete {team::%loop-value%}
  853. delete {team::%{_arg}%}
  854. stop
  855. send "{@p}Du fjernede teamet &6%arg-1%"
  856. delete {team::%arg-1%::lvlkills}
  857. delete {team::%arg-1%::lvl}
  858. delete {team::%arg-1%::kills}
  859. delete {team::%arg-1%::deaths}
  860. delete {team::%arg-1%::ejer}
  861. loop {team::%arg-1%::medlemmer::*}:
  862. remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
  863. delete {team::%loop-value%}
  864. delete {team::%arg-1%}
  865.  
  866.  
  867. On death:
  868. If {team::%uuid of attacker%} is set:
  869. add 1 to {team::%{team::%uuid of attacker%}%::kills}
  870. If {team::%uuid of victim%} is set:
  871. add 1 to {team::%{team::%uuid of victim%}%::deaths}
  872.  
  873. on damage:
  874. if {team::%uuid of attacker%} is {team::%uuid of victim%}:
  875. if projectile exists:
  876. stop
  877. cancel event
  878. stop
  879.  
  880. on inventory close:
  881. if inventory name of player's current inventory is "&e&lTEAM KISTE":
  882. delete {teamv1::%{team::%uuid of player%}%::chest}
  883. set {_slot} to 0
  884. loop 54 times:
  885. set {team::1::%{_slot}%::%{team::%uuid of player%}%} to slot {_slot} of player's current inventory
  886. add 1 to {_slot}
  887.  
  888.  
  889. on chat:
  890. cancel event
  891. if {team::%uuid of player%} is set:
  892. send "&8[%{team::%{team::%uuid of player%}%::farve}%%{team::%uuid of player%}%&8] %player's displayname% &8» %{farve::%player%}%%message%" to players
  893. stop
  894. send "%player's displayname% &8» %{farve::%player%}%%message%" to players
  895. on join:
  896. if player has permission "rank.admin":
  897. set {farve::%player%} to "&c"
  898. stop
  899. else if player has permission "rank.mod":
  900. set {farve::%player%} to "&9"
  901. stop
  902. else if player has permission "rank.hjælper":
  903. set {farve::%player%} to "&d"
  904. stop
  905. set {farve::%player%} to "&7"
  906. stop
  907.  
  908. sub "team.page1":
  909. set {_p} to parameter 1
  910. open chest with 6 rows named "&e&lTEAM KISTE" to {_p}
  911. set {_slot} to 0
  912. loop 54 times:
  913. set slot {_slot} of {_p}'s current inventory to {team::1::%{_slot}%::%{team::%uuid of parameter 1%}%}
  914. add 1 to {_slot}
  915. set {team::%{team::%uuid of {_p}%}%::chest} to true
Advertisement
Add Comment
Please, Sign In to add comment