int keyboard, y;
int keyboard;
void dbl_click_character(UOXSOCKET s, SERIAL target_serial){	int keyboard, y;	unsigned char pdoll[256]="\x88\x00\x05\xA8\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";//	int cc=currchar[s];	P_CHAR pc_currchar = MAKE_CHARREF_LR(currchar[s]);	keyboard=buffer[s][1]&0x80;	//	CHARACTER x = calcCharFromSer( target_serial );	P_CHAR target = FindCharBySerial( target_serial );	if (target == NULL)		return;	if (((target->isNpc())&&(target->id1==(unsigned char)'\x00'))&&		((target->id2==(unsigned char)'\xC8')||		(target->id2==(unsigned char)'\xE2') ||		(target->id2==(unsigned char)'\xE4') ||		(target->id2==(unsigned char)'\xCC') ||		(target->id2==(unsigned char)'\xDC') ||		(target->id2==(unsigned char)'\xD2') ||		(target->id2==(unsigned char)'\xDA') ||		(target->id2==(unsigned char)'\xDB')))	{//if mount		if (chardist(DEREF_P_CHAR(pc_currchar), DEREF_P_CHAR(target))<2 || pc_currchar->isGM())		{			//AntiChrist - cannot ride animals under polymorph effect			if (pc_currchar->polymorph)			{				sysmessage(s, "You cannot ride anything under polymorph effect.");				return;			}			if (pc_currchar->dead)			{				sysmessage(s,"You are dead and cannot do that.");				return;			}			if (target->war)				sysmessage(s,"Your pet is in battle right now!");			else				mounthorse(s, DEREF_P_CHAR(target));		}		else sysmessage(s, "You need to get closer.");		return; 	}//if mount	else if ((target->isNpc())&&((target->id1!=0x01)||(target->id2<0x90)||(target->id2>0x93)))	{//if monster		if (target->id1==0x01&&(target->id2==0x23||target->id2==0x24))		{//if packhorse or packlhama added by JustMichael 8/31/99			if (pc_currchar->Owns(target))			{				if (target->packitem != INVALID_SERIAL)				{					backpack(s, target->packitem);				}				else				{					clConsole.send("Pack animal %i has no backpack!\n",target->serial);				}			}			else			{				sysmessage(s, "That is not your beast of burden!");			}			return;		}		else		{			sysmessage(s, "You cannot open monsters paperdolls.");		}		return; 	}//if monster	else 	{//char		if (target->npcaitype==17)//PlayerVendors		{			npctalk(s,DEREF_P_CHAR(target),"Take a look at my goods.",0);			if (target->packitem != INVALID_SERIAL) backpack(s, target->packitem); // rippers bugfix for vendor bags not opening !!!			return;		}		if (pc_currchar->serial==target->serial)		{//dbl-click self			if ((!keyboard)&&(unmounthorse(s)==0)) return; //on horse			//if not on horse, treat ourselves as any other char		}//self		pdoll[1]=target->ser1;		pdoll[2]=target->ser2;		pdoll[3]=target->ser3;		pdoll[4]=target->ser4;				completetitle = complete_title(DEREF_P_CHAR(target));		int l = strlen(completetitle);		if (l>=60) completetitle[60]=0;		strcpy((char*)&pdoll[5], completetitle);						Xsend(s, pdoll, 66);		return;	}//char}