24 lines
586 B
Plaintext
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);
|
|
}
|