PyObject *wpEffect( PyObject* self, PyObject* args )
static PyObject *wpEffect( PyObject* self, PyObject* args )
PyObject *wpEffect( PyObject* self, PyObject* args ){	Q_UNUSED(self);		// effect-id, position, speed, duration	if( !checkArgInt( 0 ) || !checkArgCoord( 1 ) || !checkArgInt( 2 ) || !checkArgInt( 3 ) )	{		PyErr_BadArgument();		return 0;	}		cUOTxEffect effect;	effect.setType( ET_STAYSOURCEPOS );	effect.setId( getArgInt( 0 ) );	effect.setSourcePos( getArgCoord( 1 ) );	effect.setDuration( getArgInt( 3 ) );	effect.setSpeed( getArgInt( 2 ) );	Coord_cl displaypos = getArgCoord( 1 );	cUOSocket *mSock;	for( mSock = cNetwork::instance()->first(); mSock; mSock = cNetwork::instance()->next() )	{		if( mSock->player() && mSock->player()->pos().distance( displaypos ) <= mSock->player()->visualRange() )			mSock->send( &effect );	}	return PyTrue;}