• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

Save Account System

Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
1,285
1
511
113
HubMoney
872

M2 Download Center

( Internal )

Spoiler

172914Immagine.png.671f47d6a3e25201df714




Extract root and open intrologin.py
At the beginning add:


import os
from _winreg import *


Search:


self.loginExitButton = GetObject("LoginExitButton")


Add:


self.saveLoginButton = GetObject("SaveLoginButton")
self.loadCredentialButton = GetObject("LoadCredentials")


Finally at the end add:



def ICDev_ECRYPT(self,data):
Data = ''
for l in data:
Data = Data+str(int(ord(l) + 2) * 2)+' '
return Data

def ICDev_DECRYPT(self,data):
Data = ''
data = data.split()
for l in data:
Data = Data+chr((int(l) / 2) - 2)
return Data

def __OnClickSaveLoginButton(self):
id = self.idEditLine.GetText()
pwd = self.pwdEditLine.GetText()
if (len(id) != 0 and len(pwd) != 0):
if not os.path.exists("SOFTWARE\ICDev"):
key = CreateKey(HKEY_CURRENT_USER,"SOFTWARE\ICDev")
SetValueEx(key, "UserID", 0, REG_SZ, self.ICDev_ECRYPT(id))
SetValueEx(key, "Passwd", 0, REG_SZ, self.ICDev_ECRYPT(pwd))
CloseKey(key)
self.PopupNotifyMessage("Datele au fost salvate!",self.SetIDEditLineFocus)


def __OnClickLoadInfoButton(self):
try:
key = OpenKey(HKEY_CURRENT_USER, "SOFTWARE\ICDev", 0, KEY_ALL_ACCESS)
self.Connect(self.ICDev_DECRYPT(QueryValueEx(key, "UserID")[0]),self.ICDev_DECRYPT(QueryValueEx(key, "Passwd")[0]))
except:
self.PopupNotifyMessage("Nu exista nici un account salvat!",self.SetIDEditLineFocus)


Extract locale_xx and open loginwindow.py
Search:



"text" : uiScriptLocale.LOGIN_CONNECT,
},
),
},

Add:


## userDataBoard
{
"name" : "UserDataBoard",
"type" : "thinboard",

"x" : (SCREEN_WIDTH - 208) / 2,
"y" : (SCREEN_HEIGHT - 355),
"width" : 205,
"height" : 55,

"children" :
(
{
"name" : "SaveLoginButton",
"type" : "button",

"x" : 10,
"y" : 0,
"vertical_align" : "center",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",

"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

"text" : uiScriptLocale.LOGIN_SAVE_BUTTON,
},
{
"name" : "LoadCredentials",
"type" : "button",

"x" : 105,
"y" : 0,
"vertical_align" : "center",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",

"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

"text" : uiScriptLocale.LOGIN_LOAD_BUTTON,
},
),
},

In local_interface.txt (local_xx) add:


LOGIN_SAVE_BUTTON Save
LOGIN_LOAD_BUTTON Load

Now add in YourClient/lib:

Hidden Content


  • Give reaction to this post to see the hidden content.
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
1,285
1
511
113
HubMoney
872

M2 Download Center

( Internal )

Spoiler

172914Immagine.png.671f47d6a3e25201df714




Extract root and open intrologin.py
At the beginning add:


import os
from _winreg import *


Search:


self.loginExitButton = GetObject("LoginExitButton")


Add:


self.saveLoginButton = GetObject("SaveLoginButton")
self.loadCredentialButton = GetObject("LoadCredentials")


Finally at the end add:



def ICDev_ECRYPT(self,data):
Data = ''
for l in data:
Data = Data+str(int(ord(l) + 2) * 2)+' '
return Data

def ICDev_DECRYPT(self,data):
Data = ''
data = data.split()
for l in data:
Data = Data+chr((int(l) / 2) - 2)
return Data

def __OnClickSaveLoginButton(self):
id = self.idEditLine.GetText()
pwd = self.pwdEditLine.GetText()
if (len(id) != 0 and len(pwd) != 0):
if not os.path.exists("SOFTWARE\ICDev"):
key = CreateKey(HKEY_CURRENT_USER,"SOFTWARE\ICDev")
SetValueEx(key, "UserID", 0, REG_SZ, self.ICDev_ECRYPT(id))
SetValueEx(key, "Passwd", 0, REG_SZ, self.ICDev_ECRYPT(pwd))
CloseKey(key)
self.PopupNotifyMessage("Datele au fost salvate!",self.SetIDEditLineFocus)


def __OnClickLoadInfoButton(self):
try:
key = OpenKey(HKEY_CURRENT_USER, "SOFTWARE\ICDev", 0, KEY_ALL_ACCESS)
self.Connect(self.ICDev_DECRYPT(QueryValueEx(key, "UserID")[0]),self.ICDev_DECRYPT(QueryValueEx(key, "Passwd")[0]))
except:
self.PopupNotifyMessage("Nu exista nici un account salvat!",self.SetIDEditLineFocus)


Extract locale_xx and open loginwindow.py
Search:



"text" : uiScriptLocale.LOGIN_CONNECT,
},
),
},

Add:


## userDataBoard
{
"name" : "UserDataBoard",
"type" : "thinboard",

"x" : (SCREEN_WIDTH - 208) / 2,
"y" : (SCREEN_HEIGHT - 355),
"width" : 205,
"height" : 55,

"children" :
(
{
"name" : "SaveLoginButton",
"type" : "button",

"x" : 10,
"y" : 0,
"vertical_align" : "center",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",

"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

"text" : uiScriptLocale.LOGIN_SAVE_BUTTON,
},
{
"name" : "LoadCredentials",
"type" : "button",

"x" : 105,
"y" : 0,
"vertical_align" : "center",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",

"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

"text" : uiScriptLocale.LOGIN_LOAD_BUTTON,
},
),
},

In local_interface.txt (local_xx) add:


LOGIN_SAVE_BUTTON Save
LOGIN_LOAD_BUTTON Load

Now add in YourClient/lib:

Hidden Content


  • Give reaction to this post to see the hidden content.

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock