Initial commit
Initial commit. Updated release archive.
This commit is contained in:
32
_module/nss/en6_bartender_c2.nss
Normal file
32
_module/nss/en6_bartender_c2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
int GetNumberOfHenchman(object oPC);
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
int iResult;
|
||||
int iIndex;
|
||||
|
||||
iResult = FALSE;
|
||||
if (GetNumberOfHenchman(GetPCSpeaker()) >= 3)
|
||||
iResult=TRUE;
|
||||
|
||||
return iResult;
|
||||
}
|
||||
|
||||
int GetNumberOfHenchman(object oPC)
|
||||
{
|
||||
int iIndex;
|
||||
int iCount;
|
||||
object oHenchman;
|
||||
|
||||
iIndex=1;
|
||||
iCount=0;
|
||||
while (iIndex<11)
|
||||
{
|
||||
oHenchman=GetAssociate(ASSOCIATE_TYPE_HENCHMAN,oPC,iIndex);
|
||||
if (GetIsObjectValid(oHenchman))
|
||||
iCount++;
|
||||
iIndex++;
|
||||
}
|
||||
|
||||
return iCount;
|
||||
}
|
||||
Reference in New Issue
Block a user