// mod_client_enter,prc_onenter
/////////////////////////////////////////////////////////////////////
//
// This script has been auto-generated by HakInstaller to call
// multiple handlers for the oncliententer event.
//
/////////////////////////////////////////////////////////////////////

void main()
{
    ExecuteScript("mod_client_enter", OBJECT_SELF);
    ExecuteScript("prc_onenter", OBJECT_SELF);
    int nPCCount;
    object oPC = GetFirstPC();
    while(GetIsObjectValid(oPC))
    {
        nPCCount++;
        oPC = GetNextPC();
    }
    if(nPCCount > 0)
    {
        int nHenchmen = 5/nPCCount;
        SetMaxHenchmen(nHenchmen);
    }
}
