viewing paste Unknown #13561 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
OnClock2100:    //start time for Tues(2), Thurs(4)
OnClock2300:    //end time for Tues(2), Thurs(4)
OnClock1600:    //start time for Sat(6)
OnClock1800:    //end time for Sat(6)
 
OnAgitInit:
    // starting time checks
    if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23) ||
       (gettime(4)==4) && (gettime(3)>=21 && gettime(3)<23) ||
       (gettime(4)==6) && (gettime(3)>=16 && gettime(3)<18)) {
        if (!agitcheck()) {
            AgitStart;
            callsub S_DisplayOwners;
        }
        end;
    }
 
    // end time checks
    if ((gettime(4)==2) && (gettime(3)==23) ||
        (gettime(4)==4) && (gettime(3)==23) ||
        (gettime(4)==6) && (gettime(3)==18)) { 
        if (agitcheck()) {
            AgitEnd;
            callsub S_DisplayOwners;
        }
        end;
    }
    end;
Viewed 1079 times, submitted by Pneuma.