While sitting around yesterday, bored due to a temp ban for running 350 hardcore nightmare countess runs in a row in under 4 hours, I decided to write a series of scripts that would significantly play the entire game. So far I have finished act 1. Now as yet I do not have code in place to activate the way-points (see my post yesterday if you know how to do this), but these scripts will start in the rogue encampment and go through the game killing every monster in every area of act 1. Currently I have them seperated into seperate scripts, but when I figure out how to find and activate the waypoints, I will merge them into a single large script called Act1.ntj. Since there dont seem to be any den of evil scripts I figured Id go ahead and release that part now. Meanwhile I'm sitting here bored due to a temp ban for running 350 hardcore andariel runs
So I guess Ill start on act 2. The primary reasons for writing these scripts is that bnet apparently bans you based on the number of games made OR joined. Since the previous ban I just switched my bot to a join bot for killing andy (excluding any games with andy in the title, im not an ass). So by running this series of scripts your games can in effect last several hours. Image all the crappy loot you will get from act 1. (BTW hotspurs drops from normal andariel and she has the highest chance of any boss to drop SOJ).
There are 2 known issues with the bot, first, it sometimes takes awhile to get out of town, this isn't my fault, its the path-finding algorithm D2NT uses, Ill fix that at some point if i get time. The second is that it will not properly clear a path on the way to the den, even though it is told to, again, an issue with D2NT.
Den Of Evil/Cave Bot -

There are 2 known issues with the bot, first, it sometimes takes awhile to get out of town, this isn't my fault, its the path-finding algorithm D2NT uses, Ill fix that at some point if i get time. The second is that it will not properly clear a path on the way to the den, even though it is told to, again, an issue with D2NT.
Den Of Evil/Cave Bot -
Code:
// Created by Anthony Q. Bachler ([email protected])
// written for D2NT 3.1/4.2
// uses the D2NT core functions
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();
for(x = 0;x<15;x++){
NTC_Delay(1000);
}
NTP_DoPrecast(true);
switch(!me.GetQuest(1 , 0) && !me.GetQuest(1 , 12)){
case true: // do den of evil
if(!NTM_MoveToStair(2, 8 , 0 , 0 , true)){
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair(DenOfEvil)");
return;
}
if(!NTM_TakeStair(8)){
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
while(!me.GetQuest(1 , 0) && !me.GetQuest(1 , 12)){
NTA_ClearLevel();
}
break;
case false: // do cave
if(!NTM_MoveToStair(2, 9 , 0 , 0 , true)){
if(!NTM_MoveToStair(2, 8)){ // In Single Player Original Map Cave is area 8
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
break;
}
}
if(!NTM_TakeStair(9)){
if(!NTM_TakeStair(8)){
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
break;
}
}
NTA_ClearLevel();
if(me.areaid == 9){ // Single Player Cave Area 8 is 1 level
if(!NTM_MoveToStair(9 , 13)){
break;
}
if(!NTM_TakeStair(13)){
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
break;
}
NTA_ClearLevel();
}
break;
}
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}