sysmessage(nSocket,"You examine the corpse but, decide any further blood samples would be to contaminated.");
sysmessage(nSocket,"You examine the corpse but, decide any further blood samples would be too contaminated.");
void vialtarget(int nSocket) // bug & crashfixed by LB 25 september 1999{	P_ITEM Vial = FindItemBySerial(addmitem[nSocket]);	if (!Vial) return; // should never happen	//	int nTargetID=-1;		//	int cc = currchar[nSocket];	cChar* Player = currchar[nSocket];	cItem* Weapon = Player->getWeapon(); // search for a dagger in the players hand	if (!Weapon || !IsDagger(Weapon->id()) )	{		sysmessage(nSocket,"You do not have a dagger equipped.");		return;	}		int serial=LongFromCharPtr(buffer[nSocket]+7);	if (isCharSerial(serial))	{		cChar* Victim = FindCharBySerial(serial);		if (!Victim)			return;		Vial->more1=0;		if(!Victim->npc)		{			// checkskill hmmm what skill/s has/have to added here LB ...						if( Victim->isSameAs(Player) )			{				if(Victim->hp<=10)				{					sysmessage(nSocket,"You are too wounded to continue.");					return;				}				sysmessage(nSocket,"You prick your finger and fill the vial.");			}			else			{				if (Player->dist(Victim) > 2)				{					sysmessage(nSocket,"That individual is not anywhere near you.");					return;				}				if (Victim->npc)				{					if( Victim->id1==0x00 &&( Victim->id2==0x0c || (Victim->id2>=0x3b && Victim->id2<=0x3d) ))						Vial->more1=1;					// Guard be summuned if in town and good npc					// if good flag criminal					// if evil npc attack necromancer but don't flag criminal				}				else				{					sprintf(temp,"%s has pricked you with a dagger and sampled your blood.",Player->name.c_str());					sysmessage(calcSocketFromChar(Victim),temp);					// flag criminal										}				Karma(Player,Victim,(0-(Victim->karma)));			}			Victim->hp -= (rand()%6)+2;			MakeNecroReg(nSocket,Vial,0x0E24);		}	}	else	{		cItem* Corpse = FindItemBySerial(serial);		if (!Corpse)			return;		if (!Corpse->corpse)			sysmessage(nSocket,"That is not a person or a corpse!");		else		{			Vial->more1=Corpse->more1;			Karma(Player, NULL,-1000);			if (Corpse->more2<4)			{				sysmessage(nSocket,"You take a sample of blood from the corpse.");				MakeNecroReg(nSocket,Vial,0x0E24);				Corpse->more2++;			}			else				sysmessage(nSocket,"You examine the corpse but, decide any further blood samples would be to contaminated.");		}	}}