XP 봇, 인벤참 사라지는거 방지하기
분류
봇관련
조회 수
4,588
추천 수
2
상점창 상태에서, 포션 정리 하다가, 참을 집을경우
상점창 취소하고, 바닥에 참을 일단 떨군후, 다시 줍게 하였습니다.
scripts\libs\common 폴더에 d2jsp-common.d2l 에서 다음처럼 수정하세요.
1. 기존 function DC_ClearCursor 함수 전체를 아래처럼 주석처리 합니다.
/* <-- 주석처리시작
function DC_ClearCursor() {
----- 중략 ---------
}
주석처리 끝 ---> */
2. 주석처리 바로 밑줄에 다음 복사 부분 붙여넣기 합니다. 저장 합니다.
//여기부터 복사
function DC_ClearCursor() {
// Quit if no item is on the cursor
if (!me.itemoncursor) { return true; }
// Get the item on cursor
_cursoritem = DC_getItem(null,4);
_checkresult = (njipCheckGoodItem(_cursoritem, NJIP_CHECK_SIMPLE) === 0) ? true : false;
if(!_checkresult) {
if(me.miscscreenmode == 1) {
npc=DC_getItem(null,101);
DT_MenuCancel(npc,1);
// We found a item on cursor
if (_cursoritem) {
// Init the timer
var _timer = DC_Timeout * 1000;
// Loop while the item is not dropped
do {
// For each 0.5 second, retry the cancel
if ((_timer % 500) === 0) { _cursoritem.cancel(); }
// Decrease the timer
_timer -= 25;
delay(25);
} while(me.itemoncursor && _timer > 0);
}
delay(500);
_item = getUnit(4);
if(_item) do{
_checkresult = (njipCheckGoodItem(_item, NJIP_CHECK_SIMPLE) === 0) ? true : false;
if(!_checkresult && (_item.mode == 3 || _item.mode == 5) && (_item.code == "cm1" && _item.code == "cm2" && _item.code == "cm3")) {
DM_MoveTo(_item.x + 2, _item.y, true);
DC_DoClick(0,0,_item);
}
}while(_item && _item.getNext());
}
}
// We found a item on cursor
if (_cursoritem) {
// Init the timer
var _timer = DC_Timeout * 1000;
// Loop while the item is not dropped
do {
// For each 0.5 second, retry the cancel
if ((_timer % 500) === 0) { _cursoritem.cancel(); }
// Decrease the timer
_timer -= 25;
delay(25);
} while(me.itemoncursor && _timer > 0);
}
// Check if the item is still on cursor
if (me.itemoncursor) { return false; }
else { return true; }
}
//여기까지 복사
3. settings 폴더 uniques.nip파일에
Name = large charm : Quality = Unique ;라지유닉참
추가 합니다.