UID128969
帖子
精華
主題
積分3932
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限20
註冊時間2009-1-29
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 怒 2021-5-15 11:39 PM |
---|
簽到天數: 161 天 連續簽到: 1 天 [LV.7]常住居民III
|
樓主 |
發表於 2014-5-3 19:33:10
|
顯示全部樓層
本帖最後由 jhg681291 於 2014-5-3 07:36 PM 編輯
我都有放在 Illust 資料夾
用新版的 反而圖片跑不出來 還有 輸入錯誤一樣成功驗證
但是 我改完之後 圖片跑出來了 只剩下輸入錯誤的問題- OnInit:
- // 圖片名稱
- setarray .picture$,
- "checknum1",
- "checknum2",
- "checknum3",
- "checknum4",
- "checknum5",
- "checknum6",
- "checknum7",
- "checknum8",
- "checknum9";
- // 圖片內的數字
- setarray .code$,"1","2","3","4","5","6","7","8","9";
- //錯誤次數
- set .max_attempt,2;
- set .picture_size,getarraysize( .picture$ );
- end;
- OnPCLoginEvent:
- set CheckOK,0;
- set ChecknoOK,0;
- attachnpctimer;
- initnpctimer;
- atcommand "@option 2 0 "+(64|(checkoption(8)*8)|(checkoption(16)*16)|(checkoption(32)*32)|(checkoption(128)*128)|(checkoption(256)*256)|(checkoption(512)*512)|(checkoption(1024)*1024));
- set .@rand_picture,rand( .picture_size );
- mes "登入驗證";
- mes "請輸入從圖片上顯示的英文數字";
- cutin ""+.picture$[.@rand_picture],4;
- do{
- set .@attempt,.@attempt + 1;
- input( .@result );
- set .@result,( .code$[.@rand_picture] == .picture$[.@rand_picture] );
- if( !.@result && .@attempt >= .max_attempt ){
-
- OnTimer60000:
- atcommand "@kick "+strcharinfo(0);
- end;
- }
- }while( .@result );
- stopnpctimer;
- detachnpctimer;
- mes "驗證成功";
- atcommand "@option 0 0 "+((checkoption(8)*8)|(checkoption(16)*16)|(checkoption(32)*32)|(checkoption(128)*128)|(checkoption(256)*256)|(checkoption(512)*512)|(checkoption(1024)*1024));
- cutin "",255;
- close;
- }
複製代碼 |
|