else setIntProperty( "carve", Item->carve )
int Py_WPItemSetAttr( Py_WPItem *self, char *name, PyObject *value ){	if( !strcmp( name, "id" ) )		self->Item->setId( PyInt_AS_LONG( value ) );	//else setStrProperty( "name", Item->name )	else if( !strcmp( "name", name ) )		self->Item->setName( PyString_AS_STRING( value ) ); 	else if( !strcmp( "name2", name ) )		self->Item->setName2( PyString_AS_STRING( value ) );		else if( !strcmp( "color", name ) )		self->Item->setColor( PyInt_AS_LONG( value ) );	else if( !strcmp( "amount", name ) )		self->Item->setAmount( PyInt_AS_LONG( value ) );	else if( !strcmp( "amount2", name ) )		self->Item->setAmount2( PyInt_AS_LONG( value ) );	else setIntProperty( "serial", Item->serial )	else setIntProperty( "x", Item->pos.x )	else setIntProperty( "y", Item->pos.y )	else setIntProperty( "z", Item->pos.z )	else setIntProperty( "plane", Item->pos.plane )		else if( !strcmp( name, "layer" ) )		self->Item->setLayer( PyInt_AS_LONG( value ) );		else if( !strcmp( name, "twohanded" ) )		self->Item->setTwohanded( ( PyInt_AS_LONG( value ) != 0 ) ? true : false );	else if( !strcmp( name, "type" ) )		self->Item->setType( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "hp" ) )		self->Item->setHp( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "maxhp" ) )		self->Item->setMaxhp( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "type2" ) )		self->Item->setType2( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "racehate" ) )		self->Item->setRacehate( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "weight" ) )		self->Item->setWeight( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "moreb1" ) )		self->Item->setMoreb1( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "moreb2" ) )		self->Item->setMoreb1( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "moreb3" ) )		self->Item->setMoreb1( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "moreb4" ) )		self->Item->setMoreb1( PyInt_AS_LONG( value ) );	// CONTAINER!!	else setIntProperty( "more1", Item->more1 )	else setIntProperty( "more2", Item->more2 )	else setIntProperty( "more3", Item->more3 )	else setIntProperty( "more4", Item->more4 )	else setIntProperty( "morex", Item->morex )	else setIntProperty( "morey", Item->morey )	else setIntProperty( "morez", Item->morez )	else setIntProperty( "doordir", Item->doordir )	else setIntProperty( "dooropen", Item->dooropen )	// PILEABLE	else setIntProperty( "dye", Item->dye )	else setIntProperty( "defense", Item->def )	else setIntProperty( "str", Item->st )	else setIntProperty( "dex", Item->dx )	else setIntProperty( "int", Item->in )	else setIntProperty( "str2", Item->st2 )	else setIntProperty( "dex2", Item->dx2 )	else setIntProperty( "int2", Item->in2 )	else if( !strcmp( name, "speed" ) )		self->Item->setSpeed( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "corpse" ) )		self->Item->setCorpse( ( PyInt_AS_LONG( value ) == 0 ) ? false : true );	else if( !strcmp( name, "lodamage" ) )		self->Item->setLodamage( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "hidamage" ) )		self->Item->setHidamage( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "smelt" ) )		self->Item->setSmelt( PyInt_AS_LONG( value ) );	else if( !strcmp( name, "secured" ) )		self->Item->setSecured( ( PyInt_AS_LONG( value ) == 1 ) ? true : false );	else setIntProperty( "moveable", Item->magic )	else setIntProperty( "gatetime", Item->gatetime )	else setIntProperty( "gatenumber", Item->gatenumber )	else setIntProperty( "decaytime", Item->decaytime )	// ownserial	else setIntProperty( "visible", Item->visible )	// spanserial	else setIntProperty( "dir", Item->dir ) // lightsource type	else setIntProperty( "priv", Item->priv ) 	else setIntProperty( "value", Item->value ) 	else setIntProperty( "restock", Item->restock )	else setIntProperty( "value", Item->value ) 	else setIntProperty( "disabled", Item->disabled )	else setStrProperty( "disabledmsg", Item->disabledmsg ) 	else setIntProperty( "poisoned", Item->poisoned ) 	else if( !strcmp( name, "murderer" ) )		self->Item->setMurderer( PyString_AS_STRING( value ) );	else setIntProperty( "murdertime", Item->murdertime ) 	else setIntProperty( "rank", Item->rank ) 	else setStrProperty( "creator", Item->creator ) 	else setIntProperty( "good", Item->good ) 	else setIntProperty( "madewith", Item->madewith ) 	else setStrProperty( "desc", Item->desc ) 	else setIntProperty( "carve", Item->carve ) 	else if( !strcmp( name, "spawnregion" ) )		self->Item->setSpawnRegion( PyString_AS_STRING( value ) );	// incognito	return 0;}