feat: add AVA2 64-bit gold protocol and client formatting

This commit is contained in:
shen
2026-10-19 23:23:31 -07:00
parent f386815353
commit 86a769f7dd
12 changed files with 169 additions and 2 deletions
@@ -621,7 +621,12 @@ PyObject * playerSetStatus(PyObject* poSelf, PyObject* poArgs)
PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
return PyLong_FromLongLong(CPythonPlayer::Instance().GetGold64());
}
PyObject * playerGetGold64(PyObject* poSelf, PyObject* poArgs)
{
return PyLong_FromLongLong(CPythonPlayer::Instance().GetGold64());
}
PyObject * playerGetGuildID(PyObject* poSelf, PyObject* poArgs)
@@ -2410,6 +2415,7 @@ void initPlayer()
{ "SetStatus", playerSetStatus, METH_VARARGS },
{ "GetElk", playerGetElk, METH_VARARGS },
{ "GetMoney", playerGetElk, METH_VARARGS },
{ "GetGold64", playerGetGold64, METH_VARARGS },
{ "GetGuildID", playerGetGuildID, METH_VARARGS },
{ "GetGuildName", playerGetGuildName, METH_VARARGS },
{ "GetAlignmentData", playerGetAlignmentData, METH_VARARGS },