ArtzifyHD

skript options

Jul 23rd, 2017
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # # # # # # # # # # # # # # # #
  2. # #
  3. # Name: Options #
  4. # Author: FrostedWeFall #
  5. # Version: 1.1 #
  6. # #
  7. # # # # # # # # # # # # # # # #
  8.  
  9. options:
  10. NoPerm: &8» &7You require the rank &e[VIP]&7 to execute that command!"options:
  11. nopermission: "&8» &7You require the rank &9[SKY]&7 to execute that command!." #NoPermission message can be Edited (The message supports Colorcodes: &<colorcode>)
  12. pointsadd: 5 #How much Points would be added after a Kill.[Default: 5]
  13. pointsremove: 2 #How much Points would be removed after a Death.[Default: 2]
  14.  
  15.  
  16. on join:
  17. clear player's inventory
  18. wait 3 ticks
  19. set slot 1 of player to ender_chest named "&eGadgets &7(Right Click)"
  20. set slot 7 of player to redstone_repeater named "&eOptions &7(Right Click)" with lore "&7Right click to open the Options menu"
  21. set slot 4 of player to player's skull named "&bFriends &7(Right Click)" with lore "&7Right click to see Friends list"
  22. set slot 8 of player to clock named "&aServer Selector &7(Right Click)" with lore "&7Right click to change lobbys"
  23. set slot 17 of player to arrow
  24. set {status.%player%} to "&aOnline"
  25. add 1 to {joins.%player%}
  26. on connect:
  27. set {status.%player%} to "&3Joined"
  28. on first join:
  29. set {status.%player%} to "&aOnline"
  30. set {kills.%player%} to 0
  31. set {deaths.%player%} to 0
  32. set {joins.%player%} to 0
  33. set {points.%player%} to 0
  34. add 1 to {joins.%player%}
  35. on step on pressure plate:
  36. push player forwards with force 5
  37. on drop:
  38. world is "world"
  39. world is "DuelsLobby"
  40. cancel event
  41. on respawn:
  42. clear player's inventory
  43. wait 3 ticks
  44. set slot 7 of player to redstone_repeater named "&eOptions &7(Right Click)" with lore "&7Right click to open the Options menu"
  45. set slot 8 of player to clock named "&aServer Selector &7(Right Click)" with lore "&7Right click to change lobbys"
  46. set slot 4 of player to player's skull named "&bFriends &7(Right Click)" with lore "&7Right click to see Friends list"
  47. set slot 0 of player to ender_chest named "&eGadgets &7(Right Click)"
  48. set slot 17 of player to arrow
  49.  
  50. command /optionshelp:
  51. permission: "admin.options"
  52. permission message: {@NoPerm}
  53. trigger:
  54. message "&8------------------------"
  55. message " &e&nOptions:"
  56. message ""
  57. message "&7Commands:"
  58. message "&b/options &8(open options menu)"
  59. message "&b/help &8(opens help menu)"
  60. message "&b/optionshelp &8(help for the skript)"
  61. message ""
  62. message " &e&nGadgets"
  63. message ""
  64. message "&b/gadgets &8(open menu gadgets)"
  65. message "&8------------------------"
  66. play raw sound "random.orb" at player with pitch 1 volume 1
  67. command /buyarank:
  68. trigger:
  69. message "&4TNTSpleef: &7Buy your rank to get the best benefits, Link: &9https://tntspleefminehut.buycraft.net/"
  70. play raw sound "random.orb" at player with pitch 1 volume 1
  71. command /msgfly:
  72. trigger:
  73. message "&4TNTSpleef: &7Use the dye below to access your options!"
  74. command /msgspeed:
  75. trigger:
  76. message "&4TNTSpleef: &7Use the dye below to access your options!"
  77. command /options:
  78. trigger:
  79. if player has permission "vip.options":
  80. open chest with 6 rows named "&7Player options" to player
  81. wait 0.1 seconds
  82. format slot 0 of player with arrow named "&cBack" with lore "&7Close options menu." to close
  83. format slot 11 of player with experience bottle named "&cFly" with lore "&7Use fly Right Click" to run [make player execute command "/msgfly"]
  84. format slot 19 of player with 351:8 named "&cFly" with lore "&4¡Click to deactivate!" to close then run [make player execute command "/f off"]
  85. format slot 21 of player with 351:10 named "&aFly" with lore "&2¡Click to activate!" to close then run [make player execute command "/f on"]
  86. format slot 15 of player with diamond_boots named "&aSpeed II" with lore "&7Use Speed II Right Click" to run [make player execute command "/msgspeed"]
  87. format slot 23 of player with 351:8 named "&cSpeed II" with lore "&4¡Click to deactivate!" to close then run [make player execute command "/speed no"]
  88. format slot 25 of player with 351:10 named "&aSpeed II" with lore "&2¡Click to activate!" to close then run [make player execute command "/speed yes"]
  89. format slot 37 of player with 368 named "&c¡Off!" with lore "&7View players" to close then run [make player execute command "/p off"]
  90. format slot 38 of player with 381 named "&a¡On!" with lore "&7View players" to close then run [make player execute command "/p on"]
  91. format slot 42 of player with 35:5 named "&7Tag example: &a%player%" with lore "&7Click to have this tag||&7You need: &a[VIP]" to close then run [make player execute command "/nick &a%player%"]
  92. format slot 43 of player with 35:10 named "&7Tag example: &5%player%" with lore "&7Click to have this tag||&7You need: &a[VIP]" to close then run [make player execute command "/nick &5%player%"]
  93. format slot 31 of player with player's skull named "&2¡Buy a Rank!" with lore "&7Buy your rank||&7and gain advantages" to close then run [make player execute command "/buyarank"]
  94.  
  95. on rightclick with redstone_repeater:
  96. if name of player's tool contains "&eOptions &7(Right Click)":
  97. wait 3 ticks
  98. make player execute command "options"
  99. command /p [<text>]:
  100. permission: "vip.options"
  101. permission message: {@NoPerm}
  102. trigger:
  103. if arg 1 is "on":
  104. Send "&aView Players &2¡ON!" to player
  105. hide all players to player
  106. if arg 1 is "off":
  107. Send "&cView Players &4¡OFF!" to player
  108. reveal all players to player
  109.  
  110. command /speed [<text>]:
  111. permission: "vip.options"
  112. permission message: {@NoPerm}
  113. trigger:
  114. if arg 1 is "yes":
  115. Send "&aSpeed II Activated correctly" to player
  116. apply speed to player for 100 days
  117. if arg 1 is "no":
  118. Send "&4Speed II Disabled correctly" to player
  119. remove speed from player
  120.  
  121. command /nick <text> [<player>]:
  122. aliases:nickname
  123. permission message: {@NoPerm}
  124. permission: "vip.options"
  125. usage: /nick <NickName> [<Player (If it is not you!) >]
  126. trigger:
  127. if argument 2 is not set:
  128. set display name of player to "%colored argument 1%"
  129. set {essentials.%player%.nick} to "%colored argument 1%"
  130. message "&aYour name was set to %argument 1%"
  131. send player title "&eNick changed" wim, h subtitle "&7¡Congratulations!" for 5 seconds
  132. else:
  133. player has permission "vip.options":
  134. set display name of argument 2 to "%colored argument 1%"
  135. set {essentials.%arg 2%.nick} to "%argument 1%"
  136. message "&2You set the Name of &4%argument 2% &4to %colored argument 1%"
  137. send player title "&eNick changed" with subtitle "&7¡Congratulations!" for 5 seconds
  138. stop
  139. command /rhat [<text>]:
  140. aliases: rh
  141. permission message: {@nopermission}
  142. permission: "sky.options"
  143. trigger:
  144. if argument is "hat":
  145. if player have the permission "sky.options":
  146. equip player with leather helmet named "&bc&ao&el&co&dr"
  147. wait 1 seconds
  148. dye player's helmet blue
  149. wait 1 seconds
  150. dye player's helmet red
  151. wait 1 seconds
  152. dye player's helmet green
  153. wait 1 seconds
  154. dye player's helmet purple
  155. wait 1 seconds
  156. dye player's helmet pink
  157. wait 1 seconds
  158. dye player's helmet blue
  159. wait 1 seconds
  160. dye player's helmet red
  161. wait 1 seconds
  162. dye player's helmet green
  163. wait 1 seconds
  164. dye player's helmet purple
  165. wait 1 seconds
  166. dye player's helmet pink
  167. remove all leather helmet from player
  168.  
  169.  
  170.  
  171. # #
  172. # Gadgets #
  173. # #
  174.  
  175. on rightclick with Ender_chest:
  176. make player execute command "/gadgets"
  177. on rightclick with redstone_repeater:
  178. make player execute command "/options"
  179. on rightclick with clock:
  180. make player execute command "/lob list"
  181. on rightclick with player's skull:
  182. make console execute command "/f list"
  183.  
  184.  
  185. command /gadgets:
  186. trigger:
  187. if player has permission "vip.gadgets":
  188. open chest with 3 rows named "&8Gadgets" to player
  189. wait 0.1 seconds
  190. set {_p} to "%player%" parsed as player
  191.  
  192. format slot 11 of player with Firework Rocket named "&2C&4h&2r&4i&2s&4t&2m&4a&2s" with lore "&7Click to activate||&7You need: &a[VIP]" to close then run [make player execute command "/bom"]
  193. format slot 12 of player with Egg named "&eEgg &4G&bU&2N" with lore "&7Click to activate||&7You need: &a[VIP]" to close then run [make player execute command "/egg"]
  194. format slot 14 of player with Golden Axe named "&eThor's hammer" with lore "&7Click to activate||&7You need: &a[VIP]" to close then run [execute player command "/fire"]
  195. format slot 15 of player with leather helmet named "&6Rainbow Hat" with lore "&7Click to activate||&7You need: &9[SKY]" to close then run [make player execute command "/rhat hat"]
  196.  
  197. Command /fire:
  198. permission: vip.axe
  199. permission message: {@NoPerm}
  200. trigger:
  201. set slot 8 of player to Golden Axe named "&eThor's hammer"
  202. send player title "&eThor's hammer" with subtitle "&7¡Activate!" for 5 seconds
  203. play raw sound "note.hat" at player with pitch 1 volume 1
  204.  
  205. Command /egg:
  206. permission: vip.egg
  207. permission message: {@NoPerm}
  208. trigger:
  209. set slot 8 of player to Egg named "&eEgg &4G&bU&2N"
  210. play raw sound "note.hat" at player with pitch 1 volume 1
  211.  
  212. Command /bom:
  213. permission: vip.firework
  214. permission message: {@NoPerm}
  215. trigger:
  216. set slot 8 of player to Firework Rocket named "&2C&4h&2r&4i&2s&4t&2m&4a&2s"
  217. play raw sound "note.hat" at player with pitch 1 volume 1
  218.  
  219. on click with a egg:
  220. player has the permission "vip.egg"
  221. shoot a chicken from the player
  222. wait 5 seconds
  223. kill all chickens in hub
  224.  
  225. on click with a golden axe:
  226. strike lightning at the targeted block
  227. on quit:
  228. set {status.%player%} to "&cOffline"
  229.  
  230. on death of player:
  231. add 1 to {kills.%attacker%}
  232. add 1 to {deaths.%player%}
  233. add {@pointsadd} to {points.%attacker%}
  234. remove {@pointsremove} from {points.%player%}
  235. send " " to player
  236. send " " to player
  237. send " " to player
  238. send " " to player
  239. send " " to player
  240. send " " to player
  241. send " " to player
  242. send " " to player
  243. send " " to player
  244. send " " to player
  245. send " " to player
  246. send " " to player
  247. send " " to player
  248. send " " to player
  249. send " " to player
  250. send " " to player
  251. send " " to player
  252. send " " to player
  253. send " " to player
  254. send "&8» &7You have been killed by &e%attacker's nickname%&7." to player
  255. send "&8» &6Health&8: &c%attacker's health% &c❤" to player
  256. send "&8» &7You have killed &e%player's nickname%&7." to attacker
  257. command /resetstats [<offlineplayer>]:
  258. permission: stats.reset
  259. permission message: {@nopermission}
  260. trigger:
  261. if arg 1 is not set:
  262. send "&8» &6Syntax&8: &e/ResetStats <Player>"
  263. if arg 1 is set:
  264. set {kills.%arg 1%} to 0
  265. set {deaths.%arg 1%} to 0
  266. set {joins.%arg 1%} to 1
  267. set {points.%arg 1%} to 0
  268. send "&8» &7You have resetted &e%arg 1's nickname%'s &6Stats&7." to player
  269. send "&8» &7Your &6Stats &7have been resetted by an &4Admin&7." to arg 1
  270.  
  271. command /setstats <text> <number> [<offlineplayer>]:
  272. permission: stats.set
  273. permission message: {@nopermission}
  274. trigger:
  275. if arg 1 is not set:
  276. if arg 2 is not set:
  277. if arg 3 is not set:
  278. send "&8» &6Syntax&8: &e/SetStats <Kills/Deaths/Joins/Points> <Number> <Player>" to player
  279. if arg 1 is set:
  280. if arg 1 is "kills" or "k":
  281. if arg 2 is set:
  282. if arg 3 is set:
  283. set {kills.%arg 3%} to arg-2
  284. send "&8» &e%arg 3%'s &eKills &7has been set to &e%arg 2%&7." to player
  285. else:
  286. send "&8» &7Please set a &ePlayer&7."
  287. else:
  288. send "&8» &7Please set a number of &eKills&7."
  289. if arg 1 is "deaths" or "d":
  290. if arg 2 is set:
  291. if arg 3 is set:
  292. set {deaths.%arg 3%} to arg-2
  293. send "&8» &e%arg 3%'s Deaths &7has been set to &e%arg 2%&7." to player
  294. else:
  295. send "&8» &Please set a &ePlayer&7."
  296. else:
  297. send "&8» &7Please set a number of &eKills&7"
  298. if arg 1 is "joins" or "j":
  299. if arg 2 is set:
  300. if arg 3 is set:
  301. set {joins.%arg 3%} to arg-2
  302. send "&8» &e%arg 3%'s Joins &7has been set to &e%arg 2%&7." to player
  303. else:
  304. send "&8» &7Please set a &ePlayer&7."
  305. else:
  306. send "&8» &7Please set a number of &eJoin&7."
  307. if arg 1 is "points" or "p":
  308. if arg 2 is set:
  309. if arg 3 is set:
  310. set {points.%arg 3%} to arg-2
  311. send "&8» &e%arg 3%'s Points &7has been set to &e%arg 2%&7." to player
  312. else:
  313. send "&8» &&7Please set a &ePlayer&7."
  314. else:
  315. send "&8» &7Please set a number of &ePoints&7"
  316.  
  317. command /gstats [<offlineplayer>]:
  318. permission: stats.gui
  319. permission message: {@nopermission}
  320. trigger:
  321. if arg 1 is not set:
  322. open chest with 1 row named "&8» &eStats &7from &6%player%" to player
  323. format slot 4 of player with 1 iron block named "&8» &ePlayer&8: &7%player%" with lore "&8» &eStatus&8: &7%{status.%player%}%" to be unstealable
  324. format slot 0 of player with 1 iron sword named "&8» &eKills&8: &7%{kills.%player%}%" to be unstealable
  325. format slot 1 of player with 1 black window glass named "&8" to be unstealable
  326. format slot 3 of player with 1 black window glass named "&8" to be unstealable
  327. format slot 5 of player with 1 black window glass named "&8" to be unstealable
  328. format slot 7 of player with 1 black window glass named "&8" to be unstealable
  329. format slot 2 of player with 1 fire charge named "&8» &eDeaths&8: &7%{deaths.%player%}%" to be unstealable
  330. format slot 6 of player with 1 ender pearl named "&8» &ePoints&8: &7%{points.%player%}%" to be unstealable
  331. format slot 8 of player with 1 crafting table named "&8» &eJoins&8: &7%{joins.%player%}%" to be unstealable
  332. if arg 1 is set:
  333. open chest with 1 row named "&8» &eStats &7from &6%arg 1%" to player
  334. format slot 4 of player with 1 iron block named "&8» &ePlayer&8: &7%arg 1%" with lore "&8» &eStatus&8: &7%{status.%arg 1%}%" to be unstealable
  335. format slot 0 of player with 1 iron sword named "&8» &eKills&8: &7%{kills.%arg 1%}%" to be unstealable
  336. format slot 1 of player with 1 black window glass named "&8" to be unstealable
  337. format slot 3 of player with 1 black window glass named "&8" to be unstealable
  338. format slot 5 of player with 1 black window glass named "&8" to be unstealable
  339. format slot 7 of player with 1 black window glass named "&8" to be unstealable
  340. format slot 2 of player with 1 fire charge named "&8» &eDeaths&8: &7%{deaths.%arg 1%}%" to be unstealable
  341. format slot 6 of player with 1 ender pearl named "&8» &ePoints&8: &7%{points.%arg 1%}%" to be unstealable
  342. format slot 8 of player with 1 crafting table named "&8» &eJoins&8: &7%{joins.%arg 1%}%" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment