Zeldaboy111

Skript #124

Mar 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.93 KB | None | 0 0
  1. #Functies:
  2. # baanGui, baanCheckAdd
  3.  
  4. options:
  5. {mn::baan::%loop-player%::houthakker::level} = {mn::baan::%{_p}%::houthakker::level}
  6. {mn::baan::%loop-player%::miner::level} = {mn::baan::%{_p}%::miner::level}
  7. {mn::baan::%loop-player%::bouwer::level} = {mn::baan::%{_p}%::bouwer::level}
  8.  
  9. function baanGui(p: player, page: string):
  10. if {_page} is "1":
  11.  
  12. open chest with 6 rows named "&3&lBaan" to {_p}
  13.  
  14. if {mn::baan::%{_p}%::houthakker} is true:
  15. format slot 10 of {_p} with a wooden axe named "&2Houthakker" with lore "&aGekozen" to be unstealable
  16.  
  17. else:
  18. make a gui slot 10 of {_p} with a wooden axe named "&2Houthakker" with lore "&aUnlocked" to run function baanGui({_p}, "houthakker")
  19.  
  20. if {mn::baan::%{_p}%::miner} is true:
  21. format slot 12 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aGekozen" to be unstealable
  22.  
  23. else:
  24. make a gui slot 12 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aUnlocked" to run function baanGui({_p}, "miner")
  25.  
  26.  
  27.  
  28. if {mn::baan::%{_p}%::bouwer} is true:
  29. format slot 14 of {_p} with brick block named "&2Bouwer" with lore "&aGekozen" to be unstealable
  30.  
  31. else:
  32. make gui slot 14 of {_p} with brick block named "&2Bouwer" with lore "&aUnlocked" to run function baanGui({_p}, "bouwer")
  33.  
  34. if {mn::baan::%{_p}%::farmer} is true:
  35. format slot 16 of {_p} with a wooden hoe named "&2Farmer" with lore "&aGekozen" to be unstealable
  36.  
  37. else:
  38. make gui slot 16 of {_p} with a wooden hoe named "&2Farmer" with lore "&aUnlocked" to run function baanGui({_p}, "farmer")
  39.  
  40. if {mn::baan::%{_p}%::soldaat} is true:
  41. format slot 28 of {_p} with a iron sword named "&2Soldaat" with lore "&aGekozen" to be unstealable
  42.  
  43. else:
  44. make gui slot 28 of {_p} with a iron sword named "&2Soldaat" with lore "&aUnlocked" to run function baanGui({_p}, "soldaat")
  45.  
  46. if {mn::baan::%{_p}%::smid} is true:
  47. format slot 30 of {_p} with an anvil named "&2Smid" with lore "&aGekozen" to be unstealable
  48.  
  49. else:
  50. make gui slot 30 of {_p} with an anvil named "&2Smid" with lore "&aUnlocked" to run function baanGui({_p}, "smid")
  51.  
  52. if {mn::baan::%{_p}%::enchanter} is true:
  53. format slot 32 of {_p} with an enchantment table named "&2Enchanter" with lore "&aGekozen" to be unstealable
  54.  
  55. else:
  56. make gui slot 32 of {_p} with an enchantment table named "&2Enchanter" with lore "&aUnlocked" to run function baanGui({_p}, "enchanter")
  57.  
  58. if {mn::baan::%{_p}%::ontdekkingsreiziger} is true:
  59. format slot 34 of {_p} with a compass named "&2Ontdekkingsreiziger" with lore "&aGekozen" to be unstealable
  60.  
  61. else:
  62. make gui slot 34 of {_p} with a compass named "&2Ontdekkingsreiziger" with lore "&aUnlocked" to run function baanGui({_p}, "ontdekkingsreiziger")
  63.  
  64. format slot 49 of {_p} with a barrier named "&4Sluit het menu" to close
  65.  
  66.  
  67. if {_page} is "houthakker":
  68. open chest with 5 rows named "&3Houthakker" to {_p}
  69.  
  70. if {mn::baan::%{_p}%::houthakker} is true:
  71. format slot 13 of {_p} with a wooden axe named "&2Houthakker" with lore "&aGekozen" to be unstealable
  72. else:
  73. wait 3 ticks
  74. make gui slot 13 of {_p} with a wooden axe named "&2Houthakker" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "houthakker")
  75.  
  76. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::houthakker::level}%" to be unstealable
  77.  
  78.  
  79. if {_page} is "miner":
  80. open chest with 5 rows named "&3Miner" to {_p}
  81.  
  82. if {mn::baan::%{_p}%::miner} is true:
  83. format slot 13 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aGekozen" to be unstealable
  84. else:
  85. wait 3 ticks
  86. make gui slot 13 of {_p} with a wooden pickaxe named "&2Miner" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "miner")
  87.  
  88. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::miner::level}%" to be unstealable
  89.  
  90. if {_page} is "bouwer":
  91. open chest with 5 rows named "&3Bouwer" to {_p}
  92.  
  93. if {mn::baan::%{_p}%::bouwer} is true:
  94. format slot 13 of {_p} with a brick block named "&2Bouwer" with lore "&aGekozen" to be unstealable
  95. else:
  96. wait 3 ticks
  97. make gui slot 13 of {_p} with a brick block named "&2Bouwer" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "bouwer")
  98.  
  99. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::bouwer::level}%" to be unstealable
  100.  
  101. if {_page} is "farmer":
  102. open chest with 5 rows named "&3Farmer" to {_p}
  103.  
  104. if {mn::baan::%{_p}%::farmer} is true:
  105. format slot 13 of {_p} with a wooden hoe named "&2Farmer" with lore "&aGekozen" to be unstealable
  106. else:
  107. wait 3 ticks
  108. make gui slot 13 of {_p} with a wooden hoe named "&2Farmer" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "farmer")
  109.  
  110. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::farmer::level}%" to be unstealable
  111.  
  112. if {_page} is "soldaat":
  113. open chest with 5 rows named "&3Soldaat" to {_p}
  114.  
  115. if {mn::baan::%{_p}%::soldaat} is true:
  116. format slot 13 of {_p} with a iron sword named "&2Soldaat" with lore "&aGekozen" to be unstealable
  117. else:
  118. wait 3 ticks
  119. make gui slot 13 of {_p} with a iron sword named "&2Soldaat" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "soldaat")
  120.  
  121. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::soldaat::level}%" to be unstealable
  122.  
  123. if {_page} is "smid":
  124. open chest with 5 rows named "&3Smid" to {_p}
  125.  
  126. if {mn::baan::%{_p}%::smid} is true:
  127. format slot 13 of {_p} with a anvil named "&2Smid" with lore "&aGekozen" to be unstealable
  128. else:
  129. wait 3 ticks
  130. make gui slot 13 of {_p} with a anvil named "&2Smid" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "smid")
  131.  
  132. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::smid::level}%" to be unstealable
  133.  
  134. if {_page} is "enchanter":
  135. open chest with 5 rows named "&3Enchanter" to {_p}
  136.  
  137. if {mn::baan::%{_p}%::enchanter} is true:
  138. format slot 13 of {_p} with a enchantment table named "&2Enchanter" with lore "&aGekozen" to be unstealable
  139. else:
  140. wait 3 ticks
  141. make gui slot 13 of {_p} with a enchantment table named "&2Enchanter" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "enchanter")
  142.  
  143. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::enchanter::level}%" to be unstealable
  144.  
  145. if {_page} is "ontdekkingsreiziger":
  146. open chest with 5 rows named "&3Ontdekkingsreiziger" to {_p}
  147.  
  148. if {mn::baan::%{_p}%::ontdekkingsreiziger} is true:
  149. format slot 13 of {_p} with a compass named "&2Ontdekkingsreiziger" with lore "&aGekozen" to be unstealable
  150. else:
  151. wait 3 ticks
  152. make gui slot 13 of {_p} with a compass named "&2Ontdekkingsreiziger" with lore "&aUnlocked" to run function baanCheckAdd({_p}, "ontdekkingsreiziger")
  153.  
  154. format slot 28 of {_p} with a exp bottle named "&2Level:" with lore "&a%{mn::baan::%{_p}%::ontdekkingsreiziger::level}%" to be unstealable
  155.  
  156.  
  157.  
  158. every 1 tick:
  159. loop all players:
  160. if {mn::baan::%loop-player%::houthakker::level} is not set:
  161. set {mn::baan::%loop-player%::houthakker::level} to 1
  162.  
  163. if {mn::baan::%loop-player%::miner::level} is not set:
  164. set {mn::baan::%loop-player%::miner::level} to 1
  165.  
  166. if {mn::baan::%loop-player%::bouwer::level} is not set:
  167. set {mn::baan::%loop-player%::bouwer::level} to 1
  168.  
  169. if {mn::baan::%loop-player%::farmer::level} is not set:
  170. set {mn::baan::%loop-player%::farmer::level} to 1
  171.  
  172. if {mn::baan::%loop-player%::soldaat::level} is not set:
  173. set {mn::baan::%loop-player%::soldaat::level} to 1
  174.  
  175. if {mn::baan::%loop-player%::smid::level} is not set:
  176. set {mn::baan::%loop-player%::smid::level} to 1
  177.  
  178. if {mn::baan::%loop-player%::enchanter::level} is not set:
  179. set {mn::baan::%loop-player%::enchanter::level} to 1
  180.  
  181. if {mn::baan::%loop-player%::ontdekkingsreiziger::level} is not set:
  182. set {mn::baan::%loop-player%::ontdekkingsreiziger::level} to 1
Advertisement
Add Comment
Please, Sign In to add comment