int i;

void Inc()
{
    ++i;
}

void main()
{
    object oBarfly1 = GetObjectByTag("JHR_CT_BARFLY1");
    object oBarfly2 = GetObjectByTag("JHR_CT_BARFLY2");
    object oBarfly3 = GetObjectByTag("JHR_CT_BARFLY3");
    object oBarfly4 = GetObjectByTag("JHR_CT_BARFLY4");
    i = 0;
    //for (i=1; i<=3; ++i)

        //ActionSpeakString("Hip hip...");
        //ActionWait(1.5);
        //ActionDoCommand(SignalEvent(oBarfly2, EventUserDefined(3000)));
        //ActionDoCommand(SignalEvent(oBarfly3, EventUserDefined(3000)));
        //ActionDoCommand(SignalEvent(oBarfly4, EventUserDefined(3000)));
        //ActionWait(4.0);
    SpeakString("Hip hip...");
    DelayCommand(1.5, SignalEvent(oBarfly2, EventUserDefined(3000)));
    DelayCommand(1.5, SignalEvent(oBarfly3, EventUserDefined(3000)));
    DelayCommand(1.5, SignalEvent(oBarfly4, EventUserDefined(3000)));
    DelayCommand(5.5, SpeakString("Hip hip..."));
    DelayCommand(7.0, SignalEvent(oBarfly2, EventUserDefined(3000)));
    DelayCommand(7.0, SignalEvent(oBarfly3, EventUserDefined(3000)));
    DelayCommand(7.0, SignalEvent(oBarfly4, EventUserDefined(3000)));
    DelayCommand(11.0, SpeakString("Hip hip..."));
    DelayCommand(12.5, SignalEvent(oBarfly2, EventUserDefined(3000)));
    DelayCommand(12.5, SignalEvent(oBarfly3, EventUserDefined(3000)));
    DelayCommand(12.5, SignalEvent(oBarfly4, EventUserDefined(3000)));

    ActionPlayAnimation(ANIMATION_FIREFORGET_DRINK);
    DelayCommand(10.5 + d2(), SignalEvent(oBarfly2, EventUserDefined(3010)));
    DelayCommand(10.5 + d2(), SignalEvent(oBarfly3, EventUserDefined(3010)));
    DelayCommand(10.5 + d2(), SignalEvent(oBarfly4, EventUserDefined(3010)));
}
