feat: add 6th and 7th rare attribute client networking, constants, and locale

This commit is contained in:
shen
2026-10-20 01:46:17 -07:00
parent 74044c59c1
commit 2fc99d2fe7
9 changed files with 161 additions and 0 deletions
@@ -1738,12 +1738,46 @@ static PyObject* netSendAva2DropQuery(PyObject*,PyObject* args) {
return PyInt_FromLong(CPythonNetworkStream::Instance().SendAva2DropQuery(BYTE(sub),vnum));
}
#if defined(ENABLE_ATTR_6TH_7TH)
PyObject* netSend67AttrPacket(PyObject* poSelf, PyObject* poArgs)
{
int iMaterialCount;
if (!PyTuple_GetInteger(poArgs, 0, &iMaterialCount))
return Py_BuildException();
int iSupportCount;
if (!PyTuple_GetInteger(poArgs, 1, &iSupportCount))
return Py_BuildException();
int iSupportPos;
if (!PyTuple_GetInteger(poArgs, 2, &iSupportPos))
return Py_BuildException();
int iItemPos;
if (!PyTuple_GetInteger(poArgs, 3, &iItemPos))
return Py_BuildException();
CPythonNetworkStream::Instance().Send67AttrPacket(iMaterialCount, iSupportCount, iSupportPos, iItemPos);
return Py_BuildNone();
}
PyObject* netSend67AttrClosePacket(PyObject* poSelf, PyObject* poArgs)
{
CPythonNetworkStream::Instance().Send67AttrClosePacket();
return Py_BuildNone();
}
#endif
void initnet()
{
static PyMethodDef s_methods[] =
{
{"SendAva2DropQuery",netSendAva2DropQuery,METH_VARARGS},
{ "GetBettingGuildWarValue", netGetBettingGuildWarValue, METH_VARARGS },
#if defined(ENABLE_ATTR_6TH_7TH)
{ "Send67AttrPacket", netSend67AttrPacket, METH_VARARGS },
{ "Send67AttrClosePacket", netSend67AttrClosePacket, METH_VARARGS },
#endif
{ "EnableChatInsultFilter", netEnableChatInsultFilter, METH_VARARGS },
{ "SetServerInfo", netSetServerInfo, METH_VARARGS },
{ "GetServerInfo", netGetServerInfo, METH_VARARGS },