Advertisement
Dragonleet_

Tutorial

Jul 18th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. load("loads/menuutil.js")
  2. load("loads/vaultutil.js")
  3.  
  4. autoload.watch("patches/content/tutorial.js")
  5.  
  6. var tutorialJoinItem = itemName(itemStack("name tag"), colorize("&e&lTutorial"))
  7. itemAddLore(tutorialJoinItem, colorize("&7This menu contains lots of &6information"))
  8. itemAddLore(tutorialJoinItem, colorize("&7about the gamemode"))
  9. itemAddLore(tutorialJoinItem, colorize(""))
  10. itemAddLore(tutorialJoinItem, colorize("&7You can &3read &7through the sections"))
  11. itemAddLore(tutorialJoinItem, colorize("&7below &aby hovering &7over each item"))
  12. itemAddLore(tutorialJoinItem, colorize(""))
  13. itemAddLore(tutorialJoinItem, colorize("&7You can also go on a &ctour of the server"))
  14. itemAddLore(tutorialJoinItem, colorize("&7by &dclicking this item!"))
  15.  
  16. var islandItem = itemName(itemStack("grass"), colorize("&a&lIslands"))
  17. itemAddLore(islandItem, colorize("&7You can start your own island by typing &e&l/is&7!"))
  18. itemAddLore(islandItem, colorize("&6A gui will open and display all of"))
  19. itemAddLore(islandItem, colorize("&fthe different &eislands &7you can start from!"))
  20. itemAddLore(islandItem, colorize("&7But be careful, some are &charder &7than the others!"))
  21. itemAddLore(islandItem, colorize("&7These are the islands you can choose from:"))
  22. itemAddLore(islandItem, colorize(" &c- &a&lClassic &f&lIsland"))
  23. itemAddLore(islandItem, colorize(" &c- &f&lThe &a&Original &f&lIsland"))
  24. itemAddLore(islandItem, colorize(" &c- &d&lMedievel &f&lIsland"))
  25. itemAddLore(islandItem, colorize(" &c- &e&lFarmer &f&lIsland"))
  26. itemAddLore(islandItem, colorize(" &c- &2&lMushroom &f&lIsland"))
  27. itemAddLore(islandItem, colorize(" &c- &6&lDouble &f&lIsland"))
  28. itemAddLore(islandItem, colorize(" &c- &b&lIce &f&lIsland"))
  29. itemAddLore(islandItem, colorize(" &c- &5&lDesert &f&lIsland"))
  30. itemAddLore(islandItem, colorize(" &c- &4&lVolcano &f&lIsland"))
  31. itemAddLore(islandItem, colorize(" &c- &c&lNether &f&lIsland"))
  32.  
  33. var cratesItem = itemName(itemStack("chest"), colorize("&5&lCrates"))
  34. itemAddLore(cratesItem, colorize("&7Running low on supplies?"))
  35. itemAddLore(cratesItem, colorize(""))
  36. itemAddLore(cratesItem, colorize("&7You can get &bSpawners&7, &6Money&7, and other"))
  37. itemAddLore(cratesItem, colorize("&ccool items &7by opening &5crates!"))
  38. itemAddLore(cratesItem, colorize(""))
  39. itemAddLore(cratesItem, colorize("&cType &4/crates &cto visit the crate area"))
  40.  
  41. var pvpItem = itemName(itemStack("diamond sword"), colorize("&e&lPvP"))
  42. itemAddLore(pvpItem, colorize("&7Want to try and kill other players and gain their loot?"))
  43. itemAddLore(pvpItem, colorize("&7Go to &e/pvp &7to try!"))
  44.  
  45. var islandLevel = itemName(itemStack("exp bottle"), colorize("&d&lIsland Level"))
  46. itemAddLore(islandLevel, colorize("&7Blocks you place increase your &disland level"))
  47. itemAddLore(islandLevel, colorize("&7which is displayed on the scoreboared"))
  48. itemAddLore(islandLevel, colorize(""))
  49. itemAddLore(islandLevel, colorize("&7More valuable items such as &aores"))
  50. itemAddLore(islandLevel, colorize("&7increase the island level much more!"))
  51.  
  52. var bankItem = itemName(itemStack("emerald"), colorize("&a&lBank"))
  53. itemAddLore(bankItem, colorize("&7You can exchange &amoney &7with other players"))
  54. itemAddLore(bankItem, colorize("&7by talking to the &aBanker &7at &6/spawn"))
  55.  
  56. var helpItem = itemName(itemStack("name tag"), colorize("&c&lGeneral Help"))
  57. itemAddLore(helpItem, colorize("&7Around the spawn you can find places which"))
  58. itemAddLore(helpItem, colorize("&7show you how to do certain things"))
  59. itemAddLore(helpItem, colorize(""))
  60. itemAddLore(helpItem, colorize("&7Such as"))
  61. itemAddLore(helpItem, colorize(" &c- &7Build a &ecobblestone generator"))
  62. itemAddLore(helpItem, colorize(" &c- &7Make a &echest shop"))
  63.  
  64. var barItem = itemName(itemStack("potion"), colorize("&2&lBar"))
  65. itemAddLore(barItem, colorize("&7Feeling lucky?"))
  66. itemAddLore(barItem, colorize(""))
  67. itemAddLore(barItem, colorize("&aGamble &7your money away at the bar"))
  68. itemAddLore(barItem, colorize("&7and hope for a big return!"))
  69. itemAddLore(barItem, colorize(""))
  70. itemAddLore(barItem, colorize("&cType &4/bar &cor &4/casino &cto be teleported"))
  71.  
  72. exports.put("patches/content/tutorial", {
  73. npc: new Location(bukkit.getWorld("world"), 183.5, 118, 6.5),
  74. script: [
  75. { action: "warp", name: "tutorial1", andWait: 10 },
  76. { action: "title", title: "Welcome to &c&lSkyblock &7&l2&r!", subtitle: "Talk to the banker to &cwithdraw money&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
  77.  
  78. { action: "warp", name: "tutorial2", andWait: 10 },
  79. { action: "title", title: "&b&lExamples", subtitle: "This is how you use &3chest shops&r and make &ecobblestone generators&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
  80.  
  81. { action: "warp", name: "pvp", andWait: 10 },
  82. { action: "title", title: "&4&lPvP &b&lArena", subtitle: "Fight to the &4&ldeath&r here!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  83. { action: "message", message: "\nThis is where you can battle other &eplayers&r!", andWait: 60 },
  84.  
  85. { action: "warp", name: "tutorial3", andWait: 10 },
  86. { action: "title", title: "&b&lBar", subtitle: "Here you can &egamble&r your money!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  87. { action: "message", message: "\nTest your luck at the &d&lbar&r!", andWait: 60 },
  88.  
  89. { action: "warp", name: "tutorial4", andWait: 10 },
  90. { action: "title", title: "&a&lShop", subtitle: "Here you can &ebuy&r blocks and items!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 60 },
  91.  
  92. { action: "warp", name: "tutorial5", andWait: 10 },
  93. { action: "title", title: "&e&lCommands", subtitle: "Here you can view all of the &ecommands&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  94. { action: "message", message: "\nThese will be &euseful&r when you start playing!", andWait: 60 },
  95.  
  96. { action: "warp", name: "tutorial6", andWait: 10 },
  97. { action: "title", title: "&6&lRules", subtitle: "Here you can view all of the &6rules&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  98. { action: "message", message: "\nYou need to know all of the &6rules&r!", andWait: 60 },
  99.  
  100. { action: "warp", name: "tutorial7", andWait: 10 },
  101. { action: "title", title: "&2&lParkour", subtitle: "You can complete the &2parkour &rdaily for a reward!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  102. { action: "message", message: "\nGood luck completing the &2parkour&r!", andWait: 60 },
  103.  
  104. { action: "warp", name: "tutorial8", andWait: 10 },
  105. { action: "title", title: "&c&lIslands", subtitle: "Here are some of the &cislands&r!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 10 },
  106. { action: "message", message: "\nYou can start with any of these &cislands&r!", andWait: 60 },
  107.  
  108. { action: "warp", name: "tutorial9", andWait: 40 },
  109. { action: "warp", name: "tutorial10", andWait: 40 },
  110. { action: "warp", name: "tutorial11", andWait: 40 },
  111. { action: "warp", name: "tutorial12", andWait: 40 },
  112. { action: "warp", name: "tutorial13", andWait: 40 },
  113. { action: "warp", name: "tutorial14", andWait: 40 },
  114. { action: "warp", name: "tutorial15", andWait: 40 },
  115.  
  116. { action: "warp", name: "spawn", andWait: 10 },
  117. { action: "title", title: "&b&lThanks&r for staying!", subtitle: "Tutorial Complete!", fadeIn: 10, stay: 30, fadeOut: 40, andWait: 20 },
  118. ],
  119. reward: player => {
  120. vault().depositPlayer(player, 25000)
  121. player.sendMessage(colorize("&a+ $25,000 for completing Tutorial!"))
  122. },
  123. encyclopedia: {
  124. schemeMask: "111111111 111101111 111000111 111000111 111101111 111111111",
  125. scheme: menuScheme(
  126. [0, 0, 14, 4, 0, 4, 14, 0, 0,
  127. 0, 4, 14, 0, 0, 14, 4, 0,
  128. 14, 4, 0, 0, 4, 14,
  129. 14, 4, 0, 0, 4, 14,
  130. 0, 4, 14, 0, 0, 14, 4, 0,
  131. 0, 0, 14, 4, 0, 4, 14, 0, 0], true),
  132. populatorMask: "000000000 000010000 000111000 000111000 000010000 000000000",
  133. populator: (partition, doTutorial) => {
  134. partition.newSlot(tutorialJoinItem, () => doTutorial())
  135. partition.newSlot(islandItem)
  136. partition.newSlot(cratesItem)
  137. partition.newSlot(pvpItem)
  138. partition.newSlot(islandLevel)
  139. partition.newSlot(bankItem)
  140. partition.newSlot(helpItem)
  141. partition.newSlot(barItem)
  142. },
  143. }
  144. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement