Jump to content

[Bugfix]Dungeon music


Recommended Posts

Hey community!

When you specify which music you want to play in your dungeon map at settings.lua, it is always getting replaced with previous map's one(From which you were teleported to). This is happening because each dungeon has it's own unique map index and game cannot locate it from settings.

Here is a simple fix to get original index of that map, it should work as long as you do not have like 3500 dungeon instances of same type, which isn't possible with current Metin2 player count I believe.

In char.cpp search for:

void CHARACTER::MainCharacterPacket()

Replace this variable with the following:

const unsigned mapIndex = GetMapIndex();

const unsigned mapIndex = GetMapIndex() < 10000 ? GetMapIndex() : GetMapIndex() / 10000;



Link to comment
Share on other sites

33 minutes ago, Tierri Lopes said:

Thank you, never noticed it

Same till I started creating my own dungeons. YMIR used tricks to avoid this issue like using the same music in their dungeon as in the map from where you got teleported(Valkus-Blazing Purgatory) or starting the dungeon from the dungeon itself if that makes sense(Devil Tower/Devil's Catacomb).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...