HoS_PRC8/_mod/_module/nss/cg_assreport.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

24 lines
586 B
Plaintext

// find assassins
void main()
{
string sMsg="";
object oPC=GetFirstPC();
object oAss;
int nT;
while(oPC!=OBJECT_INVALID)
{ // !OI
oAss=GetLocalObject(oPC,"oCGAssassin");
if (oAss!=OBJECT_INVALID)
{ // an assassin
sMsg=GetName(oAss)+" hired to go after ";
nT=GetLocalInt(oAss,"nTarget");
if (nT==1) sMsg=sMsg+"unclean.";
else if (nT==2) sMsg=sMsg+"spider cultists.";
else if (nT==3) sMsg=sMsg+"undead.";
else if (nT==4) sMsg=sMsg+"dwarves.";
} // an assassin
oPC=GetNextPC();
} // !OI
SetCustomToken(90001,sMsg);
}