2013年12月5日木曜日

SDTになると動くマクロ

SDTにESでコイン集めをしたい

PUBLIC time

WHILE TRUE
    time = gettime() - gettime(0,G_TIME_YY*10000+G_TIME_MM*100+G_TIME_DD)

    ifb (time>=59400 and time<=63000) or (time>=72000 and time<=75600)//SDT

        //狩り

    ELSEif time<59400
        print "SDTまであと"+timer(59400)
        sleep(1)
    ELSEif time>63000 and time<72000
        print "SDTまであと"+timer(72000)
        sleep(1)
    ELSEif time>75600
        print "SDT終了"
        sleep(1)
    endif
WEND

function timer(x)
    now = x-time
    h = INT(now/3600)
    m = INT((now-(h*3600))/60)
    s = INT(now-((h*3600)+(m*60)))
    result = h+"時間"+m+"分"+s+"秒"
fend

0 件のコメント:

コメントを投稿