masteriodo1988-maker scrie: ↑
0811 03:18:22876 :: Traceback (most recent call last):
0811 03:18:22876 :: File "game.py", line 789, in BINARY_NEW_AddAffect
0811 03:18:22876 :: File "uiTaskBar.py", line 902, in UpdateAntiExpButtonState
0811 03:18:22877 :: AttributeError
0811 03:18:22877 :: :
0811 03:18:22877 :: 'module' object has no attribute 'CheckAffect'
0811 03:18:22877 ::
In Client Src -> PythonPlayerModule.cpp
// Find:
PyObject * playerSetAttackKeyState(PyObject* poSelf, PyObject* poArgs)
// Add Above:
#ifdef ENABLE_ANTI_EXP
PyObject* playerCheckAffect(PyObject* poSelf, PyObject* poArgs)
{
DWORD dwType;
if (!PyTuple_GetUnsignedLong(poArgs, 0, &dwType))
return Py_BadArgument();
BYTE bApplyOn;
if (!PyTuple_GetByte(poArgs, 1, &bApplyOn))
return Py_BadArgument();
int iAffIndex = CPythonPlayer::Instance().GetAffectDataIndex(dwType, bApplyOn);
return Py_BuildValue("b", iAffIndex != -1);
}
#endif
// Find:
{ NULL, NULL, NULL },
// Add Above:
#ifdef ENABLE_ANTI_EXP
{ "CheckAffect", playerCheckAffect, METH_VARARGS },
#endif
Link download actualizat.