Jump to content
  • 0

vanilla gold max


dukaibalu1

Question

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!
Link to comment
  • Answers 15
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

15 answers to this question

Recommended Posts

  • 0

 

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
  • 0

 

 

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
  • 0

 

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

Link to comment

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


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

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