ItzNic_

EzShopper [SKRIPT]

Mar 21st, 2020 (edited)
1,276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.36 KB | None | 0 0
  1. EZSHOPPER - The name is a work in progress :/
  2.  
  3. Hey there skripter! Thanks for checking out my skript. You're currently using the Alpha version of the EzShopper skript. Thank you so much for helping me test out this huge skript. I hope you're enjoy it as much as I enjoyed making it. Please don't copy this and sell it, as it took hours to make, aswell as a lot of skill and dedication. Feel free to share this with others, or make a youtube video explaining how to use it. I'd be happy to check it out *and maybe subscribe*! I hope you have fun, and can't wait to see what you create! If you encounter any issues or unexpected errors, feel free to contact me on discord @Nic_#8692. Please remember this is an early alpha version of EzShopper so many bugs, aswell as hard labor is expected. In the full release, everything will be through commands. Meaning you won't have to edit a single thing! Once again, thank you lovely person for helping out! I honestly can't thank you enough.
  4.  
  5. Thanks,
  6. Nic
  7.  
  8. SKRIPT IS BELOW - ONLY COPY CONTENT AFTER THIS LINE - PLEASE DO NOT REMOVE CREDITS - PLEASE - :(
  9.  
  10.  
  11. ##################
  12.  
  13. UPDATE (2021) - I do not know what plugins this skript uses! It may not even work at all. Use at your own discretion. I have no intentions of updating this skript. If you're interested in an easily customizable shopping skript please see: https://shop.minehut.com/products/custom-shops
  14.  
  15. ##################
  16.  
  17. # ----------------------------------------------------------------------------------------------------------------------------------------------------------------------#
  18. # Made By ItzNic_ - Copying is stupid, dumb, and if you do copy this. You are a terrible person and deserve to be banned from all of Skript - Have a good day :') #
  19. # This is not protected by a license, but I'm working on it. #
  20. # ----------------------------------------------------------------------------------------------------------------------------------------------------------------------#
  21.  
  22. #Skript made by ItzNic_. Anyone who is selling this skript is a fake re-seller. This skript is free and made to be free. Use it as you wish. Please keep credit, as I spent a really long time making this. Feel free to give yourself credit for using :)
  23. variables:
  24. {shopname} = "&6&lSHOP"
  25. {cat1name} = "&cCategory 1"
  26. {cat2name} = "&cCategory 2"
  27. {cat3name} = "&cCategory 3"
  28. {cat4name} = "&cCategory 4"
  29. {cat5name} = "&cCategory 5"
  30. {shoplayout} = 1
  31.  
  32. command /shop:
  33. trigger:
  34.  
  35. #Layout 1
  36. if {shoplayout} is 1:
  37. open virtual chest inventory with size 3 named "%{shopname}%" to player
  38. format gui slot 0 of player with gray stained glass pane named " "
  39. format gui slot 1 of player with gray stained glass pane named " "
  40. format gui slot 2 of player with gray stained glass pane named " "
  41. format gui slot 3 of player with gray stained glass pane named " "
  42. format gui slot 4 of player with gray stained glass pane named " "
  43. format gui slot 5 of player with gray stained glass pane named " "
  44. format gui slot 6 of player with gray stained glass pane named " "
  45. format gui slot 7 of player with gray stained glass pane named " "
  46. format gui slot 8 of player with gray stained glass pane named " "
  47. format gui slot 9 of player with gray stained glass pane named " "
  48. format gui slot 10 of player with gray stained glass pane named " "
  49. format gui slot 11 of player with bedrock named "%{cat1name}%" to close:
  50. make player say "/shopcat1"
  51. format gui slot 12 of player with gray stained glass pane named " "
  52. format gui slot 13 of player with bedrock named "%{cat2name}%" to close:
  53. make player say "/shopcat2"
  54. format gui slot 14 of player with gray stained glass pane named " "
  55. format gui slot 16 of player with gray stained glass pane named " "
  56. format gui slot 15 of player with bedrock named "%{cat3name}%" to close:
  57. make player say "/shopcat3"
  58. format gui slot 17 of player with gray stained glass pane named " "
  59. format gui slot 18 of player with gray stained glass pane named " "
  60. format gui slot 19 of player with gray stained glass pane named " "
  61. format gui slot 20 of player with gray stained glass pane named " "
  62. format gui slot 21 of player with gray stained glass pane named " "
  63. format gui slot 22 of player with gray stained glass pane named " "
  64. format gui slot 23 of player with gray stained glass pane named " "
  65. format gui slot 24 of player with gray stained glass pane named " "
  66. format gui slot 25 of player with gray stained glass pane named " "
  67. format gui slot 26 of player with gray stained glass pane named " "
  68. format gui slot 27 of player with gray stained glass pane named " "
  69.  
  70. #Layout 2
  71. if {shoplayout} is 2:
  72. open virtual chest inventory with size 3 named "%{shopname}%" to player
  73. format gui slot 0 of player with gray stained glass pane named " "
  74. format gui slot 1 of player with gray stained glass pane named " "
  75. format gui slot 2 of player with gray stained glass pane named " "
  76. format gui slot 3 of player with gray stained glass pane named " "
  77. format gui slot 4 of player with gray stained glass pane named " "
  78. format gui slot 5 of player with gray stained glass pane named " "
  79. format gui slot 6 of player with gray stained glass pane named " "
  80. format gui slot 7 of player with gray stained glass pane named " "
  81. format gui slot 8 of player with gray stained glass pane named " "
  82. format gui slot 9 of player with gray stained glass pane named " "
  83. format gui slot 11 of player with gray stained glass pane named " "
  84. format gui slot 10 of player with bedrock named "%{cat1name}%" to close:
  85. make player say "/shopcat1"
  86. format gui slot 13 of player with gray stained glass pane named " "
  87. format gui slot 12 of player with bedrock named "%{cat2name}%" to close:
  88. make player say "/shopcat2"
  89. format gui slot 15 of player with gray stained glass pane named " "
  90. format gui slot 16 of player with bedrock named "%{cat4name}%" to close:
  91. make player say "/shopcat4"
  92. format gui slot 14 of player with bedrock named "%{cat3name}%" to close:
  93. make player say "/shopcat3"
  94. format gui slot 17 of player with gray stained glass pane named " "
  95. format gui slot 18 of player with gray stained glass pane named " "
  96. format gui slot 19 of player with gray stained glass pane named " "
  97. format gui slot 20 of player with gray stained glass pane named " "
  98. format gui slot 21 of player with gray stained glass pane named " "
  99. format gui slot 22 of player with gray stained glass pane named " "
  100. format gui slot 23 of player with gray stained glass pane named " "
  101. format gui slot 24 of player with gray stained glass pane named " "
  102. format gui slot 25 of player with gray stained glass pane named " "
  103. format gui slot 26 of player with gray stained glass pane named " "
  104. format gui slot 27 of player with gray stained glass pane named " "
  105.  
  106. #Layout 3
  107. if {shoplayout} is 3:
  108. open virtual chest inventory with size 3 named "%{shopname}%" to player
  109. format gui slot 0 of player with gray stained glass pane named " "
  110. format gui slot 1 of player with gray stained glass pane named " "
  111. format gui slot 2 of player with gray stained glass pane named " "
  112. format gui slot 3 of player with gray stained glass pane named " "
  113. format gui slot 4 of player with gray stained glass pane named " "
  114. format gui slot 5 of player with gray stained glass pane named " "
  115. format gui slot 6 of player with gray stained glass pane named " "
  116. format gui slot 7 of player with gray stained glass pane named " "
  117. format gui slot 8 of player with gray stained glass pane named " "
  118. format gui slot 9 of player with gray stained glass pane named " "
  119. format gui slot 10 of player with gray stained glass pane named " "
  120. format gui slot 11 of player with bedrock named "%{cat1name}%" to close:
  121. make player say "/shopcat1"
  122. format gui slot 12 of player with bedrock named "%{cat2name}%" to close:
  123. make player say "/shopcat2"
  124. format gui slot 13 of player with bedrock named "%{cat3name}%" to close:
  125. make player say "/shopcat3"
  126. format gui slot 14 of player with bedrock named "%{cat4name}%" to close:
  127. make player say "/shopcat4"
  128. format gui slot 16 of player with gray stained glass pane named " "
  129. format gui slot 15 of player with bedrock named "%{cat5name}%" to close:
  130. make player say "/shopcat5"
  131. format gui slot 17 of player with gray stained glass pane named " "
  132. format gui slot 18 of player with gray stained glass pane named " "
  133. format gui slot 19 of player with gray stained glass pane named " "
  134. format gui slot 20 of player with gray stained glass pane named " "
  135. format gui slot 21 of player with gray stained glass pane named " "
  136. format gui slot 22 of player with gray stained glass pane named " "
  137. format gui slot 23 of player with gray stained glass pane named " "
  138. format gui slot 24 of player with gray stained glass pane named " "
  139. format gui slot 25 of player with gray stained glass pane named " "
  140. format gui slot 26 of player with gray stained glass pane named " "
  141. format gui slot 27 of player with gray stained glass pane named " "
  142. command /shopa <text> [<text>]:
  143. trigger:
  144. if arg-1 is "rename" or "refresh" or "Cat1Name" or "Cat2Name" or "Cat3Name" or "Layout":
  145. if arg-1 is "rename":
  146. if arg-2 is set:
  147. send "&7Set the header of &c/shop&7 to &c%arg-2%&7."
  148. set {shopname} to colored arg-2
  149. stop
  150. else:
  151. send "&cYou did not state what you would like your shop to be renamed to."
  152. stop
  153. if arg-1 is "refresh":
  154. send "&cAll shop instances refreshed."
  155. loop all players:
  156. close loop-player's inventory
  157. stop
  158. # This is all I could find that worked. - All inventories will be closed. :/
  159.  
  160. if arg-1 is "Cat1Name":
  161. if arg-2 is set:
  162. send "&7Set the name of &cCategory 1&7 to colored &c%arg-2%&7."
  163. set {cat1name} to colored arg-2
  164. stop
  165.  
  166. if arg-1 is "Cat2Name":
  167. if arg-2 is set:
  168. send "&7Set the name of &cCategory 2&7 to colored &c%arg-2%&7."
  169. set {cat2name} to colored arg-2
  170. stop
  171.  
  172. if arg-1 is "Cat3Name":
  173. if arg-2 is set:
  174. send "&7Set the name of &cCategory 3&7 to colored &c%arg-2%&7."
  175. set {cat3name} to colored arg-2
  176. stop
  177.  
  178. if arg-1 is "Cat4Name":
  179. if arg-2 is set:
  180. send "&7Set the name of &cCategory 4&7 to colored &c%arg-2%&7."
  181. set {cat4name} to colored arg-2
  182. stop
  183.  
  184. if arg-1 is "Cat5Name":
  185. if arg-2 is set:
  186. send "&7Set the name of &cCategory 5&7 to colored &c%arg-2%&7."
  187. set {cat5name} to colored arg-2
  188. stop
  189.  
  190. if arg-1 is "Layout":
  191. if arg-2 is set:
  192. if arg-2 is "1":
  193. send "&7Set the shop layout to layout &c##1&7. &8(&73 Categories&8)"
  194. set {shoplayout} to 1
  195. stop
  196. if arg-2 is "2":
  197. send "&7Set the shop layout to layout &c##2&7. &8(&74 Categories&8)"
  198. set {shoplayout} to 2
  199. stop
  200. if arg-2 is "3":
  201. send "&7Set the shop layout to layout &c##3&7. &8(&75 Categories&8)"
  202. set {shoplayout} to 3
  203. stop
  204.  
  205. command /shophelp:
  206. trigger:
  207. if player has permission "*":
  208. send " "
  209. send "&c&lSHOP ADMIN HELP"
  210. send "&7Made by &cItzNic_"
  211. send " "
  212. send "&c/shopa rename (Custom Name) &8- &7Renames the shop header."
  213. send "&c/shopa refresh &8- &7Refreshes all open shop instances."
  214. send "&c/shopa Cat1Name (Custom Name) &8- &7Sets the name of the first category."
  215. send "&c/shopa Cat2Name (Custom Name) &8- &7Sets the name of the second category."
  216. send "&c/shopa Cat3Name (Custom Name) &8- &7Sets the name of the third category."
  217. send "&c/shopa Cat4Name (Custom Name) &8- &7Sets the name of the fourth category. &8(&7If applicable&8)"
  218. send "&c/shopa Cat5Name (Custom Name) &8- &7Sets the name of the fifth category. &8(&7If applicable&8)"
  219. send "&c/shopreload &8- &7Reloads the shop skript."
  220. send "&c/shopa Layout (Custom Name) &8- &7Layout 1 &8- &73 Slots in the shop menu &8| &7Layout 2 &8_ &74 Slots in the shop menu &8| Layout 3 &8- &75 Slots in the shop menu &8"
  221. send "&c/shophelp&8- &7brings up this help menu."
  222. send "&7Thanks for using! This skript took multiple hours to create. I hope you enjoy it!"
  223. send " "
  224. stop
  225. else:
  226. send " "
  227. send "&c&lSHOP PLAYER HELP"
  228. send "&7Skript made by &cItzNic_"
  229. send " "
  230. send "&c/shop &8- &7Opens the shop interface."
  231. send "&c/shophelp &8- &7Opens this help menu."
  232. send "&7Thanks for playing! And have a great time."
  233. send " "
  234.  
  235.  
  236. # TUTORIAL #
  237. # How to custom blocks in the shop
  238. #
  239. # This may be challenging if you're not familliar with skript. It make cost a bit of time, but I'll try my hardest to make this fast and easy for everyone :)
  240. #
  241. # Here are some examples. Repalace certain lines in the following skript, or paste the whole thing! If you need assistance, feel free to DM me on discord (@Nic_#8692)
  242. #
  243. # Replace this within any line
  244. # [SLOT] = Slot Number in inventory (for example, slot #5 would be the 6th slot over since slot 0 is technically the first slot)
  245. # [YOUR BLOCK] = The block of your choice. For example, grass block, dirt, oak log. Make sure you use the proper name for the block though!
  246. # [YOUR PRICE HERE] = The amount you want to charge the player. Do not use $ signs in this space. Only use solid numbers such as 10, 20, 5, whatever - There is a cap which I believe is 1Billion
  247. # [BALANCE] = Depending on what plugin you use for your economy, this could vary. If you use Vault + Essentials, put player's balance in the spot.
  248. # If you're using skript for your economy, use {[BALANCE VARIABLE]::%player%}. Replace the [BALANCE VARIABLE] with your variable you use for balance. If you prefer using
  249. # UUID's then use {[BALANCE VARIABLE]::%uuid of player%}
  250. # [AMOUNT OF BLOCK] = This is the amount of the block you want to give the player. For example, change this to 5 if you want to give the player 5 of your block.
  251. # Keep the [SHOP] the same. It's the prefix and makes the message look better. You can change it to whatever you want, like &c[NIC'S SHOP] or &c[SERVER SHOP]
  252. #
  253. # format gui slot [SLOT] of player with [YOUR BLOCK] named "[YOUR BLOCK]" with lore "&7Price&8: &e$[YOUR PRICE HERE]" to run:
  254. # if [BALANCE - If you're using essentials replace this with, "player's balance" (without the quotes)] is greater than or equal to [YOUR PRICE HERE]:
  255. # remove [YOUR PRICE HERE] from player's balance
  256. # give player [AMOUNT OF BLOCK] [YOUR BLOCK]
  257. # send "&c[SHOP] &7Purchased &cx(AMOUNT OF BLOCK) [YOUR BLOCK]&7 from the shop!"
  258. #
  259. # ^ PLEASE READ THE INFO ABOVE BEFORE USING. THANKS!
  260.  
  261.  
  262. command /shopcat1:
  263. trigger:
  264. open virtual chest inventory with size 3 named "%{cat1name}%" to player
  265. format gui slot 0 of player with gray stained glass pane named " "
  266. format gui slot 1 of player with gray stained glass pane named " "
  267. format gui slot 2 of player with gray stained glass pane named " "
  268. format gui slot 3 of player with gray stained glass pane named " "
  269. format gui slot 4 of player with gray stained glass pane named " "
  270. format gui slot 5 of player with gray stained glass pane named " "
  271. format gui slot 6 of player with gray stained glass pane named " "
  272. format gui slot 7 of player with gray stained glass pane named " "
  273. format gui slot 8 of player with gray stained glass pane named " "
  274. format gui slot 9 of player with gray stained glass pane named " "
  275. format gui slot 10 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  276. if player's balance is greater than or equal to 10:
  277. remove 10 from player's balance
  278. give player 5 grass block
  279. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  280. format gui slot 11 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  281. if player's balance is greater than or equal to 10:
  282. remove 10 from player's balance
  283. give player 5 grass block
  284. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  285. format gui slot 12 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  286. if player's balance is greater than or equal to 10:
  287. remove 10 from player's balance
  288. give player 5 grass block
  289. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  290. format gui slot 13 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  291. if player's balance is greater than or equal to 10:
  292. remove 10 from player's balance
  293. give player 5 grass block
  294. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  295. format gui slot 14 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  296. if player's balance is greater than or equal to 10:
  297. remove 10 from player's balance
  298. give player 5 grass block
  299. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  300. format gui slot 15 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  301. if player's balance is greater than or equal to 10:
  302. remove 10 from player's balance
  303. give player 5 grass block
  304. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  305. format gui slot 16 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  306. if player's balance is greater than or equal to 10:
  307. remove 10 from player's balance
  308. give player 5 grass block
  309. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  310. format gui slot 17 of player with gray stained glass pane named " "
  311. format gui slot 18 of player with gray stained glass pane named " "
  312. format gui slot 19 of player with gray stained glass pane named " "
  313. format gui slot 20 of player with gray stained glass pane named " "
  314. format gui slot 21 of player with gray stained glass pane named " "
  315. format gui slot 22 of player with barrier named "&c&lGO BACK TO MAIN MENU" to close:
  316. make player say "/shop"
  317. format gui slot 23 of player with gray stained glass pane named " "
  318. format gui slot 24 of player with gray stained glass pane named " "
  319. format gui slot 25 of player with gray stained glass pane named " "
  320. format gui slot 26 of player with gray stained glass pane named " "
  321. format gui slot 27 of player with gray stained glass pane named " "
  322.  
  323. command /shopcat2:
  324. trigger:
  325. open virtual chest inventory with size 3 named "%{cat2name}%" to player
  326. format gui slot 0 of player with gray stained glass pane named " "
  327. format gui slot 1 of player with gray stained glass pane named " "
  328. format gui slot 2 of player with gray stained glass pane named " "
  329. format gui slot 3 of player with gray stained glass pane named " "
  330. format gui slot 4 of player with gray stained glass pane named " "
  331. format gui slot 5 of player with gray stained glass pane named " "
  332. format gui slot 6 of player with gray stained glass pane named " "
  333. format gui slot 7 of player with gray stained glass pane named " "
  334. format gui slot 8 of player with gray stained glass pane named " "
  335. format gui slot 9 of player with gray stained glass pane named " "
  336. format gui slot 10 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  337. if player's balance is greater than or equal to 10:
  338. remove 10 from player's balance
  339. give player 5 grass block
  340. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  341. format gui slot 11 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  342. if player's balance is greater than or equal to 10:
  343. remove 10 from player's balance
  344. give player 5 grass block
  345. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  346. format gui slot 12 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  347. if player's balance is greater than or equal to 10:
  348. remove 10 from player's balance
  349. give player 5 grass block
  350. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  351. format gui slot 13 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  352. if player's balance is greater than or equal to 10:
  353. remove 10 from player's balance
  354. give player 5 grass block
  355. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  356. format gui slot 14 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  357. if player's balance is greater than or equal to 10:
  358. remove 10 from player's balance
  359. give player 5 grass block
  360. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  361. format gui slot 15 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  362. if player's balance is greater than or equal to 10:
  363. remove 10 from player's balance
  364. give player 5 grass block
  365. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  366. format gui slot 16 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  367. if player's balance is greater than or equal to 10:
  368. remove 10 from player's balance
  369. give player 5 grass block
  370. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  371. format gui slot 17 of player with gray stained glass pane named " "
  372. format gui slot 18 of player with gray stained glass pane named " "
  373. format gui slot 19 of player with gray stained glass pane named " "
  374. format gui slot 20 of player with gray stained glass pane named " "
  375. format gui slot 21 of player with gray stained glass pane named " "
  376. format gui slot 22 of player with barrier named "&c&lGO BACK TO MAIN MENU" to close:
  377. make player say "/shop"
  378. format gui slot 23 of player with gray stained glass pane named " "
  379. format gui slot 24 of player with gray stained glass pane named " "
  380. format gui slot 25 of player with gray stained glass pane named " "
  381. format gui slot 26 of player with gray stained glass pane named " "
  382. format gui slot 27 of player with gray stained glass pane named " "
  383.  
  384. command /shopcat3:
  385. trigger:
  386. open virtual chest inventory with size 3 named "%{cat3name}%" to player
  387. format gui slot 0 of player with gray stained glass pane named " "
  388. format gui slot 1 of player with gray stained glass pane named " "
  389. format gui slot 2 of player with gray stained glass pane named " "
  390. format gui slot 3 of player with gray stained glass pane named " "
  391. format gui slot 4 of player with gray stained glass pane named " "
  392. format gui slot 5 of player with gray stained glass pane named " "
  393. format gui slot 6 of player with gray stained glass pane named " "
  394. format gui slot 7 of player with gray stained glass pane named " "
  395. format gui slot 8 of player with gray stained glass pane named " "
  396. format gui slot 9 of player with gray stained glass pane named " "
  397. format gui slot 10 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  398. if player's balance is greater than or equal to 10:
  399. remove 10 from player's balance
  400. give player 5 grass block
  401. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  402. format gui slot 11 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  403. if player's balance is greater than or equal to 10:
  404. remove 10 from player's balance
  405. give player 5 grass block
  406. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  407. format gui slot 12 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  408. if player's balance is greater than or equal to 10:
  409. remove 10 from player's balance
  410. give player 5 grass block
  411. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  412. format gui slot 13 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  413. if player's balance is greater than or equal to 10:
  414. remove 10 from player's balance
  415. give player 5 grass block
  416. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  417. format gui slot 14 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  418. if player's balance is greater than or equal to 10:
  419. remove 10 from player's balance
  420. give player 5 grass block
  421. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  422. format gui slot 15 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  423. if player's balance is greater than or equal to 10:
  424. remove 10 from player's balance
  425. give player 5 grass block
  426. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  427. format gui slot 16 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  428. if player's balance is greater than or equal to 10:
  429. remove 10 from player's balance
  430. give player 5 grass block
  431. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  432. format gui slot 17 of player with gray stained glass pane named " "
  433. format gui slot 18 of player with gray stained glass pane named " "
  434. format gui slot 19 of player with gray stained glass pane named " "
  435. format gui slot 20 of player with gray stained glass pane named " "
  436. format gui slot 21 of player with gray stained glass pane named " "
  437. format gui slot 22 of player with barrier named "&c&lGO BACK TO MAIN MENU" to close:
  438. make player say "/shop"
  439. format gui slot 23 of player with gray stained glass pane named " "
  440. format gui slot 24 of player with gray stained glass pane named " "
  441. format gui slot 25 of player with gray stained glass pane named " "
  442. format gui slot 26 of player with gray stained glass pane named " "
  443. format gui slot 27 of player with gray stained glass pane named " "
  444.  
  445. command /shopcat4:
  446. trigger:
  447. open virtual chest inventory with size 3 named "%{cat4name}%" to player
  448. format gui slot 0 of player with gray stained glass pane named " "
  449. format gui slot 1 of player with gray stained glass pane named " "
  450. format gui slot 2 of player with gray stained glass pane named " "
  451. format gui slot 3 of player with gray stained glass pane named " "
  452. format gui slot 4 of player with gray stained glass pane named " "
  453. format gui slot 5 of player with gray stained glass pane named " "
  454. format gui slot 6 of player with gray stained glass pane named " "
  455. format gui slot 7 of player with gray stained glass pane named " "
  456. format gui slot 8 of player with gray stained glass pane named " "
  457. format gui slot 9 of player with gray stained glass pane named " "
  458. format gui slot 10 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  459. if player's balance is greater than or equal to 10:
  460. remove 10 from player's balance
  461. give player 5 grass block
  462. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  463. format gui slot 11 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  464. if player's balance is greater than or equal to 10:
  465. remove 10 from player's balance
  466. give player 5 grass block
  467. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  468. format gui slot 12 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  469. if player's balance is greater than or equal to 10:
  470. remove 10 from player's balance
  471. give player 5 grass block
  472. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  473. format gui slot 13 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  474. if player's balance is greater than or equal to 10:
  475. remove 10 from player's balance
  476. give player 5 grass block
  477. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  478. format gui slot 14 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  479. if player's balance is greater than or equal to 10:
  480. remove 10 from player's balance
  481. give player 5 grass block
  482. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  483. format gui slot 15 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  484. if player's balance is greater than or equal to 10:
  485. remove 10 from player's balance
  486. give player 5 grass block
  487. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  488. format gui slot 16 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  489. if player's balance is greater than or equal to 10:
  490. remove 10 from player's balance
  491. give player 5 grass block
  492. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  493. format gui slot 17 of player with gray stained glass pane named " "
  494. format gui slot 18 of player with gray stained glass pane named " "
  495. format gui slot 19 of player with gray stained glass pane named " "
  496. format gui slot 20 of player with gray stained glass pane named " "
  497. format gui slot 21 of player with gray stained glass pane named " "
  498. format gui slot 22 of player with barrier named "&c&lGO BACK TO MAIN MENU" to close:
  499. make player say "/shop"
  500. format gui slot 23 of player with gray stained glass pane named " "
  501. format gui slot 24 of player with gray stained glass pane named " "
  502. format gui slot 25 of player with gray stained glass pane named " "
  503. format gui slot 26 of player with gray stained glass pane named " "
  504. format gui slot 27 of player with gray stained glass pane named " "
  505.  
  506. command /shopcat5:
  507. trigger:
  508. open virtual chest inventory with size 3 named "%{cat5name}%" to player
  509. format gui slot 0 of player with gray stained glass pane named " "
  510. format gui slot 1 of player with gray stained glass pane named " "
  511. format gui slot 2 of player with gray stained glass pane named " "
  512. format gui slot 3 of player with gray stained glass pane named " "
  513. format gui slot 4 of player with gray stained glass pane named " "
  514. format gui slot 5 of player with gray stained glass pane named " "
  515. format gui slot 6 of player with gray stained glass pane named " "
  516. format gui slot 7 of player with gray stained glass pane named " "
  517. format gui slot 8 of player with gray stained glass pane named " "
  518. format gui slot 9 of player with gray stained glass pane named " "
  519. format gui slot 10 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  520. if player's balance is greater than or equal to 10:
  521. remove 10 from player's balance
  522. give player 5 grass block
  523. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  524. format gui slot 11 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  525. if player's balance is greater than or equal to 10:
  526. remove 10 from player's balance
  527. give player 5 grass block
  528. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  529. format gui slot 12 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  530. if player's balance is greater than or equal to 10:
  531. remove 10 from player's balance
  532. give player 5 grass block
  533. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  534. format gui slot 13 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  535. if player's balance is greater than or equal to 10:
  536. remove 10 from player's balance
  537. give player 5 grass block
  538. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  539. format gui slot 14 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  540. if player's balance is greater than or equal to 10:
  541. remove 10 from player's balance
  542. give player 5 grass block
  543. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  544. format gui slot 15 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  545. if player's balance is greater than or equal to 10:
  546. remove 10 from player's balance
  547. give player 5 grass block
  548. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  549. format gui slot 16 of player with grass block named "&e&lEXAMPLE &8(&7Please look at the skript file for further help)" with lore "&7Price&8: &e$10" to run:
  550. if player's balance is greater than or equal to 10:
  551. remove 10 from player's balance
  552. give player 5 grass block
  553. send "&c[SHOP] &7Purchased &cx5 Grass Block&7 from the shop!"
  554. format gui slot 17 of player with gray stained glass pane named " "
  555. format gui slot 18 of player with gray stained glass pane named " "
  556. format gui slot 19 of player with gray stained glass pane named " "
  557. format gui slot 20 of player with gray stained glass pane named " "
  558. format gui slot 21 of player with gray stained glass pane named " "
  559. format gui slot 22 of player with barrier named "&c&lGO BACK TO MAIN MENU" to close:
  560. make player say "/shop"
  561. format gui slot 23 of player with gray stained glass pane named " "
  562. format gui slot 24 of player with gray stained glass pane named " "
  563. format gui slot 25 of player with gray stained glass pane named " "
  564. format gui slot 26 of player with gray stained glass pane named " "
  565. format gui slot 27 of player with gray stained glass pane named " "
  566.  
  567. command /shopreload:
  568. permission: *
  569. permission message: &cYou can not run this command.
  570. trigger:
  571. send "&cPlease make sure your shop skript is named ""shop.sk"" or the skript will not reload."
  572. console command "/sk reload shop.sk"
  573. console command "/sk reload shoptest.sk"
  574. console command "/sk reload mcshop.sk"
  575. console command "/sk reload testshop.sk"
  576. console command "/sk reload testingskripts.sk"
  577. console command "/sk reload shopmh.sk"
  578. console command "/sk reload mhshop.sk"
  579. send "&cIf your shop skript was saved under ""shop.sk"" it has been saved & reloaded."
  580.  
  581. # ----------------------------------------------------------------------------------------------------------------------------------------------------------------------#
  582. # Made By ItzNic_ - Copying is stupid, dumb, and if you do copy this. You are a terrible person and deserve to be banned from all of Skript - Have a good day :') #
  583. # This is not protected by a license, but I'm working on it. #
  584. # ----------------------------------------------------------------------------------------------------------------------------------------------------------------------#
Add Comment
Please, Sign In to add comment