feat: add active branch pet system client bindings, constants, and locale
This commit is contained in:
@@ -171,6 +171,19 @@ PyObject * safeboxGetItemID(PyObject * poSelf, PyObject * poArgs)
|
||||
return Py_BuildValue("i", pInstance->vnum);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetItemNewName(PyObject * poSelf, PyObject * poArgs)
|
||||
{
|
||||
int ipos;
|
||||
if (!PyTuple_GetInteger(poArgs, 0, &ipos))
|
||||
return Py_BadArgument();
|
||||
|
||||
TItemData * pInstance;
|
||||
if (!CPythonSafeBox::Instance().GetItemDataPtr(ipos, &pInstance))
|
||||
return Py_BuildValue("s", "");
|
||||
|
||||
return Py_BuildValue("s", pInstance->extra.name);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetItemCount(PyObject * poSelf, PyObject * poArgs)
|
||||
{
|
||||
int ipos;
|
||||
@@ -316,6 +329,7 @@ void initsafebox()
|
||||
// SafeBox
|
||||
{ "GetCurrentSafeboxSize", safeboxGetCurrentSafeboxSize, METH_VARARGS },
|
||||
{ "GetItemID", safeboxGetItemID, METH_VARARGS },
|
||||
{ "GetItemNewName", safeboxGetItemNewName, METH_VARARGS },
|
||||
{ "GetItemCount", safeboxGetItemCount, METH_VARARGS },
|
||||
{ "GetItemFlags", safeboxGetItemFlags, METH_VARARGS },
|
||||
{ "GetItemMetinSocket", safeboxGetItemMetinSocket, METH_VARARGS },
|
||||
|
||||
Reference in New Issue
Block a user