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
https://metin2.dev/topic/5310-vanilla-gold-max/
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));
}
Link to comment
https://metin2.dev/topic/5310-vanilla-gold-max/#findComment-33473
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));
}
Link to comment
https://metin2.dev/topic/5310-vanilla-gold-max/#findComment-33478
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
https://metin2.dev/topic/5310-vanilla-gold-max/#findComment-33480
Share on other sites

56b4888546.jpg

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
 
return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));  
 
}
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/5310-vanilla-gold-max/#findComment-33488
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
https://metin2.dev/topic/5310-vanilla-gold-max/#findComment-33492
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.