goldsfx( k, servicePay );
void MsgBoardQuestEscortArrive( P_CHAR pc_npc, int pcIndex ){	//int i = npcIndex;	int k = pcIndex;	//P_CHAR pc_npc = MAKE_CHARREF_LR(npcIndex);		// Calculate payment for services rendered	int servicePay = ( RandomNum(0, 20) * RandomNum(1, 30) );  // Equals a range of 0 to 600 possible gold with a 5% chance of getting 0 gold		// If they have no money, well, oops!	if ( servicePay == 0 )	{		sprintf( (char*)temp, "Thank you %s for thy service. We have made it safely to %s. Alas, I seem to be a little short on gold. I have nothing to pay you with.", currchar[k]->name.c_str(), QString("%1").arg(pc_npc->questDestRegion()).latin1() );		npctalk( k, pc_npc, (char*)temp, 0 );	}	else // Otherwise pay the poor sod for his time	{		// Less than 75 gold for a escort is pretty cheesey, so if its between 1 and 75, add a randum amount of between 75 to 100 gold		if ( servicePay < 75 ) servicePay += RandomNum(75, 100);		addgold( k, servicePay );		goldsfx( k, servicePay );		sprintf( (char*)temp, "Thank you %s for thy service. We have made it safely to %s. Here is thy pay as promised.", currchar[k]->name.c_str(), QString("%1").arg(pc_npc->questDestRegion()).latin1() );		npctalk( k, pc_npc, (char*)temp, 0 );	}		// Inform the PC of what he has just been given as payment	sprintf( (char*)temp, "You have just received %d gold coins from %s %s", servicePay, pc_npc->name.c_str(), pc_npc->title().latin1() );	sysmessage( k, (char*)temp );		// Take the NPC out of quest mode	pc_npc->npcWander = 2;						// Wander freely	pc_npc->ftarg = INVALID_SERIAL;				// Reset follow target	pc_npc->setQuestType(0);						// Reset quest type	pc_npc->setQuestDestRegion(0);				// Reset quest destination region		// Set a timer to automatically delete the NPC	pc_npc->summontimer = ( uiCurrentTime + ( MY_CLOCKS_PER_SEC * SrvParams->escortdoneexpire() ) );		pc_npc->ownserial=-1;}