D2NT nila script?!

05/31/2010 19:38 Mecco-Pekko#1
moin,

mein kumpel hat mir ebend ein script geschickt wo mein bot leavet wenn im thron puppen sind...deswegen nun meine frage gibt es ein script wo mein bot auch leavet wenn snakes da sind?

btw
ich weiß leider nicht mehr wo ich den d2nt herhab und auch ka ob der bluebird d2nt der gleiche ist wie der den ich hab deswegen neues topic

falls jemand das baal script haben will soll er bescheid sagen!
05/31/2010 20:03 Medix#2
nimm einfach die stelle aus dem baalscript und bau sie im nilascript ein. ID von den Mobs noch auf Vipern stellen.
05/31/2010 20:27 Mecco-Pekko#3
Quote:
Originally Posted by Medix View Post
nimm einfach die stelle aus dem baalscript und bau sie im nilascript ein. ID von den Mobs noch auf Vipern stellen.
jagut hoert sich einfach an....nur hab ich ka was ich da machen soll bzw wo das is^^ bin nicht so der computer experte

könntest du das machen?!^^ würdest auchn bissl fg bekomm :)
05/31/2010 23:39 Mecco-Pekko#4
Quote:
Originally Posted by Medix View Post
nimm einfach die stelle aus dem baalscript und bau sie im nilascript ein. ID von den Mobs noch auf Vipern stellen.
{
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Undead Soul Killers found. Exiting...");
return;
}

das hier ist müsste die stelle sein wo er sie sieht und leavet

das unterstrichene steht immer im manager....wie stelle ich das nun auf die vipern um bzw wo find ich die id?
05/31/2010 23:44 Medix#5
es wär schon n anfang das ganze script zu posten. Der teil beendet nur das Script und schickt n text an den manager
05/31/2010 23:46 Mecco-Pekko#6
hier das baal script
05/31/2010 23:58 Medix#7
Quote:
if(NTC_FindUnit(NTC_UNIT_MONSTER, 691))
{
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Undead Soul Killers found. Exiting...");
return;
}
einfach reinkopieren im nila script bevor er nila angreift.
NTC_FindUnit(NTC_UNIT_MONSTER, 691)
musst du natürlich noch auf vipern abändern.
06/01/2010 00:10 Mecco-Pekko#8
Quote:
Originally Posted by Medix View Post
einfach reinkopieren im nila script bevor er nila angreift.
NTC_FindUnit(NTC_UNIT_MONSTER, 691)
musst du natürlich noch auf vipern abändern.
Quote:
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(!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(NTA_KillMonster(526))
{
if(NTConfig_ClearPosition)
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(!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(NTC_FindUnit(NTC_UNIT_MONSTER, 691))
{
NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
NTC_SendLogToOOG(NTC_LOG_COMMON, "ÿE00000Undead Soul Killers found. Exiting...");
return;
}


if(!NTA_KillMonster(GetLocaleString(22497)))
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
return;
}

if(NTConfig_ClearPosition)
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;
}
so hätte ich das jetzt reingehauen....nur wo finde ich jetzt noch die ID für die snakes? ist das iwo aufgelistet?
06/01/2010 18:54 Mecco-Pekko#9
ich krieg das net hin :( kannste mir das nicht schnell einstellen plz :/?
06/02/2010 09:38 Mecco-Pekko#10
weiß nun zwar die ID von den Snakes aber helfen tuts mir net wirklich :(

ID von den schlangen ist 73
06/02/2010 12:56 Mecco-Pekko#11
egal wo ich das snake ding rien haue es funktioniert net bei mir :(