Jump to content

MT2Dev

Active+ Member
  • Posts

    17
  • Joined

  • Feedback

    0%

Everything posted by MT2Dev

  1. Your right, i'm gonna add control for it. Update; It's done.
  2. IMPORTANT NOTE Only those who use a C++11 standards compiler can apply this edit! (Compilers Supporting C++11; GCC 4.8 and above, Clang 3.3 and above, VS 12 and above) INTRODUCTION & PROBLEM Hello, today we will completely renew the /full_set command from the GM commands and the other commands connected to it (like do_all_skill_master, do_item_full_set, do_attr_full_set). We will replace useless items and their enchantments, make the function content more modern, and add informational messages (C++11 and above). I didn't need to add stones and ores, the items and their enchantments were already op enough. WHY ? Anyone who wants to try something in game with a GM character during the testing phase or on the live server, or who just wants to strengthen their character, has been busy producing special items for themselves through the DB (or with various auxiliary scripts). We aim to get rid of an extra hassle with this code that exists in the original source of the game. SUGGESTION Since the items obtained here will be at a very high rate, I recommend that you make these codes available only to player with GM_IMPLEMENTOR authority. UPDATE - 04/25/2024 Upon the request of a user from @ Amsterdam, a check was added to ensure that the GM character is not lower than the level of the items to be equipped. If the character is lower than 90 Lvl, the function will give an error and will not continue. Apart from this, a separate information message has been added for each item in the item_attr section. SOLUTION First, open the "cmd_gm.cpp" file. [Hidden Content]
  3. INTRODUCTION & PROBLEM Hello, today we will completely renew one of the most frequently used GM commands, the /set command. We will add all the necessary controls to this command, which does not contain any controls or information, and we will activate gender, character and skill group changes and add a new field where you can adjust the magic speed of the players. WHY ? You may think that there is no need for the GM team to use this anyway, but not every GM in the game is obliged to master the game functions, so our aim is to make their job as easy as possible and eliminate the possibility of triggering something wrong. SOLUTION First, open the "cmd_gm.cpp". [Hidden Content]
  4. INTRODUCTION & PROBLEM Hello, today we will fix a few errors, especially the error that caused the core down by giving an unexpected negative (-) arg (number) in the commands (Example; /mob 101 -1), and we will also regulate the use of "ChatPacket" in this functions. WHY ? GMs are already part of the team, you may ask why we need this, you are right, but do not forget that a GM who does not have coding knowledge may accidentally trigger this, let's not leave it to chance. SOLUTION The process we will do is simple, it will be enough to make sure that the given arg value is within the range we want, let's get started. [Hidden Content]
  5. We only have a very small part of the 200 GB leak, I would love to review the whole thing, maybe one day kraizy will return..
  6. It may challenge even someone with a good level of C++ knowledge, because it is a very poorly written game. The main things I can list are a unique homemade network packet system, an incredible amount of unused garbage code, systems written by different software developers in very different styles, and a lot of missing controls (especially the null pointer). It is not difficult to work on it, but it is difficult to make it problem-free, because it really has a lot of shortcomings. If you spend enough time in the Metin2 source to understand how it works and what it is connected to, you can master everything, but it will take years. Best Regards..
  7. Interesting topic, thank you Mali. I wonder if they also cleaned up the old and unused systems in the source? (Passpod, matrix card, pcbang etc.)
  8. Thanks for the fix, i think after that we need gonna add extra check for possible dupe problems we will face in the future. input_main.cpp Find; case HEADER_CG_ITEM_MOVE: Add Under; if (ch->m_pkTimedEvent) // DevFix 74 { ch->ChatPacket (CHAT_TYPE_INFO, LC_TEXT ("취소 되었습니다.")); event_cancel (&ch->m_pkTimedEvent); } I don't remember the exact time but WebZen add this check for almost all actions few years ago, this is not a "fix" exactly but extra check always needed, best regards. (PS; You can add this check for other actions, if you want tho.)
  9. I think OWSAP's ENB Mode what is your looking for, best regards.
  10. I'm not know what is your jigsaw event codes but logicly if your add the event flag check in play func, it's may be solve your problem, regards.
  11. Here is your advice; Open notepad++ and search "gold" in all src folders, check each one and make sure you have changed all int's to long long int, i'm pretty sure you forgot some of these, best regards.
  12. Thanks for the release but someone need to say it, it's look ugly af.
  13. I think that's not the right way to do it, we need this checks, so don't do this ! This is the correct place, change it like this; if (item->GetVnum() == 71151 || item->GetVnum() == 76023) { if ((item2->GetType() == ITEM_WEAPON) || (item2->GetType() == ITEM_ARMOR) || (item2->GetType() == ITEM_BELT)) { bool bCanUse = true; for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i) { if (item2->GetLimitType (i) == LIMIT_LEVEL && item2->GetLimitValue (i) > 40) { bCanUse = false; break; } } if (false == bCanUse) { ChatPacket (CHAT_TYPE_INFO, LC_TEXT ("Àû¿ë ·¹º§º¸´Ù ³ô¾Æ »ç¿ëÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.")); break; } } else { break; } } item2->ChangeAttribute(); Best Regards, MT2Dev.
  14. Hi, For FreeBSD 64 Bit compiling, you need to do too much change in your srcs. If you are new in this, you should stay away for this kind a big update. About 32 Bit machine, just use localhost server that's a best way to do it. Download a 32 bit freebsd .iso on the original site and make a your own local server with VirtualBox. There is too much video about to do this so feel free the check that, good luck. Best regards, MT2Dev.
  15. Hi, If you want to maximize your capacity, best way the do that; give 4GB Ram to each core. ( Ex; 3 Core to 1 Channel 4 * 3 = 12 GB, suppose there are 4 channels 12 * 4 = 48 GB ) So you need minimum 48 GB Ram, also you need new generation SSD and kind a new processor and lastly, good internet speed. Best Regards, MT2Dev.
  16. Hi Devs, Today i wanna share with you my version(edited for metin) of Artistic Style 3.1. [Hidden Content] [Hidden Content] [Hidden Content] What is this ? Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective‑C, C# and Java programming languages. AStyle allows you to change your coding style in bulk without messing with files one by one. It is a great program for editing your sloppy and unsafe source code. (hi Korean devs..) This version edited by me is specially prepared for editing M2 source codes, it does not break the codes or file format. How To Use ? Download the repo, move the folders in your src, double click the .bat files (each folder) and thats it! Have fun, best regards, MT2Dev.
×
×
  • 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.