Das Script um schreiben *G*
oder meinst du mit "bevor er zu baal geht" das er Nilathak machen will BEVOR er überhaupt mit den Baalrun anfängt?
Dann musst du diesen Script hinzu
Code:
var _NTNihlathak_Locations = new Array(8, 4);
_NTNihlathak_Locations[0] = [12519, 5203, 12522, 5227]; // Top Left
_NTNihlathak_Locations[1] = [12704, 5019, 12692, 5022]; // Top Right
_NTNihlathak_Locations[2] = [12705, 5391, 12723, 5413]; // Bottom Right
_NTNihlathak_Locations[3] = [12889, 5206, 12898, 5228]; // Bottom Left
_NTNihlathak_Locations[4] = [12519, 5203, 12522, 5196]; // Top Left
_NTNihlathak_Locations[5] = [12704, 5019, 12692, 5413]; // Top Right
_NTNihlathak_Locations[6] = [12705, 5391, 12727, 5022]; // Bottom Right
_NTNihlathak_Locations[7] = [12889, 5206, 12898, 5192]; // Bottom Left
function NTMain()
{
Include("libs/common/NTCommon.ntl");
NTC_IncludeLibs();
NTC_IncludeConfig("NTBot/char_configs");
var _location;
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(123))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(NTConfig_Nihlsen == 1)
{
if(!NTA_ClearLevel())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_ClearLevel()");
return;
}
if(!NTM_MoveToStair(me.areaid, 124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
NTP_DoPrecast(true);
if(!NTM_TakeStair(124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
}
else if(NTConfig_Nihlsen == 2)
{
NTConfig_uniq = true;
if(!NTA_ClearLevel())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_ClearLevel()");
return;
}
if(!NTM_MoveToStair(me.areaid, 124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
NTP_DoPrecast(true);
if(!NTM_TakeStair(124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
}
else
{
if(NTConfig_Teleport)
{
NTC_SwapWeapons(1)
}
if(!NTM_MoveToStair(me.areaid, 124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(124))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
}
_location = NT_FindNihlathakInt();
if(_location == -1)
{
NTC_SendMsgToScript("NTBotGame.ntj", "NT_FindNihlathakInt()");
return;
}
if(!NTM_MoveTo(me.areaid, _NTNihlathak_Locations[_location][2], _NTNihlathak_Locations[_location][3]))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(NTConfig_Skipvipers)
{
if(NTC_FindUnit(NTC_UNIT_MONSTER, GetLocaleString(2956)))
{
NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Tomb Vipers found. Stop Nihl Run....");
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
return;
}
}
if(NTConfig_Teleport)
{
NTC_SwapWeapons(0)
}
if(NTA_KillMonster(526))
{
if(NTConfig_ClearPosition)
if(NTConfig_Teleport)
{
NTC_SwapWeapons(0)
}
NTA_ClearPosition();
NTSI_PickItems();
}
else if(!NTConfig_PindleskinExtension)
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
if(NTConfig_PindleskinExtension)
{
for(var i = 0 ; i < 2 ; i++)
{
if(!NTM_MoveToStair(me.areaid, 123-i))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(123-i))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
}
if(!NTM_MoveToStair(me.areaid, 121))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
NTP_DoPrecast(false);
if(NTConfig_Teleport)
{
NTC_SwapWeapons(1)
}
if(!NTM_TakeStair(121))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTM_MoveTo(me.areaid, 10061, 13234))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
if(NTConfig_Teleport)
{
NTC_SwapWeapons(0)
}
if(!NTA_KillMonster(GetLocaleString(22497)))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
if(NTConfig_ClearPosition)
if(NTConfig_Teleport)
{
NTC_SwapWeapons(0)
}
NTA_ClearPosition();
NTSI_PickItems();
}
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
// Internal function
function NT_FindNihlathakInt()
{
var i, x, y;
var _nihlathak;
var _mindist = 999999;
var _currdist;
var _location = -1;
_nihlathak = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT, 462);
if(!_nihlathak || _nihlathak.length < 1)
return _location;
x = _nihlathak[0].roomx*5 + _nihlathak[0].x;
y = _nihlathak[0].roomy*5 + _nihlathak[0].y;
for(i = 0 ; i < 8 ; i++)
{
_currdist = GetDistance(_NTNihlathak_Locations[i][0], _NTNihlathak_Locations[i][1], x, y);
if(_currdist < _mindist)
{
_mindist = _currdist;
_location = i;
}
}
return _location;
}
und in die Char config das
Code:
// NTConfig_Script.push("Akt5-Nihlathak.ntj"); NTConfig_PindleskinExtension = false; NTConfig_Nihlsen = 0; // NTConfig_PindleskinExtension = nach Nihlathak hoch zu Pindleskin true/false // 0 = schnell runter nihl killen // 1 = auf wp ebene alle monster killen // 2 = auf wp ebene nur bosse killen
// NTConfig_Skipvipers = true; // soll nihl ausgelassen werden wenn vipern unten sind
viel spaß