Zeldaboy111

Skript #123

Mar 12th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 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.  
  103. if {_page} is "soldaat":
  104.  
  105. if {_page} is "smid":
  106.  
  107. if {_page} is "enchanter":
  108.  
  109.  
  110. every 1 tick:
  111. loop all players:
  112. if {mn::baan::%loop-player%::houthakker::level} is not set:
  113. set {mn::baan::%loop-player%::houthakker::level} to 1
  114.  
  115. if {mn::baan::%loop-player%::miner::level} is not set:
  116. set {mn::baan::%loop-player%::miner::level} to 1
  117.  
  118. if {mn::baan::%loop-player%::bouwer::level} is not set:
  119. set {mn::baan::%loop-player%::bouwer::level} to 1
Advertisement
Add Comment
Please, Sign In to add comment