items[nChild].setContSerialOnly(chars[nParent].serial); setptr(&contsp[items[nChild].contserial%HASHMAX], nChild);
clConsole.send("Warning: Char contserial being set by setserial!, this is WRONG - will do nothing.\n");
void setserial(int nChild, int nParent, int nType){ // Sets the serial #'s and adds to pointer arrays  // types: 1-item container, 2-item spawn, 3-Item's owner 4-container is PC/NPC  //        5-NPC's owner, 6-NPC spawned	if (nChild == -1 || nParent == -1) return;	switch(nType)	{	case 1:	    items[nChild].setContSerialOnly(items[nParent].serial);		setptr(&contsp[items[nChild].contserial%HASHMAX], nChild);		break;	case 2:				// Set the Item's Spawner	    items[nChild].spawnserial=items[nParent].serial;		setptr(&spawnsp[items[nChild].spawnserial%HASHMAX], nChild);		break;	case 3:				// Set the Item's Owner	    items[nChild].setOwnSerialOnly(chars[nParent].serial);		setptr(&ownsp[items[nChild].ownserial%HASHMAX], nChild);		break;	case 4:	    items[nChild].setContSerialOnly(chars[nParent].serial);		setptr(&contsp[items[nChild].contserial%HASHMAX], nChild);		break;	case 5:				// Set the Character's Owner		chars[nChild].setOwnSerialOnly(chars[nParent].serial);		setptr(&cownsp[chars[nChild].ownserial%HASHMAX], nChild);		//taken from 6904t2(5/10/99) - AntiChrist		if( nChild != nParent )			chars[nChild].tamed = true;		else			chars[nChild].tamed = false;		break;	case 6:				// Set the character's spawner	    chars[nChild].spawnserial=items[nParent].serial;		setptr(&cspawnsp[chars[nChild].spawnserial%HASHMAX], nChild);		break;	case 7:				// Set the Item in a multi		clConsole.send("Warning: Item multi being set by setserial!, this is WRONG - will do nothing.\n");//		items[nChild].multis=items[nParent].serial;//		setptr(&imultisp[items[nChild].multis%HASHMAX], nChild);		break;	case 8:				//Set the CHARACTER in a multi//		chars[nChild].multis=items[nParent].serial;//		setptr(&cmultisp[chars[nChild].multis%HASHMAX], nChild);		clConsole.send("Warning: Char multi being set by setserial!, this is WRONG - will do nothing.\n");		break;	default:		clConsole.send("Warning: No handler for nType in setserial()");		break;	}}