Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.19 KB | None | 0 0
  1. command /moles [<text>] [<integer>]:
  2. permission: skript.op
  3. trigger:
  4. if arg-1 is not set:
  5. message "&8[&bMoles&8] &b/moles help"
  6.  
  7. else if arg-1 is equal to "set":
  8. if command sender does not have the permission "moles.set":
  9. message "&8[&bMoles&8] &bNOPE!"
  10. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  11. stop trigger
  12.  
  13. set {Mole} to true
  14.  
  15. delete {Mole.IsMole::*}
  16. delete {Mole.MoleOfTeam::*}
  17. delete {Mole.Moles::*}
  18.  
  19. loop all players:
  20. set {isMole.%loop-player%} to false
  21.  
  22. if arg-2 is not set:
  23. set {_MoleAmount} to 1
  24.  
  25. if arg-2 is set:
  26. set {_MoleAmount} to arg-2
  27.  
  28. loop {Teams::*}:
  29. set {_potMoles::*} to {Team.%loop-value%::*}
  30. loop {_MoleAmount} times:
  31. set {_Mole} to (random element out of {_potMoles::*})
  32. remove {_Mole} from {_potMoles::*}
  33. set {Mole.IsMole::%{_Mole}%} to loop-value
  34. set {Mole.MoleOfTeam::%loop-value%} to {_Mole}
  35. add {_Mole} to {Mole.Moles::*}
  36. set {_MolePlayer} to ("%{_Mole}%" parsed as offlineplayer)
  37. if {_MolePlayer} is online:
  38. message "&fYou are a mole! Use /molekit" to {_MolePlayer}
  39. execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
  40. set {molekit.%{_MolePlayer}%} to true
  41. set {isMole.%{_MolePlayer}%} to true
  42. set {HasMoleKit.%{_MolePlayer}%} to false
  43.  
  44. broadcast "&8[&bMoles&8] &bSet &f&l%{_MoleAmount}%&b Mole(s) per team!"
  45. delete {_potMoles::*}
  46.  
  47. else if arg-1 is equal to "delete" or "reset":
  48. if command sender does not have the permission "moles.delete":
  49. message "&8[&bMoles&8] &bNOPE!"
  50. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  51. stop trigger
  52.  
  53. set {Mole} to false
  54.  
  55. delete {Moles.IsMole::*}
  56. delete {Moles.MolesOfTeam::*}
  57. delete {fighterkit::*}
  58. loop {Mole.Moles::*}:
  59. delete {isMole.%loop-value%}
  60. delete {HasMoleKit.%loop-value%}
  61. delete {molekit.%loop-value%}
  62. delete {Mole.Moles::*}
  63.  
  64. broadcast "&8[&bMoles&8] &bMoles have been reset!"
  65. loop all players:
  66. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  67.  
  68.  
  69. else if arg-1 is equal to "list" or "show":
  70. if command sender does not have the permission "moles.list":
  71. message "&8[&bMoles&8] &bNOPE!"
  72. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  73. stop trigger
  74.  
  75.  
  76. if {Mole.Moles::*} is not set:
  77. message "&8[&bMoles&8] &bThere are no moles!"
  78. else:
  79. message "&8[&bMoles&8] &f%{Mole.Moles::*}%"
  80.  
  81. else if arg-1 is equal to "help":
  82. execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
  83. message "&8[&bMoles&8] &bMole Skript v1.1 commands:"
  84. message "&8[&bMoles&8] &b/moles set <amount>: sets moles"
  85. message "&8[&bMoles&8] &b/moles reset: removes variables, resets moles"
  86. message "&8[&bMoles&8] &b/moles list: lists all moles"
  87.  
  88.  
  89. else:
  90. message "&8[&bMoles&8] &b/moles help"
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. on death of player:
  98. if {Moles} is true:
  99. if {Moles.IsMole::%player%} is set:
  100. delete {Mole.IsMole::%player%}
  101. delete {isMole:%player%}
  102.  
  103.  
  104. command /molekit [<text>] [<text>]:
  105. trigger:
  106. if {molekit.%command sender%} is true:
  107. {HasMoleKit.%command sender%} is false:
  108. {isMole.%command sender%} is true:
  109. if arg-1 is not set:
  110. message "&8[&bMoles&8] &bUse /molekit list to see the kits!"
  111. if arg-1 is "list":
  112. message "&8[&bMoles&8] &bThe mole kits are:"
  113. message "&8[&bMoles&8] &b1. &fBatman"
  114. message "&8[&bMoles&8] &b2. &fThe Troll"
  115. message "&8[&bMoles&8] &b3. &fThe Potter"
  116. message "&8[&bMoles&8] &b4. &fThe Fighter"
  117. message "&8[&bMoles&8] &b5. &fThe Trapper"
  118. message "&8[&bMoles&8] &b6. &fThe Pyro"
  119. message "&8[&bMoles&8] &b7. &fThe Ice Climber"
  120. message "&8[&bMoles&8] &b8. &fThe Berserker"
  121. message "&8[&bMoles&8] &b9. &fThe Chef"
  122. message "&8[&bMoles&8] &bUse &f/molekit info&b to learn about each kit!"
  123. message "&8[&bMoles&8] &bUse &f/molekit choose <1 - 9>&b to get your kit!"
  124.  
  125.  
  126. if arg-1 is "info" or "explain" or "learn":
  127. arg-2 is "1":
  128. message "&8[&bMoles&8] &bBatman gets an elytra, a lingering potion of invisibility, a jump boost potion, 64 bat spawn eggs and 16 ender pearls." to the command sender
  129. arg-2 is "2":
  130. message "&8[&bMoles&8] &bThe Troll gets a few different spawn eggs, 64 fireworks, 16 TNT, a lingering water bottle, a splash invis potion, a fishing rod and can take off his teammates' helmets with the /trollhelmets command." to the command sender
  131. arg-2 is "3":
  132. message "&8[&bMoles&8] &bThe Potter gets a variety of different potions." to the command sender
  133. arg-2 is "4":
  134. message "&8[&bMoles&8] &bThe Fighter gets a sharpness 2, sweeping edge 3 diamond sword, a bow, 48 arrows, 16 spectral arrows, 2 golden apples and a shield (which is the only shield you can use)." to the command sender
  135. arg-2 is "5":
  136. message "&8[&bMoles&8] &bThe Trapper gets 64 pistons, 64 sticky pistons, 64 redstone torches, 64 repeaters, 64 redstone, 64 TNT and 64 dispensers." to the command sender
  137. arg-2 is "6":
  138. message "&8[&bMoles&8] &bThe Pyro gets 5 blaze spawn eggs, a flint and steel, a fire resistance potion, a blaze rod, 16 buckets and 64 magma blocks." to the command sender
  139. arg-2 is "7":
  140. message "&8[&bMoles&8] &bThe Ice Climber gets 64 slowness arrows, an efficiency V, unbreaking III golden pickaxe, 64 ice, 64 obsidian, frostwalker II diamond boots, 3 splash potions of slowness, 16 polar bear spawn eggs and 16 stray spawn eggs." to the command sender
  141. arg-2 is "8":
  142. message "&8[&bMoles&8] &bThe Berserker gets a sharpness 3, curse of vanishing diamond axe and can toggle his haste 2 with the /berserkerhaste command" to the command sender
  143. arg-2 is "9":
  144. message "&8[&bMoles&8] &bThe Chef gets 3 notch apples, 3 cake and 64 pumpkin pie." to the command sender
  145. arg-2 is not set:
  146. message "&bPlease specify which kit you'd like to learn about. 1-9."
  147.  
  148. if arg-1 is "select" or "choose" or "pick":
  149.  
  150. arg-2 is "1" or "Batman":
  151. give player 1 of elytra
  152. give player 64 bat spawn eggs
  153. give player 16 ender pearls
  154. give player 1 lingering invisibility potion item
  155. give player 1 jump boost potion item
  156. set {molekit.%command sender%} to false
  157. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  158.  
  159. arg-2 is "2" or "Troll" or "The Troll":
  160. give player 16 vex spawn eggs
  161. give player 8 guardian spawn eggs
  162. give player 4 creeper spawn eggs
  163. give player 64 squid spawn eggs
  164. give player 64 of 401
  165. give player 16 tnt
  166. give player a fishing rod of (luck of the sea 3)
  167. give player a extended splash invisibility potion item
  168. set {molekit.%command sender%} to false
  169. set {trollkit::%command sender%} to true
  170. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  171.  
  172. arg-2 is "3" or "Potter" or "The Potter":
  173. give player 1 strength potion item
  174. give player 1 invisibility potion item
  175. give player 1 fire resistance potion item
  176. give player 1 speed potion item
  177. give player 1 splash weakness potion item
  178. give player 1 splash poison potion item
  179. give player 1 splash slowness potion item
  180. give player 1 lingering harming potion item
  181. give player 1 lingering invisibility potion item
  182. set {molekit.%command sender%} to false
  183. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  184.  
  185. arg-2 is "4" or "Fighter" or "The Fighter":
  186. remove all shields from player's inventory
  187. give player a diamond sword of (sharpness 2 and sweeping edge 3)
  188. give player a bow
  189. give player 16 spectral arrows
  190. give player 2 golden apples
  191. give player 48 arrows
  192. give player a white shield of red saltire of (unbreaking 3)
  193. set {molekit.%command sender%} to false
  194. set {fighterkit::%command sender%} to true
  195. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  196.  
  197. arg-2 is "5" or "Trapper" or "The Trapper":
  198. give player 64 pistons
  199. give player 64 sticky pistons
  200. give player 64 of 76
  201. give player 64 redstone
  202. give player 64 of 356
  203. give player 64 tnt
  204. give player 64 dispensers
  205. set {molekit.%command sender%} to false
  206. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  207.  
  208. arg-2 is "6" or "Pyro" or "The Pyro":
  209. give player 5 blaze spawn eggs
  210. give player a blaze rod
  211. give player 1 flint and steel
  212. give player 1 extended fire resistance potion item
  213. give player 16 buckets
  214. give player 64 of 213
  215. set {molekit.%command sender%} to false
  216. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  217.  
  218. arg-2 is "7" or "Ice Climber" or "The Ice Climber":
  219. give player 64 of 440
  220. give player a golden pickaxe of (efficiency 5 and unbreaking 3)
  221. give player 64 ice
  222. give player 64 obsidian
  223. give player 16 polar bear spawn eggs
  224. give player 16 stray spawn eggs
  225. give player diamond boots of (frostwalker 2)
  226. give player 3 extended splash slowness potion items
  227. set {molekit.%command sender%} to false
  228. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  229.  
  230. arg-2 is "8" or "Berserker" or "The Berserker":
  231. give diamond axe of (curse of vanishing and sharpness 3)
  232. set {molekit.%command sender%} to false
  233. set {berserkerkit::%command sender%} to true
  234. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  235.  
  236. arg-2 is "9" or "Chef" or "The Chef":
  237. give player 3 322:1
  238. give player 3 cake
  239. give player 64 pumpkin pie
  240. set {molekit.%command sender%} to false
  241. execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
  242.  
  243. else:
  244. message "&8[&bMoles&8]&fYou're not a mole!"
  245.  
  246. if {HasMoleKit.%command sender%} is not set:
  247. if {isMole.%command sender%} is true:
  248. message "&8[&bMoles&8] &bYou've already gotten your kit!"
  249.  
  250.  
  251. command /mcc <text>:
  252. usage: /mcc <message>
  253. trigger:
  254. {isMole.%command sender%} is true:
  255. set {_player} to command sender
  256. loop all players:
  257. {isMole.%loop-player%} is true:
  258. message "&8[&bMoles&8] &f%command sender%&r: %arg%" to the loop-player
  259. else:
  260. message "&8[&bMoles&8] &fYou're not a mole!"
  261.  
  262.  
  263. command /mcl:
  264. usage: /mcl - broadcast location to other moles
  265. trigger:
  266. {isMole.%command sender%} is true:
  267. set {_moleLoc} to the command sender's location
  268. loop all players:
  269. {isMole.%loop-player%} is true:
  270. message "&8[&bMoles&8] &f%command sender%'s coords are:&b %{_moleLoc}%" to the loop-player
  271.  
  272. else:
  273. message "&8[&bMoles&8] &fYou're not a mole!"
  274.  
  275. command /mcp:
  276. usage: /mcp - list mole players alive
  277. trigger:
  278. {isMole.%command sender%} is true:
  279. loop all players:
  280. if {isMole.%loop-player%} is true:
  281. message "&8[&bMoles&8] &f%loop-player% "
  282. else:
  283. message "&8[&bMoles&8] &fYou're not a mole!"
  284.  
  285. command /berserkerhaste:
  286. trigger:
  287. {berserkerkit::%command sender%} is set:
  288. if {berserkerhaste::%command sender%} is set:
  289. remove haste from player
  290. else:
  291. give haste 2 to player for 999 days
  292. else:
  293. message "&8[&bMoles&8] &fYou're not a Berserker!"
  294.  
  295. command /trollhelmets:
  296. trigger:
  297. {trollkit::%command sender%} is set:
  298. loop {Team.%{Team.InTeam::%command sender%}%::*}:
  299. loop-value is online
  300. set {molehelmet::%loop-value%} to helmet of loop-value
  301. clear loop-value's helmet slot
  302. wait 2 minutes
  303. loop {Team.%{Team.InTeam::%command sender%}%::*}:
  304. if loop-value is online:
  305. give loop-value {molehelmet::%loop-value%}
  306. else:
  307. set {molehelmetschedule::%loop-value%} to true
  308. else:
  309. message "&8[&bMoles&8] &fYou're not a Troll!"
  310.  
  311. on death of player:
  312. if {Mole} is true:
  313. execute console command "/team leave %player%"
  314.  
  315.  
  316. on join:
  317. if {Moles} is true:
  318. if {isMole.%player%} is true:
  319. message "&8[&bMoles&8] &fYou're a mole!"
  320.  
  321. if {HasMoleKit.%player%} is false:
  322. message "&8[&bMoles&8] &fHey! Use your /molekit!"
  323.  
  324. if {molehelmetschedule::%player%} is set:
  325. give player {molehelmet::%player%}
  326. delete {molehelmetschedule::%player%}
  327.  
  328. on craft of shield:
  329. if {fighterkit::%player%} is set:
  330. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement