Jump to content
Logo
Your Metin2 zone for C++, Python, Lua.

New Dungeons Code (Core Based C++ 2024/2025)


GameCore

Recommended Posts

Steps to Add a New Dungeon:

enum DungeonNames {
    DUNGEON_NONE,
    DUNGEON_CAVE_OF_SPIRITS,
    DUNGEON_CRYSTAL,
    DUNGEON_BLUE_DEATH,
    DUNGEON_ASTRAYOS,
    DUNGEON_EASTER,
    DUNGEON_WATER,
    DUNGEON_MANTA,
    DUNGEON_TEST,
    DUNGEON_MAX_NUM,
};

In the New_Dungeons.h enum, add the dungeon name above DUNGEON_MAX_NUM. This name will serve as the dungeon’s ID and also as the variable name. (Example: [1.PNG])
Then, using the variable you entered, add a value to the array variable in New_Dungeons.cpp and configure the settings. (2.png)
Settings are in the following order: dungeon_ID > mapIndex > bossVnum > bossX > bossY > goX > goY > quitX > quitY > minLevel, needItem, needItemCount, cooldownMins

Example: { DUNGEON_NEW_1, 0, 1093, 120, 123, 115, 137, 9999, 9999, 119, 25040, 10, 40 }
If you set quitX and quitY to 9999, the player will be sent back to the village when time is up.
If you set needItemCount to 0, the player won’t be asked for a ticket upon entry.

After these steps, create a quest, copy the provided quest, and change the quest names.
Replace the [--to_be_changed] notes in the quest file with the ID of the new dungeon you added. (Example: [3.png - 4.png])
The setup is complete; you can now enter the new dungeon.

1.png2.png3.png4.PNG

Download:

This is the hidden content, please

Link to comment
On 11/8/2024 at 1:21 PM, GameCore said:

Steps to Add a New Dungeon:

enum DungeonNames {
    DUNGEON_NONE,
    DUNGEON_CAVE_OF_SPIRITS,
    DUNGEON_CRYSTAL,
    DUNGEON_BLUE_DEATH,
    DUNGEON_ASTRAYOS,
    DUNGEON_EASTER,
    DUNGEON_WATER,
    DUNGEON_MANTA,
    DUNGEON_TEST,
    DUNGEON_MAX_NUM,
};

In the New_Dungeons.h enum, add the dungeon name above DUNGEON_MAX_NUM. This name will serve as the dungeon’s ID and also as the variable name. (Example: [1.PNG])
Then, using the variable you entered, add a value to the array variable in New_Dungeons.cpp and configure the settings. (2.png)
Settings are in the following order: dungeon_ID > mapIndex > bossVnum > bossX > bossY > goX > goY > quitX > quitY > minLevel, needItem, needItemCount, cooldownMins

Example: { DUNGEON_NEW_1, 0, 1093, 120, 123, 115, 137, 9999, 9999, 119, 25040, 10, 40 }
If you set quitX and quitY to 9999, the player will be sent back to the village when time is up.
If you set needItemCount to 0, the player won’t be asked for a ticket upon entry.

After these steps, create a quest, copy the provided quest, and change the quest names.
Replace the [--to_be_changed] notes in the quest file with the ID of the new dungeon you added. (Example: [3.png - 4.png])
The setup is complete; you can now enter the new dungeon.

1.png2.png3.png4.PNG

Download:

 

Hidden Content

  • Reply to this topic to see the hidden content.

 

 

Link to comment
  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Style Version: 0.1

The code was completely created from scratch and optimized.

The basic style on which it was created: Default

Created by: Grzyb.ovh

The style was to be simple to browse topics, devoid of graphics, uniform in color and definitely simple. ×

×
×
  • Create New...

Important Information

Do you like cookies? 🍪 We use cookies to provide the highest quality of service. Learn more