Wednesday, April 14, 2010

D2NT Script - Lower Kurast Super Chest

Script Description
Bot will take the Lower Kurast waypoint and proceed to locate and open as many super chests (of six) as possible. Does not check the armor or weapon stand, yet. Once it has opened as many as it can, it will proceed to the next script in your character's configuration.

Usage Instructions
Create a new file in /scripts/NTBot/bots/ called NTKurastChests.ntj with this code:
function NTMain() 
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");

NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");

NTA_Initialize();

if(!NTTM_CheckAct())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_CheckAct()");
return;
}

NTTMGR_TownManager();

if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTM_TownMove()");
return;
}

if(!NTM_TakeWaypoint(79))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}

NTP_DoPrecast(true);

var count = 0;

NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 580);

Delay(1000);

if(NTConfig_OpenChest)
{
var _chest;
_chest = NTC_FindUnit(NTC_UNIT_OBJECT, "chest");
if(_chest)
{
do
{
if(NTM_MoveTo(_chest.areaid, _chest.x+2, _chest.y))
{
if(NTC_OpenChest(_chest))
NTSI_PickItems();
}

count = count + 1;

}while(_chest.GetNext());
}
}

NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}

Next, in your character's configuration file (NTConfig_Class_Character.ntl), simply find this:
function NT_LoadConfig() 
{

And add below:
NTConfig_Script.push("NTCloneHunter.ntj");

Enjoy!

No comments:

Post a Comment