Re: 進站畫面跟動態看板分開 ~

看板Maple (BBS架站)作者時間23年前 (2001/10/28 05:18), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
本篇是由itoc釋出 前面文章好像找不到了 我就我以前的修改紀錄貼上來給你參考一下 src/include/struct.h #define FILM_EDIT 13 #define FILM_BMW 14 #define FILM_OPENING0 15 #define FILM_OPENING1 16 #define FILM_OPENING2 17 #define FILM_MOVIE 18 /* normal movies */ ^^ 要跟著改數字 然後將 FILM_OPENING0 指向 gem/@/@opening.0 FILM_OPENING1 指向 gem/@/@opening.1 FILM_OPENING2 指向 gem/@/@opening.2 src/util/camera.c static char *list[] = { /* src/include/struct.h */ "welcome", /* FILM_WELCOME */ "bye", /* FILM_GOODBYE */ "apply", /* FILM_APPLY */ "tryout", /* FILM_TRYOUT */ "post", /* FILM_POST */ "gem.hlp", /* FILM_GEM */ "board.hlp", /* FILM_BOARD */ "class.hlp", /* FILM_CLASS */ "friend.hlp", /* FILM_PAL */ "mbox.hlp", /* FILM_MAIL */ "ulist.hlp", /* FILM_ULIST */ "vote.hlp", /* FILM_VOTE */ "more.hlp", /* FILM_MORE */ "edit.hlp", /* FILM_EDIT */ "bmw.hlp", /* FILM_BMW */ + "opening.0", /* FILM_OPENING0 */ + "opening.1", /* FILM_OPENING1 */ + "opening.2", /* FILM_OPENING2 */ NULL /* FILM_MOVIE */ }; src/maple/bbsd.c static inline void tn_main() { + int tmp; clear(); prints("\ 210.60.161.7 ☆ 鳳新高中懷松小築 ☆ bbs.fcsh.khc.edu.tw 或 fcsh.twbbs.org(.tw)\n \ 歡迎光臨【\033[1;33;46m %s \033[m】目前線上人數 [%d] 人\n", str_site, ushm->count); /* film_out((time(&ap_start) % 77) + FILM_MOVIE + 7, 4); */ /* itoc.000223: 開頭動畫 */ + tmp = time(&ap_start) % 3; + if (tmp == 0) + film_out(FILM_OPENING0, 4); + else if (tmp == 1) + film_out(FILM_OPENING1, 4); + else + film_out(FILM_OPENING2, 4); -- ※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: u198-80.u203-203.giga.net.tw

推薦自:140.113.140.168 08/07, , 1F
1
推薦自:140.113.140.168 08/07, 1F
文章代碼(AID): #xsoIL00 (Maple)
文章代碼(AID): #xsoIL00 (Maple)