Jump to content

Originale

Inactive Member
  • Posts

    254
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Originale

  1. If this is to edit the source Edit files Char_Manager.cpp Look at the beginning of file m_iMobItemRate = 100; m_iMobDamageRate = 100; m_iMobGoldAmountRate = 100; m_iMobGoldDropRate = 100; m_iMobExpRate = 100; These are the Rates
  2. I just finished a good script or not, that encrypts it's pack "eix, epk" for the official tool MakePack. Here is the Python script: import os import shutil PACK = "uiscript" os.system("_Junction -s "+PACK+" ../_MakePack/pack_source/"+PACK+"") with open(PACK+'.txt' , 'w') as fp: fp.write('FolderName "pack"n') fp.write('PackName "'+PACK+'"nn') fp.write('List ExcludedFolderNameListn{nt".svn"n}nn') fp.write('List ExcludedPathListn{nt"d:/ymir work/bin/"n}nn') fp.write('List ExcludedFileNameListn{nt"_MakePack.exe"n}nn') fp.write('List CSHybridEncryptExeNameListn{nt"py"n}nn') fp.write('List FileListn{n') for root, directories, files in os.walk(""+PACK+""): for filename in files: filepath = os.path.join(root, filename) fp.write('t"'+filepath+'"n') fp.write('}') fp.close() os.system("_MakePack.exe "+PACK+'.txt') os.system("_Junction -d "+PACK+"") source = os.listdir("../_MakePack/") destination = "pack_log/" for files in source: if files.endswith(".log"): shutil.move(files,destination) To succeed has encrypt your pack you must open the python file change this change line 4 PACK = "uiscript" in PACK = "The name of your PACK" Double clic file "_MakePack.py" and now it's over
  3. Can you give me more information about this? Thanks
  4. I am here to learn and understand the functions of the soft MakePack And try to make a little guide on this one I now put the thing I already know Usage: MakePack.exe --createiv <filename> MakePack.exe --openiv <filename> MakePack.exe --extract <packname> <IV filename> // Iv File With Panama MakePack.exe --extract <packname> ex. decryptor: MakePack.exe --extract pack/packName > MakePack_Extract.txt // no iv file (no panama crypt) MakePack.exe --extract pack/packName packName .iv > MakePack_Extract.txt I am looking for a good way to put it simply: D To encrypt but pack Of small python script found on pastebin import os with open('PackName.txt', 'w') as x: try: x.write('FolderName "pack"{n'+'n') x.write('Group PackList'+'n{n') for f in os.listdir(os.getcwd()): if os.path.isdir(f): fileName, fileExtension = os.path.splitext(f) x.write('tGroup '+fileName+'n') x.write('t{'+'n') x.write('ttPathNamet"'+fileName+'/*"'+'n') x.write('ttFixedtTRUE'+'n') x.write('t}'+'n') x.write('}n') finally: x.close() PACK_NAME = "PackName" import os with open('Metin2PackMaker' +PACK_NAME.title() +'.txt' , 'w') as fp: fp.write('nFolderName "pack"n') fp.write('nPackName "'+PACK_NAME+'"n') fp.write('List ExcludedFolderNameListn{ntt".exe n}n') fp.write('List FileListn{n') for root, directories, files in os.walk("d:"): for filename in files: filepath = os.path.join(root, filename) fp.write('"'+filepath+'"n') lenstr = len(os.getcwd()) for root, directories, files in os.walk(os.getcwd()): for filename in files: filepath = os.path.join(root, filename) fp.write('"'+filepath[lenstr+1:] +'"n') fp.write('}') fp.close() and a script that I improved and structured PACK = "PackName" import os with open(PACK.title() +'.txt' , 'w') as fp: fp.write('FolderName "pack"n') fp.write('PackName "'+PACK+'"nn') fp.write('List ExcludedFolderNameListn{nt"Folder_Excluded"n}nn') fp.write('List FileListn{nt') for root, directories, files in os.walk('PackName'): for filename in files: filepath = os.path.join(root, filename) fp.write('"'+filepath+'"nt') fp.write('}') fp.close() Change PackName by yours I think that is soft and has a lot of potential we can unlock
  5. yes I have found is a little tool all other stuff but how to create the text file you want to encrypt pack is thank you for your answer
  6. Change bool GetIPInfo() { #ifndef __WIN32__ struct ifaddrs* ifaddrp = NULL; if (0 != getifaddrs(&ifaddrp)) return false; for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next ) { struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr; if (!ifap->ifa_netmask || // ignore if no netmask sai->sin_addr.s_addr == 0 || // ignore if address is 0.0.0.0 sai->sin_addr.s_addr == 16777343) // ignore if address is 127.0.0.1 continue; #else WSADATA wsa_data; char host_name[100]; HOSTENT* host_ent; int n = 0; if (WSAStartup(0x0101, &wsa_data)) { return false; } gethostname(host_name, sizeof(host_name)); host_ent = gethostbyname(host_name); if (host_ent == NULL) { return false; } for ( ; host_ent->h_addr_list[n] != NULL; ++n) { struct sockaddr_in addr; struct sockaddr_in* sai = &addr; memcpy(&sai->sin_addr.s_addr, host_ent->h_addr_list[n], host_ent->h_length); #endif char * netip = inet_ntoa(sai->sin_addr); if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192 { strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP)); #ifndef __WIN32__ fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "INTERNAL_IP: %sn", netip); #endif } else if (!strncmp(netip, "10.", 3)) { strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP)); #ifndef __WIN32__ fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "INTERNAL_IP: %sn", netip); #endif } else if (g_szPublicIP[0] == '0') { strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP)); #ifndef __WIN32__ fprintf(stderr, "PUBLIC_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "PUBLIC_IP: %sn", netip); #endif } } #ifndef __WIN32__ freeifaddrs( ifaddrp ); #else WSACleanup(); #endif if (g_szPublicIP[0] != '0') return true; else return false; } to bool GetIPInfo() { #ifndef __WIN32__ struct ifaddrs* ifaddrp = NULL; if (0 != getifaddrs(&ifaddrp)) return false; for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next ) { struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr; if (!ifap->ifa_netmask || // ignore if no netmask sai->sin_addr.s_addr == 0 || // ignore if address is 0.0.0.0 sai->sin_addr.s_addr == 16777343) // ignore if address is 127.0.0.1 continue; #else WSADATA wsa_data; char host_name[100]; HOSTENT* host_ent; int n = 0; if (WSAStartup(0x0101, &wsa_data)) { return false; } gethostname(host_name, sizeof(host_name)); host_ent = gethostbyname(host_name); if (host_ent == NULL) { return false; } for ( ; host_ent->h_addr_list[n] != NULL; ++n) { struct sockaddr_in addr; struct sockaddr_in* sai = &addr; memcpy(&sai->sin_addr.s_addr, host_ent->h_addr_list[n], host_ent->h_length); #endif char * netip = inet_ntoa(sai->sin_addr); if (g_szPublicIP[0] == '0') { strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP)); #ifndef __WIN32__ fprintf(stderr, "PUBLIC_IP: %s interface %sn", netip, ifap->ifa_name); #else fprintf(stderr, "PUBLIC_IP: %sn", netip); #endif } } #ifndef __WIN32__ freeifaddrs( ifaddrp ); #else WSACleanup(); #endif if (g_szPublicIP[0] != '0') return true; else return false; }
  7. Good evening friend (s) I wonder if these can compile Tool (Metin2MakePack) with visual studio 2013 ??? Also I wanted to know if this works? [Hidden Content]
  8. Hold the tool to convert the .txt file item_proto with _proto client BETA [Hidden Content]
  9. Maybe in this little piece of code GameLibMapOutdoorRenderHTP.cpp std::pair<float, long> fog_far(fFogFarDistance+1600.0f, 0); std::pair<float, long> fog_near(fFogNearDistance-3200.0f, 0); Edit Or void CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch() { DWORD dwFogColor; float fFogFarDistance; float fFogNearDistance; if (mc_pEnvironmentData) { dwFogColor=mc_pEnvironmentData->FogColor; fFogNearDistance=mc_pEnvironmentData->GetFogNearDistance(); fFogFarDistance=mc_pEnvironmentData->GetFogFarDistance(); } else { dwFogColor=0xffffffff; fFogNearDistance=5000.0f; fFogFarDistance=10000.0f; } I also think that my VIEW_RANGE the order has something to do also
  10. files cmd and cmd_* .cpp in source game Exemple (/item 11299) cmd.cpp before { "item", do_item, 0, POS_DEAD, GM_GOD }, after { "xitem", do_item, 0, POS_DEAD, GM_GOD },
  11. Bug client: 1201 13:44:18992 :: Unknown packet header: 190, last: 32 17 and screen POINT_GOLD
×
×
  • 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.