Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. #----------------------------------------------------------------------------------------------------
  2. # Quest 'example farm 1' (file name without the extension is the quest identifier)
  3. #----------------------------------------------------------------------------------------------------
  4. # Refer to the plugin's wiki to have more details about how creating a quest.
  5. # There are some tips in this file but most explanations (including variables, conditions, etc) are in the wiki.
  6. #----------------------------------------------------------------------------------------------------
  7.  
  8. # --------------------------------------------------
  9. # Quest settings
  10. # Some general parameters about the quest
  11. # --------------------------------------------------
  12.  
  13. # Display settings (color codes are allowed in both but only recommended in description)
  14. name: 'hurley'
  15. description:
  16. - '&7Hjælp Hurley med at finde mad'
  17. - '&7Farm {math:{gvariable:quest_example_farm_baseamount}} stones in this quest !'
  18.  
  19. # Maximum different instances of this quest that can be run at the same time
  20. # One instance = one running quest (so 2 players doing this quest cooperating is one instance, same goes for one player doing this quest on his own)
  21. # It's definitely not a good idea to set it to more than 1 if the quest has Objects that affects Citizens NPCs. It might be messy if multiple instances of the quest are manipulating the same Citizens NPCs at the same time.
  22. # Default : 1
  23. max_concurrent_instances: -1
  24.  
  25. # Create a queue for starting this quest if 'max_concurrent_instances' is already reached when trying to start the quest.
  26. max_concurrent_instances_queue: false
  27.  
  28. # Minimum/maximum players that can do the quest together (count the quest starter and additionnal coop players, so for instance it's 1 for a solo quest and 2 for a duo quest)
  29. # Default : minimum 1, maximum 1
  30. min_players: 1
  31. max_players: 1
  32. allow_coop_leave_until_remaining_coop: 1
  33.  
  34. # Maximum times the player can complete the quest
  35. # Default : 1
  36. max_completions: -1
  37.  
  38. # Allow the quest leader to stop the quest ?
  39. allow_stop: true
  40.  
  41. # Maximum time (in minutes) the player has to do the quest, otherwise the quest is cancelled
  42. # Default : 0 (disabled)
  43. time_limit: 0
  44.  
  45. # Time the player will have to wait between completions (will be effective if max_completions is greater than 1)
  46. # Available options : 'DISABLED', 'ENABLED [minutes amount]', 'ENABLED_SUCCESS [minutes amount]' (will only apply on quest success), 'ENABLED_FAIL [minutes amount]' (will only apply on quest fail)
  47. # Default : DISABLED
  48. cooldown: ENABLED_SUCCESS [10]
  49.  
  50. # Should the cooldown be given to leader only ?
  51. # Default : false
  52. cooldown_for_leader_only: false
  53.  
  54. # Action bar displayed during the quest
  55. # Default : '&a{quest} &7- Objective : &a{detailed_progression}'
  56. actionbar: '&a{quest} &7- Objective : &a{detailed_progression}'
  57.  
  58. # Display the success/fail message when the player ends the quest
  59. # Default : true
  60. send_status_message: true
  61.  
  62. # Display the objective complete message for GROUp objects
  63. # Default : true
  64. send_objective_update_message: true
  65.  
  66. # The player will need this permission to start the quest
  67. # Default : empty (disabled)
  68. permission: ''
  69.  
  70. # Should the quest leader be the only one to have the quest marked as completed ?
  71. # Default : false
  72. complete_for_leader_only: false
  73.  
  74. # Running quest progression saving method
  75. # - ENABLED (save on disk/database when player leave, on server stop/reload and with delay)
  76. # - SERVER_EPHEMERIAL (will be saved when player leaves but when the server is stopped or reloaded all the progression will be erased)
  77. # - PLAYER_EPHEMERIAL (running quests will not be saved when player leaves or when the server is stopped or reloaded)
  78. saving: SERVER_EPHEMERIAL
  79.  
  80. # The quest can only be started/progressed in those worlds
  81. # Default : empty (disabled)
  82. world_whitelist: []
  83.  
  84. # The quest can't be started/progressed in those worlds
  85. # Default : empty (disabled)
  86. world_blacklist: []
  87.  
  88. # Integration for 'GPS' plugin ?
  89. # Default : true (but will only work if the GPS plugin is enabled)
  90. gps_enable: true
  91.  
  92. # Integration for 'Dynmap' plugin ?
  93. # Default : null (disabled)
  94. dynmap_marker_location: null
  95.  
  96. # --------------------------------------------------
  97. # GUI
  98. # Configure GUI items appearance
  99. # --------------------------------------------------
  100.  
  101. gui:
  102. # item_available : when the quest is available
  103. item_available:
  104. type: DIAMOND_SWORD
  105. name: '&a{name} &a- AVAILABLE'
  106. lore:
  107. - '&7{description}'
  108. - '&bRight click to follow this quest'
  109. # item_progress : will be shown when the quest status is 'in progress'
  110. item_progress:
  111. type: DIAMOND_SWORD
  112. name: '&6{name} &6- IN PROGRESS'
  113. lore:
  114. - '&7{description}'
  115. - '{detailed_progression}'
  116. - '&bRight click to stop this quest'
  117. # item_cooldown : will be shown when the quest status is 'completed' and the player hasn't reached max_completions and the cooldown is not over
  118. item_cooldown:
  119. type: DIAMOND_SWORD
  120. name: '&8{name} &8- COOLDOWN'
  121. lore:
  122. - '&7{description}'
  123. - '&7&lYou have completed this quest {completions} time{plural}.'
  124. - '&7&l{cooldown} remaining before you can start this quest again.'
  125. # item_cooldown_pool : will be shown when the quest status is 'completed' and the player hasn't reached max_completions and the quest pool cooldown is not over
  126. item_cooldown_pool:
  127. type: DIAMOND_SWORD
  128. name: '&8{name} &8- COOLDOWN'
  129. lore:
  130. - '&7{description}'
  131. - '&7You choose to call yourself {variable:example_nickname}. Noice.'
  132. - '&7&lYou have completed this quest {completions} time{plural}.'
  133. - '&7&l{cooldown} remaining before you can start this quest again.'
  134. # item_completed : will be shown when the quest status is 'completed' and the player has reached max_completions
  135. item_completed:
  136. type: DIAMOND_SWORD
  137. name: '&8{name} &8- COMPLETED'
  138. lore:
  139. - '&7{description}'
  140. - '&7&lYou have completed this quest {completions} time{plural}.'
  141. # item_unavailable : will be shown when all preconditions aren't okay (model validity, follow check, max players, max instances, permissions, world, start conditions, ...)
  142. item_unavailable:
  143. type: DIAMOND_SWORD
  144. name: '&8{name} &8- UNAVAILABLE'
  145. lore:
  146. - '&7{description}'
  147. - '&cThis quest isn''t available for you.'
  148. - '&c{detailed_errors}'
  149.  
  150. # --------------------------------------------------
  151. # Quest branches
  152. # What's going to happen in this quest
  153. # --------------------------------------------------
  154.  
  155. branches:
  156.  
  157. # --------------------------------------------------
  158. # This is our main branch
  159. # We only have one objective, farming blocks, so we only need one branch for this quest
  160. # --------------------------------------------------
  161. main:
  162. # Branch name (optionnal)
  163. name: 'Dræb Grise'
  164. # Auto start because it's the main branch
  165. starts_directly: true
  166. # This branch starts at object named MY_OBJECTIVE
  167. starts_at: MY_OBJECTIVE
  168. # Objects (content of this branch)
  169. objects:
  170. # 'MY_OBJECTIVE' : our main object, that's all we need for this simple farm quest
  171. MY_OBJECTIVE:
  172. # settings
  173. message: '&2[ExampleFarmQuestI] &aHey {player}, jeg er mega sulten kan du skaffe mig 10 stk. grisse kød!'
  174. sound:
  175. type: ENTITY_VILLAGER_AMBIENT
  176. name: 'Dræb Grise {math:{gvariable:quest_example_farm_baseamount}} stones'
  177. progress_name: 'Dræb Grise'
  178. # objective
  179. type: PLAYER_MOB_KILL
  180. mob_type: PIG
  181. amount: 5
  182. ignore_silk_touch: true
  183. # ended : when this object is completed, we go to the quest end
  184. goto: OBJECT MY_OBJECTIVE1
  185.  
  186. MY_OBJECTIVE1:
  187. message: '&2Sådan {player}, Find Hurley igen og aflever de 25 stk grissekød'
  188. name: 'Gå hen til Hurley med kødet'
  189. progress_name: 'Aflever til Hurley'
  190. type: PLAYER_CITIZENS_NPC_INTERACT
  191. amount: '1'
  192. items_needed: '25'
  193. items_error_message: &cDu mangler stadig 25 stk. Grissekød
  194. npc: '9'
  195. items:
  196. 1:
  197. type: PORKCHOP
  198. goto: OBJECT MY_OBJECTIVE2
  199.  
  200. MY_OBJECTIVE2:
  201. type: SERVER_ITEMS_REMOVE
  202. amount: '25'
  203. items:
  204. 1:
  205. type: PORKCHOP
  206. goto: QUEST_SUCCESS
  207. # --------------------------------------------------
  208. # Success objects
  209. # Will be executed if the player succeeds the quest
  210. # (only SERVER objects will be accepted)
  211. # --------------------------------------------------
  212.  
  213. success_objects:
  214. '1':
  215. type: SERVER_FIREWORK_SPAWN
  216. location:
  217. player_relative_base:
  218. horizontal_angle: 0.0
  219. vertical_offset: 1.0
  220. distance: 2.5
  221. random_player: false
  222. '2':
  223. type: SERVER_TITLE_SEND
  224. title:
  225. title: '&aHurleys opgave klaret!'
  226. subtitle: '&7Du vandt 750$'
  227. fade_in: 5
  228. duration: 50
  229. fade_out: 5
  230. '3':
  231. type: SERVER_ACTION_LIST
  232. actions:
  233. - 'MESSAGE &2[Hurley] &aSådan {player} Tak for kødet nu kan vi holde en fest! Din præmie er 750$'
  234. '4':
  235. type: SERVER_MONEY_CHANGE
  236. operation: ADD
  237. amount: 750.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement