Code:
/**
* This file was modified by [Only registered and activated users can see links. Click Here To Register...]
* Check the programming section for updates and further scripts
* Last Update: 16:23 17.08.2011
*/
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
NT_LoadConfig();
NTSI_LoadNIPFiles("NTBot/item_configs");
MWC_Initialize();
var _tombs, _unit;
if(!NTTM_CheckAct(me.act, true))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 20, me.act, true);
return;
}
NTTMGR_TownManager();
if(!NTTM_TownMove("waypoint"))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTTM_TownMove, 28, "waypoint");
return;
}
if(!NTM_TakeWaypoint(46))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeWaypoint, 34, 46);
return;
}
NTP_DoPrecast(true);
_tombs = GetRoom();
if(!_tombs)
{
NTC_SendMsgToScript("MWBotGame.ntj", GetRoom, 42);
return;
}
if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_TILE, _tombs.correcttomb - 28, 0, 0, MWConfig_ClearPathSpectypes.Duriel > 0, MWConfig_ClearPathSpectypes.Duriel))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveToPresetUnit, 50, me.areaid, NTC_UNIT_TILE, _tombs.correcttomb - 28, 0, 0, MWConfig_ClearPathSpectypes.Duriel > 0, MWConfig_ClearPathSpectypes.Duriel);
return;
}
_unit = NTC_FindUnit(NTC_UNIT_TILE, _tombs.correcttomb - 28, 5);
if(!_unit)
{
NTC_SendMsgToScript("MWBotGame.ntj", "NTC_FindUnit()", NTC_FindUnit, 58, NTC_UNIT_TILE, _tombs.correcttomb - 28, 5);
return;
}
if(!NTM_TakeStair(_unit.subareaid))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeStair, 64, _unit.subareaid);
return;
}
if(!NTM_MoveToPresetUnit(me.areaid, NTC_UNIT_OBJECT, 152, -2, 2, MWConfig_ClearPathSpectypes.Duriel > 0, MWConfig_ClearPathSpectypes.Duriel))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveToPresetUnit, 70, me.areaid, NTC_UNIT_OBJECT, 152, -2, 2, MWConfig_ClearPathSpectypes.Duriel > 0, MWConfig_ClearPathSpectypes.Duriel);
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTTMGR_CheckSafe, 79, NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
return;
}
NTC_FindUnit(NTC_UNIT_OBJECT, 100, 10);
if(!NTM_TakeUnit(NTC_UNIT_OBJECT, 100))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeUnit, 87, NTC_UNIT_OBJECT, 100);
return;
}
if(!NTA_KillMonster(211))
{
NTC_SendMsgToScript("MWBotGame.ntj", NTA_KillMonster, 93, 211);
return;
}
NTSI_PickItems();
NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
}