Advertisement
Vitusverden

code

Feb 25th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. on first join:
  2. loop 5 times:
  3. set {buyed.%player%.prot%loop-number%} to false
  4. set {buyed.%player%.lhelmet} to true
  5. set {buyed.%player%.chelmet} to false
  6. set {buyed.%player%.ihelmet} to false
  7. set {buyed.%player%.dhelmet} to false
  8. set {buyed.%player%.lchest} to true
  9. set {buyed.%player%.cchest} to false
  10. set {buyed.%player%.ichest} to false
  11. set {buyed.%player%.dchest} to false
  12. set {buyed.%player%.lleg} to true
  13. set {buyed.%player%.cleg} to false
  14. set {buyed.%player%.ileg} to false
  15. set {buyed.%player%.dleg} to false
  16. set {buyed.%player%.lleg} to true
  17. set {buyed.%player%.cleg} to false
  18. set {buyed.%player%.ileg} to false
  19. set {buyed.%player%.dleg} to false
  20.  
  21. command /kitbuy <text>:
  22. trigger:
  23. send "Ikke færdigt"
  24.  
  25.  
  26. command /test:
  27. trigger:
  28. open virtual chest inventory with size 5 named "Patrick" to player
  29. #Protection
  30. if {buyed.%player%.prot1} is false:
  31. format gui slot 0 of 403 with lore "Protection 1" to do nothing then run player command "kitbuy prot1" to player
  32. else:
  33. format gui slot 0 of 166 to do nothing to player
  34. if {buyed.%player%.prot2} is false:
  35. format gui slot 1 of player with 403 with lore "Protection 2" to do nothing then run player command "kitbuy prot2" to player
  36. else:
  37. format gui slot 1 of 166 to do nothing to player
  38. if {buyed.%player%.prot3} is false:
  39. format gui slot 2 of 403 with lore "Protection 3" to do nothing then run player command "kitbuy prot3" to player
  40. else:
  41. format gui slot 2 of 166 to do nothing to player
  42. if {buyed.%player%.prot4} is false:
  43. format gui slot 3 of 403 with lore "Protection 4" to do nothing then run player command "kitbuy prot4" to player
  44. else:
  45. format gui slot 3 of 166 to do nothing to player
  46. if {buyed.%player%.prot5} is false:
  47. format gui slot 4 of 403 with lore "Protection 5" to do nothing then run player command "kitbuy prot5" to player
  48. else:
  49. format gui slot 4 of 166 to do nothing to player
  50. #Helmet
  51. if {buyed.%player%.lhelmet} is false:
  52. format gui slot 9 of 298 to do nothing then run player command "kitbuy lhelmet" to player
  53. else:
  54. format gui slot 9 of 166 to do nothing to player
  55. if {buyed.%player%.chelmet} is false:
  56. format gui slot 10 of 302 to do nothing then run player command "kitbuy chelmet" to player
  57. else:
  58. format gui slot 10 of 166 to do nothing to player
  59. if {buyed.%player%.ihelmet} is false:
  60. format gui slot 11 of 306 to do nothing then run player command "kitbuy ihelmet" to player
  61. else:
  62. format gui slot 11 of 166 to do nothing to player
  63. if {buyed.%player%.dhelmet} is false:
  64. format gui slot 12 of 310 to do nothing then run player command "kitbuy dhelmet" to player
  65. else:
  66. format gui slot 12 of 166 to do nothing to player
  67. if {buyed.%player%.lchest} is false:
  68. format gui slot 18 of 299 to do nothing then run player command "kitbuy lchest" to player
  69. else:
  70. format gui slot 18 of 166 to do nothing to player
  71. if {buyed.%player%.cchest} is false:
  72. format gui slot 19 of 303 to do nothing then run player command "kitbuy cchest" to player
  73. else:
  74. format gui slot 19 of 166 to do nothing to player
  75. if {buyed.%player%.ichest} is false:
  76. format gui slot 20 of 307 to do nothing then run player command "kitbuy ichest" to player
  77. else:
  78. format gui slot 20 of 166 to do nothing to player
  79. if {buyed.%player%.dchest} is false:
  80. format gui slot 21 of 311 to do nothing then run player command "kitbuy dchest" to player
  81. else:
  82. format gui slot 21 of 166 to do nothing to player
  83. #leg
  84. if {buyed.%player%.lleg} is false:
  85. format gui slot 27 of 300 to do nothing then run player command "kitbuy lleg" to player
  86. else:
  87. format gui slot 27 of 166 to do nothing to player
  88. if {buyed.%player%.cleg} is false:
  89. format gui slot 28 of 304 to do nothing then run player command "kitbuy cleg" to player
  90. else:
  91. format gui slot 28 of 166 to do nothing to player
  92. if {buyed.%player%.ileg} is false:
  93. format gui slot 29 of 308 to do nothing then run player command "kitbuy ileg" to player
  94. else:
  95. format gui slot 29 of 166 to do nothing to player
  96. if {buyed.%player%.dleg} is false:
  97. format gui slot 30 of 312 to do nothing then run player command "kitbuy dleg" to player
  98. else:
  99. format gui slot 30 of 166 to do nothing to player
  100. #shoe
  101. if {buyed.%player%.lshoe} is false:
  102. format gui slot 28 of 300 to do nothing then run player command "kitbuy lshoe" to player
  103. else:
  104. format gui slot 28 of 166 to do nothing to player
  105. if {buyed.%player%.cshoe} is false:
  106. format gui slot 29 of 304 to do nothing then run player command "kitbuy cshoe" to player
  107. else:
  108. format gui slot 29 of 166 to do nothing to player
  109. if {buyed.%player%.ishoe} is false:
  110. format gui slot 30 of 308 to do nothing then run player command "kitbuy ishoe" to player
  111. else:
  112. format gui slot 30 of 166 to do nothing to player
  113. if {buyed.%player%.dshoe} is false:
  114. format gui slot 31 of 312 to do nothing then run player command "kitbuy dshoe" to player
  115. else:
  116. format gui slot 31 of 166 to do nothing to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement