iamnot 發表於 2010-3-5 17:22:52

請問有大大可以幫我改一下攻城時間嗎..

-        script        Agit2_Event        -1,{
        end;

OnClock1800:        //start time for Tues(2), Thurs(4)
OnClock2000:        //end time for Tues(2), Thurs(4)
OnClock2100:        //start time for Sat(6)
OnClock2300:        //end time for Sat(6)

OnAgitInit2:
        // starting time checks
        if((gettime(4)==2) && (gettime(3)>=18 && gettime(3)<21) ||
           (gettime(4)==4) && (gettime(3)>=18 && gettime(3)<21) ||
           (gettime(4)==6) && (gettime(3)>=22 && gettime(3)<23)) {
                if (!agitcheck2()) {
                        AgitStart2;
                }
                end;
        }

        // end time checks
        if ((gettime(4)==2) && (gettime(3)==21) ||
          (gettime(4)==4) && (gettime(3)==21) ||
          (gettime(4)==6) && (gettime(3)==23)) {
                if (agitcheck2()) {
                        AgitEnd2;
                }
                end;
        }
        end;
}


把時間改成星期6,日 晚上7~8點..

sinya 發表於 2010-3-5 18:38:35

教學區有 自已嘗試著改吧
http://okayro.com/thread-89012-1-2.html
頁: [1]
查看完整版本: 請問有大大可以幫我改一下攻城時間嗎..