Jump to content

Get a string of constinfo from c++


Go to solution Solved by xP3NG3Rx,

Recommended Posts

  • Premium

You can do it easily, I just don't get the point of it. 

 

 

Call this in your binary:

PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "GetTest", Py_BuildValue("()"));
Make a "GetTest" function in game.py:

	def GetTest(self):
		net.SetTest(constInfo.Test)
Add the receiver function to your binary:

object* netSetTest(PyObject* poSelf, PyObject* poArgs)
{
	char* szTest;
	if (!PyTuple_GetString(poArgs, 0, &szTest))
		return Py_BuildException();

	// Do something with szTest

	return Py_BuildNone();
}
I'm sure there is a better way to solve your problem, so please explain what you want to do.
  • Love 3
Link to comment
Share on other sites

why don't you just do it in python ? :P

i can't xd

 

d0bb39efa18fd0592449bfbc41ef1eb3.png this i can't do with python xD

 

PD: I use the method of p3ng3r and when select character the client close without any log or sysser i go to try now with the method or sanchez.

 

PD2: I have this problem now:

6ad5c856b17f3a819fb41f81964db1fb.png8d8765c19bf4bbcdf50bedc0276b7d27.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Active Member

 

why don't you just do it in python ? :P

i can't xd

 

d0bb39efa18fd0592449bfbc41ef1eb3.png this i can't do with python xD

 

PD: I use the method of p3ng3r and when select character the client close without any log or sysser i go to try now with the method or sanchez.

 

PD2: I have this problem now:

6ad5c856b17f3a819fb41f81964db1fb.png8d8765c19bf4bbcdf50bedc0276b7d27.png

 

 

http://en.wikibooks.org/wiki/C++_Programming/Code/Standard_C_Library/Functions/printf

 

 %d a decimal integer

 :)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

 

 

why don't you just do it in python ? :P

i can't xd

 

d0bb39efa18fd0592449bfbc41ef1eb3.png this i can't do with python xD

 

PD: I use the method of p3ng3r and when select character the client close without any log or sysser i go to try now with the method or sanchez.

 

PD2: I have this problem now:

6ad5c856b17f3a819fb41f81964db1fb.png8d8765c19bf4bbcdf50bedc0276b7d27.png

 

 

http://en.wikibooks.org/wiki/C++_Programming/Code/Standard_C_Library/Functions/printf

 

 %d a decimal integer

  :)

 

O.o Thanks u i dont know c++ and i dont know the functions on c++ Thanks :)

 

The p3ng3r method is the shortest

 

Thanks to all, can close this topic is solved.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 1

      Auto Bravery Cape

    2. 18

      Metin2 Closed Beta Content (2003-2004)

    3. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 25

      Experimental Renderer

    5. 1

      Auto Bravery Cape

    6. 0

      Very strange bug, when creating new char

    7. 5

      Horus Maps & Design

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.