Sonitexx Posted November 12, 2018 at 03:00 PM Share Posted November 12, 2018 at 03:00 PM 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; Greetings, Sonitex Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted November 12, 2018 at 05:14 PM Share Posted November 12, 2018 at 05:14 PM Thank you, never noticed it Link to comment Share on other sites More sharing options...
Sonitexx Posted November 12, 2018 at 05:51 PM Author Share Posted November 12, 2018 at 05:51 PM 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now