@Lefloyd.
Code:
void initsafebox()
{
static PyMethodDef s_methods[] =
{
// SafeBox
{ "GetCurrentSafeboxSize", safeboxGetCurrentSafeboxSize, METH_VARARGS },
{ "GetItemID", safeboxGetItemID, METH_VARARGS },
{ "GetItemCount", safeboxGetItemCount, METH_VARARGS },
{ "GetItemFlags", safeboxGetItemFlags, METH_VARARGS },
{ "GetItemMetinSocket", safeboxGetItemMetinSocket, METH_VARARGS },
{ "GetItemAttribute", safeboxGetItemAttribute, METH_VARARGS },
{ "GetMoney", safeboxGetMoney, METH_VARARGS },
#ifdef ENABLE_GUILD_SAFEBOX
{ "GetGuildItemID", safeboxGetGuildItemID, METH_VARARGS },
{ "GetGuildItemCount", safeboxGetGuildItemCount, METH_VARARGS },
{ "GetGuildItemMetinSocket", safeboxGetGuildItemMetinSocket, METH_VARARGS },
{ "GetGuildItemAttribute", safeboxGetGuildItemAttribute, METH_VARARGS },
{ "GetGuildSize", safeboxGetGuildSize, METH_VARARGS },
{ "GetGuildMoney", safeboxGetGuildMoney, METH_VARARGS },
#endif
// Mall
{ "GetMallItemID", safeboxGetMallItemID, METH_VARARGS },
{ "GetMallItemCount", safeboxGetMallItemCount, METH_VARARGS },
{ "GetMallItemMetinSocket", safeboxGetMallItemMetinSocket, METH_VARARGS },
{ "GetMallItemAttribute", safeboxGetMallItemAttribute, METH_VARARGS },
{ "GetMallSize", safeboxGetMallSize, METH_VARARGS },
{ NULL, NULL, NULL },
};
PyObject * poModule = Py_InitModule("safebox", s_methods);
PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_X_COUNT", CPythonSafeBox::SAFEBOX_SLOT_X_COUNT);
PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_Y_COUNT", CPythonSafeBox::SAFEBOX_SLOT_Y_COUNT);
PyModule_AddIntConstant(poModule, "SAFEBOX_PAGE_SIZE", CPythonSafeBox::SAFEBOX_PAGE_SIZE);
}