不會自動輸入密碼,解決方法
由macrosuns大大發表的问题1,中文版的不自动输入密码:
那是因为识别不了中文版密码输入的界面,所以BOT不输入,一般的解决办法是:
打开 scripts/libs/controlInfo.ntl文件,找到如下语句
this.controls.login.location = [
this.controls.login.textBox.accountName,
this.controls.login.editBox.password,
this.controls.login.editBox.accountName,
this.controls.login.button.logIn,
];
修改成
this.controls.login.location = [
//this.controls.login.textBox.accountName,
this.controls.login.editBox.password,
this.controls.login.editBox.accountName,
this.controls.login.button.logIn,
];
就是多加了两个斜杠。
问题2,中文版的加入游戏时,经常在加入和创建游戏处点来点去,原因同上,解决方法也是打开上面那个文件,找到:
this.controls.lobby.join.location = [
this.controls.lobby.join.editBox.gameName,
this.controls.lobby.join.textBox.joinGame,
this.controls.lobby.join.textBox.gameList,
];
修改为
this.controls.lobby.join.location = [
this.controls.lobby.join.editBox.gameName,
this.controls.lobby.join.editBox.password,
//this.controls.lobby.join.textBox.joinGame,
//this.controls.lobby.join.textBox.gameList,
];
希望对大家有用啊。 不錯 這個很實用 修改後 中文版本 也能自動跑嗎? 修改後 中文版本 也能自動跑嗎? 是的 呵呵我成功了 謝謝你 单人MF可以正常使用,但teambot似乎还是不行。 翻了89頁 終於讓我找到了 ...... 改成中文版也能掛了謝謝大大無私分享 // 问题一非常好用,问题二照着改了反而不能建游戏了。 我修改之後//
司機沒問題
不過變成跟車的場場都會斷XD
可能版本不一樣ㄉ關西吧 0.0
現在司機用中文版 跟車的都用英文版掛 就不會場場斷了
照您的方法改了
但還是不能依然只能用純英文版
我房名的判斷 /f l
直接擷取司機的房名
求解 拜託
我在想是不是因為這段的關係
我有看到 English這個字眼
如果是 如何修改 求解
if(chat = controlData.get(controlData.controls.lobby.chat.textBox.channelText))
{
var errors = \'\';
var found_leader = false;
lines = chat.GetText();
for (var friend = 0; friend < lines.length; friend++)
{
if (lines.lastIndexOf(\': \'+leaderAccountName+\',\') > -1)
{
game = \'\';
found_leader = true;
var regOfflineEnglish=/^\\d\\s?:\\s?(\\w*)\\s?,\\s?offline\\s*$/gi;
var regGameNameEnglish=/^\\s*(the\\s)?(game\\s)?([\\w\\s-]*\\w)\\s\\(private\\)\\.\\s*$/gi;
var regGameNameFrench=/^\\s*(la\\s)?(partie\\s)?([\\w\\s-]*\\w)\\s\\(priv[^\\)]*\\)\\.\\s*$/gi;
if (lines.match(regOfflineEnglish))
{
errors += (errors == \'\' ? \'\' : \' \') + \'leader is offline\';
}
if (lines.match(regGameNameEnglish) && lines.substr(1, 1) != \':\')
{
game = lines.replace(regGameNameEnglish, \"$3\");
}
if (!game && lines.match(regGameNameFrench) && lines.substr(1, 1) != \':\')
{
game = lines.replace(regGameNameFrench, \"$3\");
}
if (game != \'\' && game != samegame && game != oldgame)
//if (game != \'\' && game != oldgame)
{
controlData.click(controlData.controls.lobby.button.join);
Delay(200);
controlData.setText( controlData.controls.lobby.join.editBox.gameName, game);
Delay (200);
controlData.setText( controlData.controls.lobby.join.editBox.password, gamepassword);
Delay (200);
controlData.click(controlData.controls.lobby.join.button.joinGame);
check = 1;
}
else
{
if(!errors)
{
errors = \'leader is not in game.\';
}
}
}
}
if (!found_leader && joinChannelInChat)
{
if (errors)
Say(\'Errors : \' + errors);
else
Say(\'I couldn\\\'t find the leader in my friend list.\');
Delay(1500);
}
}
else
{
if (joinChannelInChat)
Say(\'I can\\\'t read the chat!\');
}
}
errors = \'\';
if(game != \'\')
samegame = game;
break;
页:
[1]
2