Jump to content

[C++] Full Renewal For Safebox Password System


Recommended Posts

  • Active+ Member
Posted (edited)

INTRODUCTION & PROBLEM

Hello, I have been wanting to renew the safebox password system in the game for a long time, I wanted to deal with it as soon as I had time, I think the resulting code is useful, so I am sharing it with you so that everyone can use it.

WHY & WHAT DID WE CHANGE?

Many controls were missing within the functions, I think that giving too much freedom to the players in systems where such players can make choices by entering a text may pave the way for the possibility of abuse. Innovations and controls were added both for this and for situations related to the password security of the players. Let's briefly look at what we did;

- The password can only consist of digits.
- The password can consist of a maximum of 6 and a minimum of 4 digits.
- If the player does not change his password and continues to use it as "000000", he will encounter a warning message that he must change his password every time he opens the safebox or mall.
- The player must be near the storekeeper to change the password. (Those who do not prefer it can simply make it a comment line)
- If the player writes his current password as his new password when changing his password, he will receive a warning and the process will not be completed.
- If the player wants to change his password to "000000", game will be asked to choose another password and the process will not be completed.

ATTENTION!

For functions that need to be completely changed, remember that if there is a system or fix-related codes you are already using, you should make this change after adapting it to the function I have given.

HOW TO DO?

First, open the "char.cpp" file.

This is the hidden content, please

Then open the "cmd_general.cpp" file.

This is the hidden content, please

Lastly open the "locale_string.txt" file.

This is the hidden content, please

Best regards, MT2Dev.

Edited by MT2Dev
  • Metin2 Dev 36
  • Eyes 1
  • Good 5
  • Love 12

spacer.png

©

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.