Docs /Guías paso a paso /Cómo crear una quest

Cómo crear una quest

Ejemplo: un NPC de quests en Lorencia con una cadena de misiones para jugadores nuevos: matar Goblins, juntar un ítem y llegar a nivel 100, con premios de bolsa. Se hace todo con CustomQuest.txt, sin tocar el cliente, y funciona igual en SSeMU 2 y S6.

1. El NPC

Elegí un NPC: uno del juego o uno propio creado con Cómo agregar un NPC (por ejemplo, el 900). Ponelo en el mapa con Spawn, sección 0.

2. Los premios

Cada quest da una bolsa de ItemBagManager.txt. Armá una bolsa por quest (zen, joyas, un ítem) y anotá su SpecialValue.

3. CustomQuest.txt

0
// NpcClass   Enable_Al0   Enable_Al1   Enable_Al2   Enable_Al3
   900        1            1            1            1
end
1
// QuestIndex   MinLevel   MaxLevel   MinReset   MaxReset   Repeatable   BagReward   DW   DK   FE   MG   DL   QuestName             QuestDesc
   0            1          60         *          *          0            21          1    1    1    1    1    "Primeros pasos"      "Cazá Goblins en Lorencia."
   1            30         100        *          *          0            22          1    1    1    1    1    "El ojo del diablo"   "Conseguí un Devil's Eye."
   2            1          400        *          *          0            23          1    1    1    1    1    "Camino al 100"       "Llegá a nivel 100."
end
2
// QuestIndex   ObjectiveType   ObjectiveMap   ObjectiveIndex   ObjectiveLevel   ObjectiveCount   DW   DK   FE   MG   DL   Comment
   0            0               0              26               *                30               1    1    1    1    1    // Matar 30 Goblins en Lorencia
   1            1               *              7185             *                1                1    1    1    1    1    // Entregar 1 Devil's Eye
   2            3               *              *                *                100              1    1    1    1    1    // Llegar a nivel 100
end
ObjectiveTypeObjetivoObjectiveIndex
0Matar monstruosNúmero del monstruo
1Juntar ítems (se quitan al entregar)Ítem como número (sección × 512 + índice)
2Entregar zen*
3Llegar a un nivel*
4Llegar a un reset*
  • Una quest puede tener varios objetivos (varias líneas con el mismo QuestIndex).
  • Repeatable = 1 permite repetirla (por ejemplo, una diaria de juntar zen).
  • Con Enable_Al1~3 podés hacer un NPC de quests solo para VIP.
  • Con CustomQuestTrackerSwitch = 1 en GameServerInfo - Custom.dat el jugador ve el progreso en pantalla.
No cambies el QuestIndex de una quest que ya usan los jugadores: el progreso se guarda en la base de datos con ese número.

Recargá con /reload. No hace falta repartir nada al cliente.