Jump to content

Recommended Posts

Hello everyone,
 
Today i tried to increase the maximum gold limit.
The edited gamefile worked fine and the limit is increased (serverside).
 
The problem is the Clientside part. I've managed to fix the packets but it does not show the amount of Gold Ingame in the Inventory.
 
I hope that someone can help me.
 
db5ae7c0e5.jpg
 
Navicat 5,000,000,000 gold...
 
Ingame 705,032,704. This is problem!
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 15
  • Created
  • Last Reply

Top Posters In This Topic

 

But where do you edit it? Which file?

userinterface pythonplayermodule.cpp

try change this

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

Not Work

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
 
return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}
Link to comment
Share on other sites

 

 

But where do you edit it? Which file?

userinterface pythonplayermodule.cpp

try change this

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

Not Work

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
 
return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

try 


PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
    return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

here you have litle help https://docs.python.org/2/c-api/arg.html

Link to comment
Share on other sites

 

56b4888546.jpg

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
 
return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));  
 
}

 

you need to change on clientside int to unsigned long long'

or maybe you have long long int on serverfiles 

try change gold 500.000.000.000 to 5.000.000.000

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



×
×
  • 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.