npctalk(s,DEREF_P_CHAR(pNpc),txt,antispam);
int tl; char machwas;  if (npc==-1 || s==-1) return;  P_CHAR pc_npc      = MAKE_CHARREF_LR(npc); P_CHAR pc_currchar = MAKE_CHARREF_LR(currchar[s]);  if (antispam) { if (pc_npc->antispamtimer<uiCurrentTime) { pc_npc->antispamtimer=uiCurrentTime+MY_CLOCKS_PER_SEC*10; machwas=1; } else machwas=0; } else machwas=1;  if (machwas) { tl=44+strlen(txt)+1; talk[1]=tl>>8; talk[2]=tl%256; talk[3]=pc_npc->ser1; talk[4]=pc_npc->ser2; talk[5]=pc_npc->ser3; talk[6]=pc_npc->ser4; talk[7]=pc_npc->id1; talk[8]=pc_npc->id2; talk[9]=0; pc_npc->saycolor = 0x0481;  talk[12]=0; talk[13]=pc_currchar->fonttype;  if (pc_npc->npcaitype==2) talk[10]=pc_npc->saycolor = 0x0026; else if(pc_npc->isNpc() && !pc_npc->tamed && !pc_npc->guarded && !pc_npc->war) pc_npc->saycolor = 0x005b;  ShortToCharPtr(pc_npc->saycolor, &talk[10]); Xsend(s, talk, 14); Xsend(s, pc_npc->name, 30); Xsend(s, txt, strlen(txt)+1); }
void npctalk(int s, cChar* pNpc, char *txt,char antispam) // NPC speech{	npctalk(s,DEREF_P_CHAR(pNpc),txt,antispam);}