로그에 아이템 집은 장소 표시하기
분류
봇관련
조회 수
3,681
추천 수
52
[D2NT1.7.2 and NTBot3.6]
KEPT한 모든 아이템 집은 장소를 로그에 기록해 줍니다.
아래 링크 첫번째 파일을 참고하여 수정하세요.
http://tradia.me/diablo2/download/59443 <<<클릭
로그 파일 생성은 영문판만 가능합니다.
D2NT메니져 출력은 한글, 영문판 모두 지원합니다.(영문판 권장, 한글판은 글자가 깨지는 경우가 있습니다.)
수정하기가 힘들거나 수정후 에러가 발생하면 위 링크 첫번째 자료의
default.ntj 교체와 common 폴더의 모든 파일을 scripts\libs\common 폴더에 넣어 주세요.
삥밥 스크립트를 사용하신다면 아래 댓글을 읽어 보세요.
==============================================
function DB_AreaWrite()
{
var _file
var _area
_file = FileOpen("libs/["+me.charname+"].txt", 1)
_area = GetArea();
if(_area)
_file.WriteLine(_area.name);
_file.Close();
}
=============================================
1.
위 함수를 카피하여 D2NT\scripts\libs\common폴더의 NTCommon를 열어
하단에 추가해 줍니다.
2.
D2NT\scripts\libs\common폴더의 NTSnagIt를 열어
function NTSI_SnagIt()
{
var _itemtosnag;
_NTSI_ItemQueue = new NTSI_ItemListInt(null, NTConfig_SnagRange);
_NTSI_ItemQueue.Update();
_itemtosnag = _NTSI_ItemQueue.getClosest();
if(_itemtosnag)
{
var _itemfound;
var _itemunit;
var _prearea;
var _area; // 추가
.
.
.
(중간 생략)
.
.
.
if(_itemtosnag.ShouldSnag == 10)
{
if(NTT_CheckSpace(_itemunit.xsize, _itemunit.ysize))
{
switch(_itemunit.quality)
{
case 4:
Print("Pick up yc3" + _itemunit.name);
DB_AreaWrite() // 추가
break;
case 5:
Print("Pick up yc2" + _itemunit.name);
DB_AreaWrite() // 추가
break;
case 6:
Print("Pick up yc9" + _itemunit.name);
DB_AreaWrite() // 추가
break;
case 7:
Print("Pick up yc4" + _itemunit.name);
DB_AreaWrite() // 추가
break;
case 8:
Print("Pick up yc8" + _itemunit.name);
DB_AreaWrite() // 추가
break;
default:
Print("Pick up yc0" + _itemunit.name);
if(_itemunit.itemtype != 4 && (_itemunit.itemtype < 76 || _itemunit.itemtype > 81))
{ // 추가
_area = GetArea(); // 추가
if(_area) // 추가
NTC_SendLogToOOG("Kept [" + NTC_ItemQualityToNameList[_itemunit.quality] + "] " + _itemunit.name + "(" + _area.name + ")"); // 수정
} // 추가
break;
}
=================================================================
보석은 로그 기록을 원하지 않는다면
if(_itemunit.itemtype != 4 && (_itemunit.itemtype < 76 || _itemunit.itemtype > 81)) // 를
if(_itemunit.itemtype != 4 && (_itemunit.itemtype < 76 || _itemunit.itemtype > 81)&& (_itemunit.itemtype < 91 || _itemunit.itemtype > 102)) //로 수정
==================================================================
3.
D2NT\scripts\libs\common폴더의 NTTownManager를 열어
function NTTMGR_IDItems(npc)
{
var _tome, _scroll;
var _result;
var _items = NTT_GetUnidItems();
var _file // 추가
var _area // 추가
_file = FileOpen("libs/["+me.charname+"].txt", 0) // 추가
_area=_file.ReadLine(); // 추가
_file.Close(); // 추가
if(!_items || _items.length < 1)
return true;
_tome = NTT_GetTome();
if(_tome && _tome.GetStat(70) < _items.length)
NTT_FillTome(npc);
for(var i = 0 ; i < _items.length ; i++)
{
if(NTSI_CheckItem(_items[i]) > 0)
NTC_SendLogToOOG("Kept [" + NTC_ItemQualityToNameList[_items[i].quality] + "] " + _items[i].name+"("+_area+")"); // 수정
else
{
if(_tome)
_result = NTT_IdItem(_tome, _items[i]);
else
{
_scroll = NTT_GetScroll();
if(!_scroll)
{
NTT_BuyScrolls(npc);
_scroll = NTT_GetScroll();
}
_result = NTT_IdItem(_scroll, _items[i]);
}
if(_result && NTSI_CheckItem(_items[i]) > 0)
NTC_SendLogToOOG("Kept [" + NTC_ItemQualityToNameList[_items[i].quality] + "] " + _items[i].name+"("+_area+")"); // 수정
else
NTT_ShopItem(_items[i], npc, 1);
}
}
}


* _file 오류가 나시나요?
http://www.durune.com/2010/zboard.php?id=dia3_xfile&page=1&sn1=&divpage=10&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=58988

