Advertisement
Guest User

buy

a guest
Nov 20th, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. command /buy:
  2.  
  3. aliases: buycraft
  4.  
  5. trigger:
  6. wait 3 ticks
  7. open chest with 6 rows named "&eBuy&6Craft &c&l-> &eMenu" to player
  8.  
  9.  
  10. Format slot 50 of player with glowing paper named "&aLavet af WhySoShy" to close
  11. Format slot 49 of player with skull of player named "&3Du har" with lore "&3%{shards::%uuid of player%}% &bShards" to be unstealable
  12. Format slot 48 of player with glowing paper named "&aLavet af WhySoShy" to close
  13.  
  14. format slot 11 of player with Wooden sword named "&6Kits" with lore "&7Åben og se:||||&7Adgang til - &f&oKit Gambler||&7Adgang til - &f&oKit Miner" to close then run [make player execute command "buykits"]
  15. format slot 15 of player with 299 named "&6Ranks" with lore "&7Åben og se:||||&7Rank - &f&oRolex||&7Rank - &f&oPPF||&7Rank - &f&oSupreme||&7Rank - &f&oGucci" to close then run [Make player execute command "buyranks"]
  16. format slot 42 of player with string named "&6Permissions" with lore "&7Åben og se:||||&7Permission - &f&o/Eat||&7Permission - &f&o/Craft" to close then run [Make player execute command "buyperms"]
  17. format slot 38 of player with 383:95 named "&6Pets" with lore "&7Åben og se:||||&7Pet - &f&oBaby Ulv||&7Pet - &f&oBaby Gris" to close then run [make player execute command "buypets"]
  18.  
  19. format slot 22 of player with glowing 324 named "&6VIP celler" with lore "&7Åben og se:||||&7Celle - &f&oVIP Celle" to close then run [make player execute command "buyvip"]
  20. format slot 31 of player with glowing 409 named "&3Shards" with lore "&7Åben og se:||||&3Shard køb" to close then run [make player execute command "buyshard"]
  21.  
  22.  
  23. command /buyranks:
  24. trigger:
  25. wait 3 ticks
  26. open chest with 6 rows named "&eBuy&6Craft &c&l-> &eRanks" to player
  27. format slot 11 of player with 42 named "&eGucci" to close
  28. format slot 15 of player with 41 named "&cSupreme" to close
  29. format slot 42 of player with Glowing Obsidian named "&cRolex" to close
  30. format slot 38 of player with 57 named "&aP&2P&aF" to close
  31. format slot 53 of player with glowing 166 named "&cTilbage" to close then run [make player execute command "/buy"]
  32.  
  33. command /buyperms:
  34. trigger:
  35. wait 3 ticks
  36. open chest with 6 rows named "&eBuy&6Craft &c&l-> &ePermissions" to player
  37. format slot 11 of player with Glowing 381 named "&7Night Vision" to close
  38. format slot 15 of player with 58 named "&6Craft" to close
  39. format slot 42 of player with steak named "&eEat" to close
  40. format slot 38 of player with Glowing 421 named "&7Nick&8Name" to close
  41. format slot 53 of player with glowing 166 named "&cTilbage" to close then run [make player execute command "/buy"]
  42.  
  43.  
  44. command /buypets:
  45. trigger:
  46. wait 3 ticks
  47. open chest with 6 rows named "&eBuy&6Craft &c&l-> &ePets" to player
  48. format slot 11 of player glowing 383:95 named "&7Baby Ulv" to close
  49. format slot 15 of player glowing 383:90 named "&7Baby Gris" to close
  50. format slot 42 of player with 383:98 named "&7Ocelot" to close
  51. format slot 38 of player with 383:92 named "&7Baby Ko"
  52. format slot 53 of player with glowing 166 named "&cTilbage" to close then run [make player execute command "/buy"]
  53.  
  54.  
  55. command /buyvip:
  56. trigger:
  57. wait 3 ticks
  58. open chest with 6 rows named "&eBuy&6Craft &c&l-> &eVIP Celler" to player
  59. format slot 11 of player with glowing 324 named "&6VIP Celle" to close
  60. format slot 53 of player with glowing 166 named "&cTilbage" to close then run [make player execute command "/buy"]
  61.  
  62.  
  63.  
  64. command /buykits:
  65. trigger:
  66. wait 3 ticks
  67. open chest with 6 rows named "&eBuy&6Craft &c&l-> &eKits" to player
  68. format slot 11 of player with 268 named "&7" to close
  69. format slot 15 of player with 272 named "&7" to close
  70. format slot 42 of player with 276 named "&7" to close
  71. format slot 38 of player with glowing 283 named "&7" to close
  72. format slot 53 of player with glowing 166 named "&cTilbage" to close then run [make player execute command "/buy"]
  73.  
  74.  
  75. Command /buyshard:
  76. trigger:
  77. if {antalshards::%uuid of player%} is not set:
  78. set {antalshards::%uuid of player%} to 0
  79. open chest inventory with 6 rows named "&eBuy&6Craft &c&l-> &eShards!" to player
  80. wait 3 ticks
  81. set slot 10 of player's current inventory to 409 named "&f+250"
  82. set slot 11 of player's current inventory to 409 named "&f+1000"
  83. set slot 12 of player's current inventory to 409 named "&f+5000"
  84. set slot 14 of player's current inventory to 409 named "&f-250"
  85. set slot 15 of player's current inventory to 409 named "&f-1000"
  86. set slot 16 of player's current inventory to 409 named "&f-5000"
  87. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  88. set slot 40 of player's current inventory to nether star named "&7Købs betingelser"
  89.  
  90. On inventory click:
  91. if name of player's current inventory == "&eTEST!":
  92. cancel event
  93. if clicked slot = 10:
  94. if name of clicked slot = "&f+250":
  95. add 250 to {antalshards::%uuid of player%}
  96. send "&aDu addede &b250 &3Shards"
  97. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  98. if clicked slot = 11:
  99. if name of clicked slot = "&f+1000":
  100. add 1000 to {antalshards::%uuid of player%}
  101. send "&aDu addede &b1000 &3Shards"
  102. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  103. if clicked slot = 12:
  104. if name of clicked slot = "&f+5000":
  105. add 5000 to {antalshards::%uuid of player%}
  106. send "&aDu addede &b5000 &3Shards"
  107. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  108. if clicked slot = 14:
  109. if name of clicked slot = "&f-250":
  110. if {antalshards::%uuid of player%} is more than or equal to 250:
  111. remove 250 from {antalshards::%uuid of player%}
  112. send "&aDu fjernede &b250 &3Shards"
  113. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  114. if clicked slot = 15:
  115. if name of clicked slot = "&f-1000":
  116. if {antalshards::%uuid of player%} is more than or equal to 1000:
  117. remove 1000 from {antalshards::%uuid of player%}
  118. send "&aDu fjernede &b1000 &3Shards"
  119. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
  120. if clicked slot = 16:
  121. if name of clicked slot = "&f-5000":
  122. if {antalshards::%uuid of player%} is more than or equal to 5000:
  123. remove 5000 from {antalshards::%uuid of player%}
  124. send "&aDu fjernede &b5000 &3Shards"
  125. set slot 22 of player's current inventory to shiny 409 named "&bShards valgt:" with lore "%{antalshards::%uuid of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement