Search the Community
Showing results for tags 'c#'.
-
Hi all, i created a tool for my Server that can be used to create from scratch a mob drop item (should be faster than doing it by hand). I decided to post it for the community hoping that it will help on building your servers speeding up the annoying steps of adjusting the drop of your mobs manually. In order to change the language of the mobs / items that are going to be used in the software you need to use your mob_names.txt and item_names.txt and place it in the folder names of the software. Download Link: MobDropHelper Source code: GITHUB or M2DL VirusTotal: Virustotal Create txt: Will create an empty txt file called mob_drop_info.txt if it does not exist in a subfolder called mob_drop where the exe file is located. Open file: Will open automatically and show the content of the mob_drop_info.txt from the mob_drop folder Open group: Will open a new group in your mob_drop_info.txt using the name of the mob you are indicating in the search box on the left side Add Field: will add the drop value with the corresponding values you choosed Close Group: will close the current group Write to file: will automatically write the content of the text you see in the program to the mob_drop_info.txt in the mob_drop folder (it will empty the file and the write the current content) Hopefully this will help you improving the speed of building a decent drop for your servers. Regards. 4lphA
-
Download Alternative download links → Metin2.download Original topic: Before: After: You may remember this design from the original launcher and Musicinstructor's autopatcher. -------------- Https solution: Website with https may not work. To fix this in ListDownloader.cs, FileDownloader.cs, Networking.cs you can find "new WebClient();" Just add this before: "ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;" You can edit Tls12 to Tls11 or SSl3 but probably Tls12 is what will work. Also you need to right click to Sanchez.Patcher project and set Target Framework from .NET 4.0 to 4.5 or greater to use Tls12. -------------- Patchlist.txt generator php: You can use this php to generate the patchlist from the web so you don't need to do it on windows. <?php if (isset($_GET['pass']) && $_GET['pass'] === 'somepasswordhere') { $excluded_files = array('patchlist.txt', 'metin2.cfg', 'generate.php', 'syserr.txt', 'log.txt', 'ErrorLog.txt', '.htaccess'); $excluded_folders = array('news'); $folder_to_check = './'; $list_file = 'patchlist.txt'; $file_handle = fopen($list_file, 'w'); if ($file_handle === false) { die("Can not open file '$list_file' for write."); } function readDirectory($folder, $excluded_files, $excluded_folders, $file_handle, $base_path) { $files = scandir($folder); foreach ($files as $file) { if ($file == '.' || $file == '..') { continue; } if (in_array($file, $excluded_files) || in_array($file, $excluded_folders)) { continue; } $full_path = $folder . '/' . $file; $relative_path = $base_path . '/' . $file; if (is_dir($full_path)) { readDirectory($full_path, $excluded_files, $excluded_folders, $file_handle, $relative_path); } elseif (is_file($full_path)) { $hash = hash_file('crc32b', $full_path); $size = filesize($full_path); $formatted_name = ltrim($relative_path, './'); fwrite($file_handle, "$formatted_name $hash $size" . PHP_EOL); } } } readDirectory($folder_to_check, $excluded_files, $excluded_folders, $file_handle, $folder_to_check); fclose($file_handle); echo "patchlist.txt successfully generated!"; } else { http_response_code(404); } www.metin2.com/patch/generate.php?pass=somepasswordhere