Ich hab mal ne Frage dazu, was du alles abgeändert hast...
Ich würde gerne bei Sterni D2NT auch moat nutzen. Es klappt auch wunderbar, bis zu dem Punkt, wo er Mephi angreifen soll :(
Er portet zunächst über den Fluß genau auf den Punkt wo er hin soll, aber dann wieder nen Stück zum Fluß zurück - genau in die Range von Mephi...
Bisher habe ich das Script von sternis so abgewandelt:
Ich würde gerne bei Sterni D2NT auch moat nutzen. Es klappt auch wunderbar, bis zu dem Punkt, wo er Mephi angreifen soll :(
Er portet zunächst über den Fluß genau auf den Punkt wo er hin soll, aber dann wieder nen Stück zum Fluß zurück - genau in die Range von Mephi...
Bisher habe ich das Script von sternis so abgewandelt:
Quote:
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(101))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeWaypoint()");
return;
}
NTP_DoPrecast(true);
if(!NTM_MoveToStair(me.areaid, 102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveToStair()");
return;
}
if(!NTM_TakeStair(102))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_TakeStair()");
return;
}
if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTTMGR_CheckSafe()");
return;
}
if(!NTM_MoveTo(me.areaid, 17564, 8069))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTM_MoveTo()");
return;
}
NTC_Delay(200);
if(me.classid != NTC_CHAR_CLASS_PALADIN && me.classid != NTC_CHAR_CLASS_BARBARIAN)
NTC_Delay(350);
NTM_WalkTo(17563, 8072)
NTC_Delay(350);
NTM_WalkTo(17585, 8095)
NTC_Delay(350);
NTM_MoveTo(me.areaid, 17611, 8085)
NTC_Delay(350);
if(!NTA_KillMonster(242))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}
if(NTConfig_ClearPosition)
NTA_ClearPosition();
NTSI_PickItems();
if(NTConfig_OpenChest)
{
var _chest;
if(NTM_MoveTo(me.areaid, 17520, 8063))
NTA_ClearPosition(30, true);
_chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3260), 1);
if(_chest)
{
do
{
if(_chest.x == 17513 && _chest.y == 8063)
{
if(NTC_OpenChest(_chest))
NTSI_PickItems();
break;
}
} while(_chest.GetNext());
}
}
if(NTConfig_KillCouncilMembers)
{
//bottom council members
NTM_MoveTo(me.areaid, 17651, 8066);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17630, 8069);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17625, 8048);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17647, 8040);
NTA_ClearPosition();
NTSI_PickItems();
//left-side council member
NTM_MoveTo(me.areaid, 17610, 8124);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17603, 8138);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17623, 8138);
NTA_ClearPosition();
NTSI_PickItems();
//right-side council member
NTM_MoveTo(me.areaid, 17609, 8022);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17616, 8006);
NTA_ClearPosition();
NTSI_PickItems();
NTM_MoveTo(me.areaid, 17592, 8015);
NTA_ClearPosition();
NTSI_PickItems();
}
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}