Guest User

Citizens problem

a guest
Dec 1st, 2011
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ----- Quest Design Guide -----
  2. #
  3. # First, let's cover the basic fields in a quest.
  4. # Each root node is the quest name - below, the two quest names are 'example' and 'example2'.
  5. # This is what you will use ingame to identify each quest.
  6. # Inside this, we see the text nodes - pretty self-explanatory. Note that you can use
  7. # <br> to denote a line break.
  8. #
  9. # The repeats option allows a quest to be completed a certain number of times. It acts as a limit. -1 denotes an
  10. # unlimited completion times limit. Let's take an example. A limit of 1 would allow the quest to be completed once.
  11. #
  12. # Now we move on to the configuration of the two main configuration options - objectives and rewards.
  13. #
  14. # --- Objectives ---
  15. #
  16. # Thus far, objectives have a set structure - a number of different 'steps' and a number of objectives
  17. # within each step. This allows for more freeform quest design. Note that each step should be marked
  18. # by an ascending number, *with quotes* around it. Each objective within a step is incremented concurrently.
  19. #
  20. # The message variable is sent to the player on completion of each objective.
  21. #
  22. # --- Objective types ---
  23. #
  24. # To aid with generic objective design, each objective can use one of a common set of variables
  25. # - amount, string, materialid, location, string, item and npcdestination (destination NPC ID).
  26. # Each objective type may use one or more of these variables - a reference is provided below.
  27. #
  28. #  - Specifying item and locations -
  29. # Item nodes have three sub-nodes, two that must be included and one optional.
  30. # The id sub-node designates the item/block ID.
  31. # The amount sub-node specifies the item amount.
  32. # The optional data sub-node specifies the item data value to be used.
  33. #
  34. # Location nodes have 4 required sub-nodes, two optional.
  35. # The world node specifies the world name of the location.
  36. # The x ,y and z nodes specifies the x,y and z values.
  37. # The pitch/yaw optional nodes specify the rotation (think aeroplanes) of the location.
  38. #
  39. # Example syntax:
  40. # location:
  41. #     x: 123
  42. #     y: 124
  43. #     z: 111
  44. #     world: 'world'
  45. #
  46. # Block destroy quest (destroy block) - break a certain amount of blocks.
  47. # Uses: amount - the amount of blocks to break. materialid - the block ID to break.
  48. #
  49. # Build quest (build) - place a certain number of blocks
  50. # Uses: materialid - the block ID to place. amount - the amount that must be placed.
  51. #
  52. # Combat quest (player combat) - kill a certain number of players.
  53. # Uses: amount - the amount of players to kill. string - a list of which players should be targeted. '*' signifies all, '-' as the first character signifies a
  54. # whitelist, g:group specifies a group to target.
  55. #
  56. # Collect quest (collect) - pick up a certain number of items.
  57. # Uses: amount - the number of items to pick up. materialid - the ID to pick up.
  58. #
  59. # Delivery quest (delivery)- deliver an item to an npc.
  60. # Uses: npcdestination - the NPC ID to deliver to. materialid - the material that must be in hand.
  61. # amount - the amount of the material that must be in hand.
  62. #
  63. # Distance quest (move distance)- walk a certain number of blocks.
  64. # Uses: amount - the amount of blocks to walk.
  65. #
  66. # Hunt quest (hunt) - kill a certain number of monsters.
  67. # Uses: amount - the number of monsters to kill. string - which monsters to kill. '*' signifies all, '-' at
  68. # the start signifies that monsters not in the list will be counted.
  69. #
  70. # Location quest (move location)- be within a certain range of a location.
  71. # Uses: location - the base location to move to. amount - the amount in blocks that the player can be away from the location before finishing.
  72. #
  73. #
  74. # --- Rewards ---
  75. #
  76. # These can be used as both rewards *and* requirements to start a quest.
  77. # As rewards, they can be either give rewards, or take rewards. As requirements, they can only be used
  78. # to take from a player.
  79. #
  80. # Rank reward (rank) - grants a group ('rank') to a player.
  81. # Specified by the rank: node.
  82. #
  83. # Permission reward (permission) - grants a permission to a player.
  84. # Specified by the permission: node.
  85. #
  86. # Quest reward (quest) - grants a quest to a player. Note that it cannot be taken away from a player.
  87. # Specified by the quest: node.
  88. #
  89. # Item reward (item) - gives an item to a player.
  90. # Loaded from the item: nodes.
  91. #
  92. # Health reward (health) - gives health to a player.
  93. # Loaded from the amount: node.
  94. #
  95. # Money reward (money) - gives money to a player.
  96. # Loaded from the money: node.
  97. example1:
  98.     texts:
  99.         description: Ve y consigue algo de carne!
  100.         completion: <g>Has ganado! Toma algo de piedra.
  101.         acceptance: <g>Mision <y>aceptada<g>.
  102.     repeats: 1
  103.     objectives:
  104.         '0':
  105.             '0':
  106.                 type: collect
  107.                 materialid: 363
  108.                 amount: 10
  109.                 message: Tienes carne! OM NOM NOM NOM!!
  110.                 optional: false
  111.                 finishhere: false
  112.         '1':
  113.             '0':
  114.                 type: delivery
  115.                 npcdestination: 0
  116.                 materialid: 363
  117.                 amount: 10
  118.                 message: Gracias, ahora estare mejor!
  119.                 optional: false
  120.                 finishhere: true
  121.     rewards:
  122.         '0':
  123.             type: item
  124.             id: 1
  125.             amount: 64
  126.             take: false
  127. example2:
  128.     texts:
  129.         description: A fetch quest
  130.         completion: <g>You win! Give me that stone.
  131.         acceptance: <g>Challenge <y>accepted<g>.
  132.     repeats: -1
  133.     objectives:
  134.         '0':
  135.             '0':
  136.                 type: collect
  137.                 materialid: 35
  138.                 data: 14
  139.                 amount: 3
  140.                 message: A voice echoes... "I want that wool now!"
  141.     rewards:
  142.          '0':
  143.             type: item
  144.             id: 35
  145.             amount: 3
  146.             data: 14
  147.             take: true
  148. example3:
  149.     texts:
  150.         description: A mob quest - kill any 3 of zombie, pig or chicken
  151.         completion: <g>You win!
  152.         acceptance: <g>Challenge <y>accepted<g>.
  153.     repeats: 2
  154.     objectives:
  155.         '0':
  156.             '0':
  157.                 type: hunt
  158.                 string: 'zombie, pig, chicken'
  159.                 amount: 3
  160.                 message: Monsters slain \o/.
  161.     rewards:
  162.          '0':
  163.             type: item
  164.             id: 1
  165.             amount: 3
  166.             take: true
  167. Arcilla:
  168.     texts:
  169.         description: "Hola extraño, tengo esta excelente idea, usando una vieja técnica puedo convertir grava en arcilla... <br> No me preguntes más, ve y tráeme grava! A cambio te daré algo de arcilla, ¿qué dices?"
  170.         completion: "Excelente! Aquí esta tu recompensa - un saco lleno de arcilla."
  171.         acceptance: "Genial! Ahora, no te tardes, que el proceso no es muy rápido que digamos..."
  172.     repeats: -1
  173.     objectives:
  174.         '0':
  175.             '0':
  176.                 type: delivery
  177.                 materialid: 13
  178.                 amount: 64
  179.                 npcdestination: 40
  180.                 optional: False
  181.                 finishhere: True
  182.                 message: "Ve donde el mercader y entrégale la grava"
  183.     rewards:
  184.         '0':
  185.             type: item
  186.             id: 337
  187.             amount: 64
  188.             take: False
  189. Chaman:
  190.     texts:
  191.         description: Aquí hay una lista de cosas que necesito. Si se la llevas a Jed, te las dará y si me las traes a mi te daré una recompensa.
  192.         completion: El chamán te da una Semilla de Melón. <br> <14>-=== Misión Actualizada ===-<br><8>Chamán:<15> Necesito que mates un cerdo y me traigas su carne.
  193.         acceptance: <15>Seguro, no hay problema.<br><14>-=== Misión Aceptada ===-<br><6>- Jed vive en las afueras de la ciudadela Gorkil, cerca de la granja de caña.
  194.     repeats: -1
  195.     objectives:
  196.         '0':
  197.             '0':
  198.                 type: move location
  199.                 location:
  200.                     x: -761
  201.                     y: 72
  202.                     z: 1050
  203.                     world: world
  204.                 amount: 5
  205.                 message: <14>*El chamán te pasa la lista. En esta dice:*<br><15> - 1 Perla de Ender<br> - 1 Libro<br> - 4 Panes.
  206.                 rewards:
  207.                      '0':
  208.                         type: item
  209.                         id: 339
  210.                         amount: 1
  211.                         take: false
  212.         '1':
  213.             '0':
  214.                 type: delivery
  215.                 npcdestination: 42
  216.                 materialid: 339
  217.                 amount: 0
  218.                 finishhere: false
  219.                 message: <8>Tú:<15> Hola Jed, aquí esta la lista de compras del chamán.<br><14>*Jed toma la lista, la mira y te la devuelve.*<br><8>Jed:<15> Lamentablemente, no tengo lo necesario para el pan, tráeme 12 unidades de trigo y lo haré.
  220.         '2':
  221.             '0':
  222.                 type: delivery
  223.                 npcdestination: 42
  224.                 materialid: 296
  225.                 amount: 12
  226.                 finishhere: false
  227.                 message: <8>Tú:<15> Aquí esta el trigo que necesitas.<br><8>Jed:<15> Vuelve más tarde y tendré el pan horneado.
  228.         '3':
  229.             '0':
  230.                 type: delivery
  231.                 npcdestination: 42
  232.                 materialid: 339
  233.                 amount: 1
  234.                 finishhere: false
  235.                 message: <8>Jed:<15> Okay, aquí tienes. Todo lo que el chamán ordeno.
  236.                 rewards:
  237.                      '0':
  238.                         type: item
  239.                         id: 368
  240.                         amount: 1
  241.                         take: false
  242.                      '1':
  243.                         type: item
  244.                         id: 340
  245.                         amount: 1
  246.                         take: false
  247.                      '2':
  248.                         type: item
  249.                         id: 297
  250.                         amount: 4
  251.                         take: false
  252.         '4':
  253.             '0':
  254.                 type: delivery
  255.                 npcdestination: 41
  256.                 materialid: 368
  257.                 amount: 1
  258.                 finishhere: false
  259.                 message: <14>*Le entregas la Perla de Ender al chamán.*
  260.             '1':
  261.                 type: delivery
  262.                 npcdestination: 41
  263.                 materialid: 340
  264.                 amount: 1
  265.                 finishhere: false
  266.                 message: <14>*Le entregas 1 Libro al chamán.*
  267.             '2':
  268.                 type: delivery
  269.                 npcdestination: 41
  270.                 materialid: 297
  271.                 amount: 4
  272.                 finishhere: true
  273.                 message: <14>*Le entregas 4 Panes al chamán.*
  274.     rewards:
  275.          '0':
  276.             type: item
  277.             id: 362
  278.             amount: 1
  279.             take: false
  280.          '1':
  281.             type: quest
  282.             quest: Pig
  283.  
  284. Pig:
  285.     texts:
  286.         description:
  287.         completion: <8>Chamán:<15> Gracias.<br><14>*El chamán te da una Semilla de Melón.
  288.         acceptance: <8>Tú:<15>Seguro, Puedo matar un cerdo.
  289.     repeats: -1
  290.     objectives:
  291.         '0':
  292.             '0':
  293.                 type: hunt
  294.                 amount: 1
  295.                 string: 'pig'
  296.                 message: <15> Oh sí! Ese cerdo no tenía opción.
  297.             '1':
  298.                 type: collect
  299.                 amount: 1
  300.                 materialid: 319
  301.                 message: <15> Debo llevarle esta carne a el chamán!
  302.                 rewards:
  303.         '1':
  304.             '0':
  305.                 type: delivery
  306.                 npcdestination: 41
  307.                 amount: 1
  308.                 materialid: 319
  309.                 message: <15>El sabor de la victoria. <br>
  310.     rewards:
  311.          '0':
  312.             type: item
  313.             id: 362
  314.             amount: 1
  315.             take: false
  316.  
  317.  
RAW Paste Data