feat: add 6th and 7th rare attribute client networking, constants, and locale
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user