NTbot 3.0 이상 수동으로 방나가게 하고 싶을때
분류
봇관련
조회 수
1,074
추천 수
3
NTbot 3.0 이상 부터는 무슨 이유인지는 몰라도 수동으로 방을 나가게 했을때
높은 확률로 헤이가이즈 오류가 나면서 디아가 재실행 됩니다
이게 싫으셨던 분들은 적용해 보세요
scripts폴더의 default.ntj 파일을 열어서 보시면 아래와 같은 코드를 찾아 보실 수 있습니다
==========================================================
function NT_KeyEvents(keycode)
{
var _script;
switch(keycode)
{
case 19:
_script = NTC_FindScript(NTConfig_Script[CurScriptIndex]);
if(_script)
{
if(_script.running)
{
_script.Stop();
SetStatusText("Stopped " + NTConfig_Script[CurScriptIndex]);
}
else
{
Load("bots/" + NTConfig_Script[CurScriptIndex]);
SetStatusText("Now running " + NTConfig_Script[CurScriptIndex]);
}
}
break;
}
==========================================================
위 코드를 찾으셨다면 다음과 같이 수정해주세요
==========================================================
function NT_KeyEvents(keycode)
{
var _script;
switch(keycode)
{
case 19:
_script = NTC_FindScript(NTConfig_Script[CurScriptIndex]);
if(_script)
{
if(_script.running)
{
_script.Stop();
SetStatusText("Stopped " + NTConfig_Script[CurScriptIndex]);
}
else
{
Load("bots/" + NTConfig_Script[CurScriptIndex]);
SetStatusText("Now running " + NTConfig_Script[CurScriptIndex]);
}
}
break;
////////////////////추가된부분 시작//////////////////////////////////
case 45:
_script = NTC_FindScript(NTConfig_Script[CurScriptIndex]);
if(_script)
{
if(_script.running)
{
_script.Stop();
SetStatusText("Script Stopped & ExitGame");
NTC_Delay(500);
ExitGame();
}
else
{
SetStatusText("Script Stopped & ExitGame");
NTC_Delay(500);
ExitGame();
}
}
break;
///////////////////////////////// 추가된 부분 끝///////////////////////////////////////////////
}
}
==========================================================
위처럼 수정하셨다면
스크립트 중간 일시정지는 Pause Break 키이며,
방을 나가게 하고 싶으면 Insert 키를 누르시면 됩니다
(사냥 도중이라도 멈춘후 나갑니다)