onilink_

Quests Script

Mar 4th, 2016
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 10.93 KB | None | 0 0
  1. #include "quest.h"
  2.  
  3. std::vector<QuestBaseInfo> QuestBaseInfo::quests;
  4.  
  5. std::string QuestBaseInfo::message_hello = "Welcome, young earthling. You arrived, despite yourself, in a very dark period of this planet’s history. "
  6.     "You probably have a lot of questions but it will have to wait, because it is essential for both of us that "
  7.     "I teach you how to survive in this hostile environment.";
  8.  
  9. void QuestBaseInfo::load()
  10. {
  11.     if(quests.empty())
  12.     quests =
  13.     {
  14.     {0, "Resources 1 - Chest",{
  15.         "Pick up the pickaxe and the axe\nlocated in the chest."},
  16.         "Using tools will be absolutely necessary to gather resources. You will need to learn how to craft items that will help you survive.\n"
  17.         "Pick up the pickaxe and the axe in the chest in front of you.", 0, 10, -1, {}},
  18.    
  19.     {0, "Resources 2 - Pickaxe",{
  20.         "Gather 4 Coal blocks."},
  21.         "Now, equip the pickaxe and look for 4 coal blocks by digging into the ground. "
  22.         "You can easily find some on the surface of this planet.", 10, 10, -1, {}},
  23.    
  24.     {0, "Resources 3 - Axe",
  25.         {"Gather 8 Wood."},
  26.         "Now, equip the axe and gather 8 chunks of wood.", 20, 10, 3, {}},
  27.    
  28.     {0, "Crafts 1",{
  29.         "Craft a wooden sword and equip it in the main slot.",
  30.         "Craft a torch."},
  31.         "Use the gathered wood and coal to create a sword and a torch. These will allow you to see more clearly and defend yourself.\n"
  32.         "To create the sword and the torch, use the O key to open the crafting window. "
  33.         "If you have the required materials for crafting, the recipes will appear highlighted on the list. "
  34.         "You will then need to click on the desired item on the list to craft it.", 30, 10, 4, {
  35.             ItemSlot(itemIndexFromEntry("pc_drop_wood"), 10),
  36.             ItemSlot(itemIndexFromEntry("pc_drop_coal"), 10)}},
  37.    
  38.     {0, "Crafts 2",{
  39.         "Build an advanced crafting table."},
  40.         "Now, build an advanced crafting table. It will allow you to craft advanced new items "
  41.         "like furniture and necessary tools to forge weapons and armors.", 40, 10, 5, {}},
  42.    
  43.     {0, "Building 1",{
  44.         "Build a shelter.",
  45.         "Place the crafting table on the ground.",
  46.         "Build a door and place it."},
  47.         "Congratulations! You will now need a shelter to protect yourself from hostile creatures, "
  48.         "and to be able to use the crafting table without being bothered..."
  49.         "You can choose to build your shelter with any material: dirt, wood, stone and many other things.\n"
  50.         "To build a shelter, these prerequisites are required:\n"
  51.         "4 Walls forming a closed area\n"
  52.         "A background wall covering the entire shelter surface\n"
  53.         "A door\n"
  54.         "A source of light (torch or other)", 50, 10, -1, {
  55.             ItemSlot(itemIndexFromEntry("pc_drop_wood"), 10),
  56.             ItemSlot(itemIndexFromEntry("pc_drop_coal"), 10),
  57.             ItemSlot(itemIndexFromEntry("pc_drop_rock"), 10),
  58.             ItemSlot(itemIndexFromEntry("pc_drop_tin"), 12)}},
  59.    
  60.     {0, "Crafts 3", {
  61.         "Use the advanced crafting table to build a furnace.",
  62.         "Create 3 Tin bars.",
  63.         "Build a tin anvil.",
  64.         "Craft your first tin armor piece."},
  65.         "You can now take shelter safely. Use this opportunity to craft your first armor piece! "
  66.         "Use the advanced crafting table to build a furnace that will allow you to melt ore into bars."
  67.         "Place the furnace on the ground and use it to transform the 12 tin ores into 3 tin bars."
  68.         "Use the furnace again to build an anvil with the 3 tin bars."
  69.         "You can finally craft your first armor piece! Put the anvil on the ground and use it to craft an armor piece. "
  70.         "You can choose between the greaves, the chest and the helmet. "
  71.         "There is an infinite amount of ore in this world. "
  72.         "It will be essential to craft better quality weapons and armors that will allow you to push the limits of exploration even further! "
  73.         "Feel free to mine around to find new ore!", 60, 10, 7, {
  74.             ItemSlot(itemIndexFromEntry("pc_drop_bar_tin"), 3)}},
  75.    
  76.     {0, "Skills", {
  77.         "Obtain 100 souls",
  78.         "Unlock the Run skill."},
  79.         "You must have noticed that when you kill a monster, you receive souls. "
  80.         "These can be used in many ways. "
  81.         "The most important of them is to allow you to develop skills you could never learn otherwise. "
  82.         "You can unlock skills by opening the skill window!", 70, 10, 8, {
  83.             ItemSlot(itemIndexFromEntry("pc_sword_copper"), 1),
  84.             ItemSlot(itemIndexFromEntry("pc_drop_bar_iron"), 3),
  85.             ItemSlot(itemIndexFromEntry("pc_rune_cut1"), 1)}},
  86.    
  87.     {0, "Runes", {
  88.         "Build a runic anvil.",
  89.         "Use the runic anvil to embed the rune\ninto your copper sword’s slot."},
  90.         "Runes are powerful magic items you can embed in your weapon and armor if they have at least one empty slot. "
  91.         "You will also be able to merge multiple identical runes to get an even more powerful one. "
  92.         "You will find runes in chests or defeating rare monsters.", 80, 10, 9, {}},
  93.    
  94.     {0, "Agriculture 1", {
  95.         "Craft a hoe.",
  96.         "Sow the gathered seeds on loose soil."},
  97.         "Food has extraordinary properties. Every time you eat a new meal, it will grant you permanent HP and/or SP bonuses! "
  98.         "However, eating when you're already full will only grant you a temporary HP and/or SP regeneration bonus. "
  99.         "You will also be able to mix some ingredients together to cook new meals that will also grant you "
  100.         "permanent HP/SP bonuses the first time you eat them.\n"
  101.         "Agriculture is an activity you might not want to neglect. Obtaining food in this world will be a long and risky activity, "
  102.         "but if you use the seeds you gather, you will be able to grow fruits and vegetables, and use them for new recipes!"
  103.         "Craft a hoe (O key) which will allow you to remove grass without digging the dirt. "
  104.         "When you obtain seeds, sow them on loose soil and wait patiently for your hard work to bloom.", 90, 10, -1, {}},
  105.    
  106.     {0, "Farming", {
  107.         "Build a manger and place it.",
  108.         "Put wheat inside it.",
  109.         "Tame a chicken."},
  110.         "You probably have seen chickens while exploring the world. "
  111.         "They can be tamed to provide meat and eggs! "
  112.         "To tame them, you must build a manger (using an advanced working table), and place wheat inside. "
  113.         "Nearby chickens will be tamed and remain near the manger. "
  114.         "Alternatively, you could just chase a chicken and try to make it run to the manger!", 100, 10, -1, {}},
  115.    
  116.     {0, "Alchemy", {
  117.         "Build an alchemy table.",
  118.         "Craft a small healing potion."},
  119.         "The flowers of this world are not just mere decorations. "
  120.         "Some have a considerable power which can be unlocked through the art of Alchemy. "
  121.         "A single empty vial and a few flowers will be enough to create multiple potions with various effects!"
  122.         "Build an alchemy table using the advanced crafting table. You will need 5 steel bars to do so. "
  123.         "An empty vial requires glass. Create glass with sand and a furnace.", 110, 10, 12, {}},
  124.    
  125.     {0, "Magic", {
  126.         "Gather 8 wood, 6 wisp dust, 1 leather and 1 ruby.",
  127.         "Craft an enchantment book and a parchment\nwith some paper.",
  128.         "Enchant a gem with the \"Fireball\" spell."},
  129.         "Magic is the ability to manipulate gems and cast powerful spells! "
  130.         "Every gem type corresponds to a particular magic school. Their size represents how powerful the spell you create will be. "
  131.         "Merging gems of the same quality together will create an even higher quality gem, "
  132.         "that will be able to contain a more powerful spell. "
  133.         "Use the advanced working table to craft an enchantment book and a parchment. "
  134.         "Use the enchantment book to enchant a gem with the “Fireball” spell. "
  135.         "To do so, put a parchment in the left slot, a ruby in the right slot, and select “Enchant”.", 120, 10, -1, {}},
  136.    
  137.     {0, "Capture", {
  138.         "Gather 10 amethysts.",
  139.         "Craft a Soul gem using the amethysts.",
  140.         "Capture a monster.",
  141.         "Summon the captured monster."},
  142.         "Soul gems, which you will recognize easily by to their purple color, "
  143.         "are rare gems that allow you to capture monsters and make them your pets. "
  144.         "Summoning them will cost you energy. More powerful monsteres require more energy to use, so be careful! "
  145.         "Tamed monsters will be able to EVOLVE! "
  146.         "Just treat your monster right and have it gain experience during fights! "
  147.         "You can recall a tamed mosnter whenever you want the same way you summoned it, by using the summoning stone. "
  148.         "If a pet’s HP falls to 0, it returns to the gem and can't be summoned for a while.", 130, 10, -1, {}},
  149.    
  150.     {0, "Transformation", {
  151.         "Gather 10 amethysts and 5 steel bars.",
  152.         "Use the advanced crafting table to build\na transformation table.",
  153.         "Transform into a slime and gain\n50 experience points.",
  154.         "Use the experience points to unlock\nthe next transformation."},
  155.         "The transformation table is a powerful magic tool that will allow you to morph "
  156.         "into a multitude of monsters and even use their abilities. "
  157.         "Every monster killed during your transformed state will grant you particular souls "
  158.         "that will allow you to unlock new monsters to transform into.", 140, 10, -1, {}},
  159.        
  160.     {1, "Free the Chloridians!", {
  161.         "Find one of the prisons where Chloridians\nare held captive, and defeat the guards.",
  162.         "Free a Chloridian from its prison.",
  163.         "Go back to the surface and give\nthe freed Chloridian a job."},
  164.         "A long time ago, this world was ruled by the peaceful Chloridian race, a thriving and powerful species. "
  165.         "However, one fateful night their whole civilization was destroyed by a mysterious abominable creature! "
  166.         "These days, the few surviving Chloridians have become slaves and lab rats. Please help them. Please save them. "
  167.         "If you do, I promise they will help you leave this planet and find your way back home. "
  168.         "I need your help. Free them and recreate the civilization that was once ours. Please. "
  169.         "You will find captive Chloridians in the depths of the world, scattered in many places. "
  170.         "Once freed, each Chloridian will find their way back to me. "
  171.         "Once home, you can request the Chlordian of the skills you wish to be helped with. "
  172.         "Manage the village. Make sure to provide them shelter and protection against the nearby dangers. "
  173.         "If by misfortune one of them dies, you won't only lose a villager "
  174.         "but also all of the knowledge acquired by that fallen villager.", 150, 10, -1, {}},
  175.     };
  176. }
Advertisement
Add Comment
Please, Sign In to add comment