Cant get this script to work... My sorc only stands in town for mb 10secs then leaves the game. Anyone know what the problem might be?
Running on oog 1.4.1 d2bs ntscripts.
Quote:
function NT_Mephisto2()
{
var _area;
var _exits;
var _destx, _desty;
var i;
print("ÿc3Starting Mephisto Script");
if (!NTTM_CheckAct())
throw new Error();
NTTMGR_TownManager();
print("ÿc8Going to Durance of Hate Level 2");
if (!NTTM_TownMove("waypoint"))
throw new Error();
if (!NTM_UsePortal("Waypoint", 101))
{
print("ÿc8Seems we do not have the waypoint, Lets go get it! Traveling to Durance of Hate Level 2");
NTM_TravelTO(101);
print("ÿc8Interacting with Waypoint as we don't have it.");
NTM_GotoWaypoint(101, true, 10000);
}
print("ÿc5Precasting");
NTP_DoPrecast();
print("ÿc8Going to Durance of Hate Level 3");
NTM_TravelTO(102);
if (NTConfig_CheckSafe)
{
if (!NTTMGR_CheckSafe(2))
{
print("Mephisto Safe Check = Failed!");
throw new Error();
}
}
if (NTConfig_Moattrick)
{
NTM_MoveTo(17563, 8071);
delay(1150);
NTM_WalkTo(17581, 8083);
delay(1200);
NTM_MoveTo(17597, 8088);
delay(600);
NTM_MoveTo(17609, 8086);
delay(7000);
var _Target;
_Target = NTC_GetUnit(NTC_UNIT_MONSTER, 242);
for (i = 0; i < 300; i += 1) {
if( _Target.hp > 0) {
NTC_DoCast(59, NTC_HAND_RIGHT, _Target);
} else {
i = 333
NTM_MoveTo(17597, 8088);
}
}
//NTA_KillBoss(242); //Mephisto
//NTM_MoveTo(17609, 8086);
}
if (NTConfig_ClearPosition)
NTA_ClearPosition();
NTSI_PickItems();
return true;
}