PyObject* wpChar_addtimer( wpChar* self, PyObject* args )
static PyObject* wpChar_addtimer( wpChar* self, PyObject* args )
PyObject* wpChar_addtimer( wpChar* self, PyObject* args ){	if( !self->pChar || self->pChar->free )		return PyFalse;	// Three arguments	if( PyTuple_Size( args ) < 3 || !checkArgInt( 0 ) || !checkArgStr( 1 ) || !PyList_Check( PyTuple_GetItem( args, 2 ) ) )	{		PyErr_BadArgument();		return NULL;	}	UINT32 expiretime = getArgInt( 0 );	QString function = getArgStr( 1 );	PyObject *py_args = PyList_AsTuple( PyTuple_GetItem( args, 2 ) );	cPythonEffect *effect = new cPythonEffect( function, py_args );		// Should we save this effect?	if( checkArgInt( 3 ) && getArgInt( 3 ) != 0 ) 		effect->setSerializable( true );	else		effect->setSerializable( false );		// dispellable	if( checkArgInt( 4 ) && getArgInt( 4 ) != 0 )		effect->dispellable = true;	else		effect->dispellable = false;	// dispelname	if( checkArgStr( 5 ) )		effect->setDispelId( getArgStr( 5 ) );	// dispelfunc	if( checkArgStr( 6 ) )		effect->setDispelFunc( getArgStr( 6 ) );	effect->setDest( self->pChar->serial() );	effect->setExpiretime_ms( expiretime );	TempEffects::instance()->insert( effect );	return PyFalse;}