Jump to content
×
×
  • Create New...

[binary function / method] net.GetLoginID()


Recommended Posts

  • Premium

M2 Download Center

Download Here ( Internal )

spacer.png

 

UserInterface/PythonNetworkStream.h

search for:

void SetLoginInfo(const char* c_szID, const char* c_szPassword);

paste this under it:

std::string GetLoginID() const {return m_stID;}

UserInterface/PythonNetworkStreamModule.cpp

search for:

PyObject* netSetLoginInfo(PyObject* poSelf, PyObject* poArgs)
{ ... }

paste this under it:

PyObject* netGetLoginID(PyObject* poSelf, PyObject* poArgs)
{
	CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance();
	return Py_BuildValue("s", rkNetStream.GetLoginID().c_str());
}

search for:

{ "SetLoginInfo",						netSetLoginInfo,						METH_VARARGS },

paste this under it:

{ "GetLoginID",								netGetLoginID,								METH_VARARGS },

 

usage: net.GetLoginID()
returns: string

  • Metin2 Dev 2
  • Love 1
  • Good 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.