else getIntProperty( "smelt", pItem->smelt() )
PyObject *wpItem_getAttr( wpItem *self, char *name ){	getStrProperty( "name", pItem->getName().latin1() )	else getIntProperty( "id", pItem->id() )	else getStrProperty( "name2", pItem->name2().ascii() )	else getIntProperty( "color", pItem->color() )	else getIntProperty( "amount", pItem->amount() )	else getIntProperty( "amount2", pItem->amount2() )	else getIntProperty( "serial", pItem->serial )	else getIntProperty( "layer", pItem->layer() )	else getIntProperty( "twohanded", pItem->twohanded() ? 1 : 0 )	else getIntProperty( "type", pItem->type() )	else getIntProperty( "type2", pItem->type2() )	else if( !strcmp( "pos", name ) )		return PyGetCoordObject( self->pItem->pos );	// What we contain	else if( !strcmp( "content", name ) )	{		wpContent *content = PyObject_New( wpContent, &wpContentType );		content->contserial = self->pItem->serial;		return (PyObject*)content;	}	// What we're contained in	else if( !strcmp( "container", name ) )	{		if( isItemSerial( self->pItem->contserial ) )			return PyGetItemObject( FindItemBySerial( self->pItem->contserial ) );		else if( isCharSerial( self->pItem->contserial ) )			return PyGetCharObject( FindCharBySerial( self->pItem->contserial ) );		else			return Py_None;	}	// What we contain	else if( !strcmp( "content", name ) )	{		//Py_WPContent *returnVal = PyObject_New( Py_WPContent, &Py_WPContentType );		//returnVal->pItem = self->Item; // Never forget that		//return (PyObject*)returnVal;		return Py_None;	}	else getIntProperty( "weight", pItem->weight() )	else getIntProperty( "totalweight", pItem->totalweight() )	else getIntProperty( "more1", pItem->more1 )	else getIntProperty( "more2", pItem->more2 )	else getIntProperty( "more3", pItem->more3 )	else getIntProperty( "more4", pItem->more4 )	else getIntProperty( "moreb1", pItem->moreb1() )	else getIntProperty( "moreb2", pItem->moreb2() )	else getIntProperty( "moreb3", pItem->moreb3() )	else getIntProperty( "moreb4", pItem->moreb4() )	else getIntProperty( "morex", pItem->morex )	else getIntProperty( "morey", pItem->morey )	else getIntProperty( "morez", pItem->morez )	else getIntProperty( "doordir", pItem->doordir )	else getIntProperty( "dooropen", pItem->dooropen )	else getIntProperty( "dye", pItem->dye )	else getIntProperty( "corpse", pItem->corpse() )	else getIntProperty( "defense", pItem->def )	else getIntProperty( "lodamage", pItem->lodamage() )	else getIntProperty( "hidamage", pItem->hidamage() )	else getIntProperty( "hp", pItem->hp() )	else getIntProperty( "maxhp", pItem->maxhp() )	else getIntProperty( "str", pItem->st )	else getIntProperty( "dex", pItem->dx )	else getIntProperty( "int", pItem->in )	else getIntProperty( "str2", pItem->st2 )	else getIntProperty( "dex2", pItem->dx2 )	else getIntProperty( "int2", pItem->in2 )	else getIntProperty( "speed", pItem->speed() )	else getIntProperty( "smelt", pItem->smelt() )	else getIntProperty( "secured", pItem->secured() ? 1 : 0 )	else getIntProperty( "moveable", pItem->magic )	else getIntProperty( "gatetime", pItem->gatetime )	else getIntProperty( "gatenumber", pItem->gatenumber )	else getIntProperty( "decaytime", pItem->decaytime )		else if( !strcmp( name, "decay" ) )		return PyInt_FromLong( (self->pItem->priv&0x01) ? 1 : 0 );	// ownserial	else getIntProperty( "visible", pItem->visible )	// spanserial	else getIntProperty( "dir", pItem->dir ) // lightsource type	else getIntProperty( "priv", pItem->priv ) 	else getIntProperty( "value", pItem->value ) 	else getIntProperty( "restock", pItem->restock )	else getIntProperty( "value", pItem->value ) 	else getIntProperty( "disabled", pItem->disabled )	else getStrProperty( "disabledmsg", pItem->disabledmsg.c_str() ) 	else getIntProperty( "poisoned", pItem->poisoned ) 	else getStrProperty( "murderer", pItem->murderer().ascii() ) 	else getIntProperty( "murdertime", pItem->murdertime ) 	else getIntProperty( "rank", pItem->rank ) 	else getStrProperty( "creator", pItem->creator.c_str() ) 	else getIntProperty( "good", pItem->good ) 	else getIntProperty( "madewith", pItem->madewith ) 	else getStrProperty( "desc", pItem->desc.c_str() ) 	else getStrProperty( "spawnregion", pItem->spawnregion().latin1() )	// If no property is found search for a method	return Py_FindMethod( wpItemMethods, (PyObject*)self, name );}