[Release] Muddy's D2NT

05/14/2012 14:59 dkgray#6481
Quote:
Originally Posted by mirkoregge View Post
global config:
delete /* NOTE: and */ and then edit your runconfig
I did what you told me, but he keeps leaving. I don't know what to do anymore... I'll probably check for some other modifications of the d2nt. Thanks anyway.


Quote:
Originally Posted by DeathFromHeaven View Post
does he load the right config?
or does he load the default-config?
Yes, he does. I even tried with a different scripts but he kept leaving. I checked almost every file with notepad++ but i couldn't find anything that may force the bot to exit right away.
Anyway - i tried a different modification and it worked perfectly.
05/14/2012 15:12 DeathFromHeaven#6482
Quote:
Originally Posted by dkgray View Post
I did what you told me, but he keeps leaving. I don't know what to do anymore... I'll probably check for some other modifications of the d2nt. Thanks anyway.
does he load the right config?
or does he load the default-config?
05/14/2012 16:10 Playboy91#6483
wäre vllt einer mal so nett und würde mir seinen Rushcode mit den notwendigsten quests bis a5 schicken und mir vllt sagen ob es sonst noch einstellungen gibt die wichtig sind, damit er funktioniert?

nach einigen sachen die ich hin un her gestellt habe funktioniert es leider immernoch nicht
05/14/2012 16:38 NerDxx™#6484
Hi leute habe probleme beim einstellen der Automule funktion könnte hilfe gebrauchen !

Ich komme bis zu dem punkt ;
-
der bot logt sich ein und merkt das er kein platz mehr hat ( also mulen muss)
der logt sich aus dem game aus und wartet .. wartet .. dann startet er das mule game und wartet... wartet. ( bis das game gepermt ist ) dann dropt er alle items die er mulen soll !! logt sich aus , und logt sich in den muleacc1 ein hebt die items auf die in der pick it angegeben sind ( bis hierhin ist alles perfekt) dann logt er sich aus um sich in den muleacc2 einzuloggen , er logt sich ich den account ein aber wählt keinen char ein dann kommt der selbe error wie auf bild 2!

[Only registered and activated users can see links. Click Here To Register...]

wenn ich mich schnell ins mule game einlogge kommt der fehler hier (siehe bild)

[Only registered and activated users can see links. Click Here To Register...]


-----------------------------------
(MWConfig_GlobalSettings.ntl):
Code:
//------------------------------------------------------------------------------
// General Configuration
//------------------------------------------------------------------------------

// Set to false will disable auto mule for all chars. Note that you have to set both this variable and MWConfig_Automule.Activated (in you char config) to true in order to enable auto mule for a char.	
MWConfig_Automule.Enabled = true;
(NTConfig_<YourCharClass>_<YourCharName>.ntl)
Code:
//------------------------------------------------------------------------------
// Automule Configuration
//------------------------------------------------------------------------------	

// Set to true to enable auto mule.
MWConfig_Automule.Activated = true;

// The maximum stash load in percent before auto mule is triggered.
MWConfig_Automule.MaxLoad = 95;

// Set to true to show your stash's current load whenever managing stash.
MWConfig_Automule.ShowCurrentLoad = true;

// Set to true to finish your current game before muling, otherwise the game is left right away in case your stash is full.
MWConfig_Automule.FinishGame = false;

// Define which items are not to be touched when muling.
//MWConfig_Automule.DontMule.push("mule/dont_mule.nip");
//MWConfig_Automule.DontMule.push("mule/gems.nip");
(NTBot.ntj)

Code:
// Mule Settings
var JoinRetries = 5;						// How many attempts before giving up the mule game?
var JoinRetryDelay = 55;					// Seconds to wait between Retry Attempts
var TimeBeforeMuleGame = 1;					// Minutes to wait before creating the aame
var TimeAfterMule = 5;						// Minutes to wait before logging back to bot account
[COLOR="Red"]NIX GEÄNDERT stand schon alles !![/COLOR]
NTConfig_AutoMule.ntl

Code:
function NT_LoadMuleConfig()
{
	var _newMule;

	Automule.MuleIsFullThreshold = 0.90;
	
	switch(me.account.toLowerCase())
	{
		//------------------------------------------------------------------------------
		// Full account sample - Copy the below case if you'd like to assign a full mule account to your bot char.
		// Note: you have to create both the account and the mules yourself before using them for auto mule.
		//
		case "your_bot's_lower_case_account_name_goes_here": 	// <-- Enter your bot's account name here. (lower case only!)
			Automule.GameName = "SomeGameName"; 				// Enter the name of your mule game here. Note: don't use the same game for multiple bot chars.
			Automule.GameNamePassword = "SomePassword";			// Enter the password of your mule game here.
			
			for(var i = 0; i < 8; i++)
			{
				_newMule = new Mule(); 							// Create a new mule object. (no need to change anything here)
				_newMule.Account = "YourMuleAccNameGoesHere"; 	// Enter the name of your mule account here.
				_newMule.Password = "YourMulePWGoesHere"; 		// Enter the password for your mule account here.
				_newMule.NipFiles.push("mule/all.nip"); 		// Enter any number of mule paths here.
				_newMule.CharLoc = i; 							// Enter the the mule's location here. Check the FAQ if you don't know what this is about.
				Automule.Mules.push(_newMule);					// Add the mule you just created. (no need to change anything here)
			}
			
			break;
		//
		//
		//------------------------------------------------------------------------------
		
		//------------------------------------------------------------------------------
		// Single mule sample - Copy the below case if you'd like to assign single mules (even from different accounts) to your bot char.
		// Note: you have to create both the account and the mules yourself before using them for auto mule.
		//
		case "botacc1": 	// <-- Enter your bot's account name here. (lower case only!)
			Automule.GameName = "mulegame"; 				// Enter the name of your mule game here. Note: don't use the same game for multiple bot chars.
			Automule.GameNamePassword = "mulepw"; 		// Enter the password of your mule game here.
			
			_newMule = new Mule(); 								// Create a new mule object. (no need to change anything here)
			_newMule.Account = "muleacc1"; 		// Enter the name of your mule account here.
			_newMule.Password = "muleaccpw"; 			// Enter the password for your mule account here.
			_newMule.NipFiles.push("mule/items.nip");				// Enter any number of mule paths here.
			_newMule.CharLoc = 0;								// Enter the the mule's location here. Check the FAQ if you don't know what this is about.
			Automule.Mules.push(_newMule);						// Add the mule you just created. (no need to change anything here)
			
			_newMule = new Mule(); 								// Create a new mule object. (no need to change anything here)
			_newMule.Account = "muleacc2";	// Enter the name of your mule account here.
			_newMule.Password = "muleaccpw"; 		// Enter the password for your mule account here.
			_newMule.NipFiles.push("mule/runen.nip");				// Enter any number of mule paths here.
			_newMule.CharLoc = 0;								// Enter the the mule's location here. Check the FAQ if you don't know what this is about.
			Automule.Mules.push(_newMule);						// Add the mule you just created. (no need to change anything here)
			
			break;
		//
		//
		//------------------------------------------------------------------------------
	}
}
NTConfig_Barbarian_charname

alle meine mule chars sind barbaren deswegen habe ich für jeden mule char eine eigene config erstellt
zb für mal runen

NTConfig_Barbarian_I-MalRunen
NTConfig_Barbarian_II-MalRunen
NTConfig_Barbarian_III-MalRunen
NTConfig_Barbarian_IIII-MalRunen
etc...
die config sieht so aus

Code:
function NT_LoadMuleConfig()
{	
	NTConfig_NIPFilePath.push("mule/Mule/Mal.nip");
		
	NTConfig_ExitGameOnMissingPassword = true;	// Exit the game if it is public due to an error pasting the password at game creation (Note: This option is deactivated if NTConfig_PublicMode is activated)
}
-----------------------------------
05/15/2012 19:52 Playboy91#6485
Villeicht kann mir ja wer helfen:

Ich benutzte seit reset Light Soso anstatt hammerdin und bekomme nun, wenn ich Nihlaruns mache, bei jedem 2-3 run: NTA_KillMonster () failed (Halls of Vaugt)

Function Call: NTA_KillMonster (526)

kennt das problem wer? und wie bekommt man sowas weg
05/15/2012 22:10 mirkoregge#6486
Hast du skip bei Immunen und er war Lightimmun?
05/17/2012 11:51 ludi0011#6487
Jemand eine Idee warum der Bot bei NTBot bei Join Channel nicht in den eingestellten Channel geht ?
05/17/2012 12:15 mirkoregge#6488
post doch mal den Auszug aus der Config NTBotLeech;

steht evt
var JoinRandomChannel = false;
auf true?
05/17/2012 14:03 ludi0011#6489
Der Abschnitt aus NTBot:

//------------------------------------------------------------------------------
// Channel Settings
//------------------------------------------------------------------------------

var IgnoreWispers = true; // Set to true to ignore all incoming wispers from players that are not on your friendlist.
var JoinChatAfterLogin = true; // Join chat after login.
var JoinRandomChannel = true; // If this is true, will join a random channel, otherwise it will use the channel below..
var JoinChannelInChat = "Op Hyb"; // Leave blank not to join a private channel.
var PerformChannelLogin = true; // Type ".login" once after joining the channel.
var ChannelUsers = new Array(); // Dynamic array that holds channel users.


Der Abschnitt aus NTBotLeech:

var JoinRandomChannel = true;
var JoinChannelInChat = "OP Hyb";
var FirstJoinMessage = ""; // Message to post right after joining chat. Set to "" not to post any message.
var ChatMessageAfterGame = ""; // Message to post when joining chta after a game. Set to "" not to post any message.

oder meinst du damit das join rnd channel dem join chanel xY wiederspricht ?
05/17/2012 15:49 mirkoregge#6490
var JoinRandomChannel = true; da geht er in einen beliebigen channel; wenn du dort false setzt, joint er den channel den du unter var JoinChannelInChat = "Op Hyb" einträgst
05/17/2012 16:43 ludi0011#6491
habe ich geändert aber will er trotzdem nicht :P
ich bastel nacher nochmal bissl rum.
Oder kanns noch wo anders dran liegen
05/17/2012 19:02 Playboy91#6492
Quote:
Originally Posted by ludi0011 View Post
habe ich geändert aber will er trotzdem nicht :P
ich bastel nacher nochmal bissl rum.
Oder kanns noch wo anders dran liegen
Hatte ich auch mal das Problem. Ich habe einfach dann die NTBot Datei aus dem entpackem, unverändertem ordner kopiert,ersetzt und nochmal neu eingestellt, dann ging es.

also aufjedenfall immer Safedateien erstellen von den fertig einstellten bots - wenn du z.b. mal etwas änderst und er dann rumspinnen sollte und nicht weißt wie dus wegbekommst einfach die Safedatei nochmal kopieren und die "kaputte" löschen.

Verhindert, dass du nochmal komplett alles einstellen musst , wenn er doch mal irgendetwas hat was man es nich wegbekommt.^^
05/18/2012 00:26 DeathFromHeaven#6493
Ihr vergesst alle den wichtigsten teil...

Code:
// Add any char/account here that is supposed to perform chat actions/game announcements or join a private channel
ChannelUsers.push("YourCharNameGoesHere");
// Or
ChannelUsers.push("YourAccountNameGoesHere");
hier müsst ihr euren Charackter/Account eintragen(nur eins von beidem), der den channel nutzen soll
05/18/2012 20:34 NerDxx™#6494
hi leute hab 2 probleme mit dem leecher script

gibt es das script auch für den muddy d2nt ? ([Only registered and activated users can see links. Click Here To Register...])

mein leecher geht nicht durchs tp vom leader
mache
cow leechfight / geht !
dia leechfight / geht nicht durchs tp!
baal leech / geht nicht durchs tp!

NTDiabloLeechFight
Code:
/**
*	This file was modified by [Only registered and activated users can see links. Click Here To Register...] and [Only registered and activated users can see links. Click Here To Register...]
*	Check the programming section for updates and further scripts
*	Last Update: 14:34 04.09.2011
*/

var _AllowedToEnterTP = false;

function NTMain()
{
	Include("libs/common/NTCommon.ntl");
	NTC_IncludeLibs();
	NTC_IncludeConfig("NTBot/char_configs");

	NT_LoadConfig();
	NTSI_LoadNIPFiles("NTBot/item_configs");

	MWC_Initialize();
	
	RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);
	
	var _monsterCount, _attackpos;

	if(!NTTM_CheckAct(4, true))
	{
		NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 24, 4, true);
		return;
	}
	
	NTTMGR_TownManager();

	if(NTConfig_PreBuff)
	{
		if(!NTTM_TownMove("waypoint"))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTTM_TownMove, 34, "waypoint");
			return;
		}

		if(!NTM_TakeWaypoint(107))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeWaypoint, 40, 107);
			return;
		}
		
		NTP_DoPrecast(true);
	
		if(!NTTM_CheckAct())
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 48);
			return;
		}
	}
	
	NTTM_TownMove("portalspot");

	for(i = 0; i <= 200; i++)
	{
		if(NTC_InMyParty(NTConfig_Leader))
			break;
			
		if(!NTConfig_Leader)
		{
			_portal = NTM_FindPortalAreaInt(108, 0);
			
			if(_portal != -1)
			{
				_owner = _portal.GetParent();
				
				if(_owner && !NTC_InMyParty(_owner))
					NTConfig_Leader = _owner;
			}
		}

		NTC_Delay(200);
	}
	
	if(MWConfig_EnterUnsafeTP)
		_AllowedToEnterTP = true;
	
	while(NTC_InTown() && NTC_InMyParty(NTConfig_Leader))
	{
		if(_AllowedToEnterTP)
			NTM_UsePortal("BluePortal", 108, NTConfig_Leader);

		NTC_Delay(1000);
	}
	
	if(me.areaid == 108)
	{
		if(!MWConfig_StartAtStar)
		{
			_attackpos = [7792, 5525, 7793, 5501, 7773, 5495, 7768, 5480, 7767, 5458, 7770, 5438, 7774, 5417, 7767, 5391, 7768, 5369, 7769, 5345, 7770, 5320, 7780, 5308];

			if(!NTM_MoveTo(108, 7790, 5544))
			{
				NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveTo, 95, me.areaid, 7790, 5544);
				return;
			}

			NTA_ClearPosition(25, false, 2);

			NTM_MoveTo(108, 7790, 5544);

			NTC_PingDelay(1000);

			NTA_ClearPosition(25, true, 2);

			NTM_MoveTo(108, 7790, 5544);
			
			for(var i = 0; i < _attackpos.length; i += 2)
			{
				NTM_MoveTo(108, _attackpos[i], _attackpos[i + 1], 3, true);

				NTA_ClearPosition(50, true, 2);
			}
		}
		
		NTM_MoveTo(108, 7792, 5292);
		
		if(_monsterCount > 3)
			NTA_ClearPosition(20, true, 2);
			
		NTP_DoPrecast(false);

		NTA_ClearPosition(30);
		
		NTM_MoveTo(108, 7792, 5292, 3, true);
		
		if(!NT_OpenSealsInt())
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NT_OpenSealsInt, 130);
			return;
		}
		
		if(!NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTTMGR_CheckSafe, 136, NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
			return;
		}

		if(!NTM_MoveTo(me.areaid, 7792, 5292))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTM_MoveTo, 142, me.areaid, 7792, 5292);
			return;
		}
		
		NTP_DoPrecast(true);
		
		if(me.classid == NTC_CHAR_CLASS_PALADIN && !MWC_CheckForExpShrineUsers())
			NTC_PutSkill(109, NTC_HAND_RIGHT);

		NTC_FindUnit(NTC_UNIT_MONSTER, 243, 150);

		if(!NTA_KillMonster(243))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTA_KillMonster, 153, 243);
			return;
		}

		NTSI_PickItems();
	}

	NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
}

// Internal function
function NT_OpenSealsInt()
{
	var i, _unit;
	var _result;

	_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);

	if(!_unit)
		return false;

	_result = false;

	for(i = 0 ; i < _unit.length ; i++)
	{
		if(_unit[i].id == 396)
		{
			if(_unit[i].roomy*5 + _unit[i].y == 5275)
				_result = NT_OpenVizierSealInt(1);
			else
				_result = NT_OpenVizierSealInt(2);

			break;
		}
	}

	if(!_result && !MWConfig_IgnoreSealOpeningErrors)
		return false;

	NTM_MoveTo(me.areaid, 7792, 5292, 3, true);
	NTA_ClearPosition(40);
	NTP_DoPrecast();

	_result = false;

	for(i = 0 ; i < _unit.length ; i++)
	{
		if(_unit[i].id == 394)
		{
			if(_unit[i].roomx*5 + _unit[i].x == 7773)
				_result = NT_OpenDeSeisSealInt(1);
			else
				_result = NT_OpenDeSeisSealInt(2);

			break;
		}
	}

	if(!_result && !MWConfig_IgnoreSealOpeningErrors)
		return false;

	NTM_MoveTo(me.areaid, 7792, 5292, 3, true);
	NTA_ClearPosition(40);
	NTP_DoPrecast(true);

	_result = false;

	for(i = 0 ; i < _unit.length ; i++)
	{
		if(_unit[i].id == 392)
		{
			if(_unit[i].roomx*5 + _unit[i].x == 7893)
				_result = NT_OpenVenomSealInt(1);
			else
				_result = NT_OpenVenomSealInt(2);

			break;
		}
	}

	return (_result || MWConfig_IgnoreSealOpeningErrors);
}

function NT_OpenVizierSealInt(type)
{
	var i, n;
	var _attackpos = [7740, 5300, 7740, 5280, 7720, 5280, 7720, 5300];
	var _monstername = GetLocaleString(2851);

	for(i = 0 ; i < _attackpos.length ; i += 2)
	{
		NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1], 3, true);

		NTA_ClearPosition(30, true, 2);
	}

	while(MW_CheckSeal(396))
		NTC_Delay(1000);
	
	if(type == 1)
		NTM_MoveTo(me.areaid, 7665, 5277);
		
	for(n = 0; n < 10; n++)
	{
		NTC_Delay(200);

		if(NTA_KillMonster(_monstername))
		{
			NTSI_PickItems();
			NTA_ClearPosition(30);

			return NTM_MoveTo(me.areaid, 7750, 5280);
		}
	}
	
	return false;
}

function NT_OpenDeSeisSealInt(type)
{
	var i, n;
	var _attackpos = [7780, 5255, 7800, 5255, 7800, 5235, 7780, 5235];
	var _monstername = GetLocaleString(2852);
	var _deSeis, _dist;

	if(type == 1)
		_attackpos.push(7773, 5215, 7773, 5197, 7794, 5196, 7813, 5189, 7814, 5171, 7804, 5156, 7787, 5154);
	else
		_attackpos.push(7811, 5216, 7810, 5197, 7787, 5192, 7772, 5183, 7773, 5166, 7784, 5154, 7800, 5154);
		
	switch(me.classid)
	{
		case NTC_CHAR_CLASS_BARBARIAN:
		case NTC_CHAR_CLASS_PALADIN:
			_dist = 8;
			break;
		case NTC_CHAR_CLASS_DRUID:
			_dist = 10;
			break;
		default:
			_dist = 12;
	}
	
	for(i = 0; i < _attackpos.length; i += 2)
	{
		NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1]);

		NTA_ClearPosition(30, true, 2);
	}

	while(MW_CheckSeal(394))
		NTC_Delay(1000);
	
	if(type == 1)
	{
		NTM_MoveTo(me.areaid, 7791, 5198);
		
		_deSeis = NTC_FindUnit(NTC_UNIT_MONSTER, _monstername, 3);
		
		if(_deSeis)
		{
			if(_deSeis.y >= 5185)
				NTM_MoveTo(me.areaid, 7776, _deSeis.y - _dist);
			else
				NTM_MoveTo(me.areaid, 7776, _deSeis.y + _dist);
		}
		else
			NTA_ClearPosition(20);
	}
	else
	{
		NTM_MoveTo(me.areaid, 7789, 5154);
		
		_deSeis = NTC_FindUnit(NTC_UNIT_MONSTER, _monstername, 3);
		
		if(_deSeis && _deSeis.y + _dist <= 5201)
		{
			if(!NTM_MoveTo(me.areaid, 7776, _deSeis.y + _dist))
				NTM_MoveTo(me.areaid, 7776, _deSeis.y - _dist);
		}
		else
			NTM_MoveTo(me.areaid, 7776, 5195);
	}

	for(n = 0; n < 10; n++)
	{
		NTC_Delay(200);

		if(NTA_KillMonster(_monstername))
		{
			NTSI_PickItems();
			NTA_ClearPosition(30);
			
			return NTM_MoveTo(me.areaid, 7800, 5255, 3, true);
		}
	}

	return false;
}

function NT_OpenVenomSealInt(type)
{
	var i, n;
	var _attackpos = [7835, 5280, 7835, 5300, 7855, 5300, 7855, 5280];
	var _monstername = GetLocaleString(2853);
	
	for(i = 0 ; i < _attackpos.length ; i += 2)
	{
		NTM_MoveTo(me.areaid, _attackpos[i], _attackpos[i+1], 3, true);

		NTA_ClearPosition(30, true, 2);
	}

	while(MW_CheckSeal(392))
		NTC_Delay(1000);
	
	if(type == 1)
		NTM_MoveTo(me.areaid, 7892, 5298);
	else
		NTM_MoveTo(me.areaid, 7937, 5305);
	
	for(n = 0 ; n < 10 ; n++)
	{
		NTC_Delay(200);

		if(NTA_KillMonster(_monstername))
		{
			NTSI_PickItems();
			NTA_ClearPosition(40);
			
			if(NTC_PutSkill(124, NTC_HAND_RIGHT))
				NTC_PingDelay(1000);

			while(MW_CheckSeal(393))
				NTC_Delay(1000);
			
			return true;
		}
	}

	return false;
}

function MW_CheckSeal(classid)
{
	var _seal, _x, _y, _unit, _leader;
	
	_leader = GetPlayerUnit();

	if(_leader)
	{
		while(_leader.GetNext())
		{
			if(_leader.name.toLowerCase() == NTConfig_Leader.toLowerCase() && _leader.areaid > 109)
				NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
		}
	}
	
	_unit = GetPresetUnits(me.areaid, NTC_UNIT_OBJECT);

	if(!_unit)
		return false;
	
	for(i = 0 ; i < _unit.length ; i++)
	{
		if(_unit[i].id == classid)
		{
			_x = _unit[i].roomx * 5 + _unit[i].x;
			_y = _unit[i].roomy * 5 + _unit[i].y;
	
			break;
		}
	}

	if(GetDistance(me.x, me.y, _x, _y) > 10)
		NTM_MoveTo(me.areaid, _x + 3, _y + 3);

	NTA_ClearPosition(25, true, 2, false, false);
	
	_seal = NTC_FindUnit(NTC_UNIT_OBJECT, classid, 5);

	if(!_seal)
		return false;

	if(_seal.mode == 0)
		return true;

	return false;
}

function NT_GameMsgEvents(msg, type)
{
	var _msg = msg.toLowerCase();
	
	if(type == 0 && _msg.indexOf(NTConfig_Leader.toLowerCase()) > -1 && MWConfig_Announcements.DiabloTpSafe && _msg.indexOf(MWConfig_Announcements.DiabloTpSafe.toLowerCase()) > -1)
		_AllowedToEnterTP = true;
}
NTBaalLeech

Code:
/**
*	This file was modified by [Only registered and activated users can see links. Click Here To Register...] and [Only registered and activated users can see links. Click Here To Register...]
*	Check the programming section for updates and further scripts
*	Last Update: 14:34 04.09.2011
*/

var _AllowedToEnterTP = false;

function NTMain()
{
	Include("libs/common/NTCommon.ntl");
	
	NTC_IncludeLibs();
	NTC_IncludeConfig("NTBot/char_configs");

	NT_LoadConfig();
	NTSI_LoadNIPFiles("NTBot/item_configs");

	MWC_Initialize();
	
	RegisterEvent(EVENT_GAMEMSG, NT_GameMsgEvents);

	if(!NTTM_CheckAct(5, true))
	{
		NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 26, 5, true);
		return;
	}

	NTTMGR_TownManager();
	
	if(NTConfig_PreBuff)
	{
		if(!NTTM_TownMove("waypoint"))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTTM_TownMove, 33, "waypoint");
			return;
		}

		if(!NTM_TakeWaypoint(111))
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTM_TakeWaypoint, 39, 111);
			return;
		}
		
		NTP_DoPrecast(true);
	
		if(!NTTM_CheckAct())
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTTM_CheckAct, 47);
			return;
		}
	}
	
	NTTM_TownMove("portalspot");

	for(var i = 0; i <= 200; i++)
	{
		if(NTC_InMyParty(NTConfig_Leader))
			break;
			
		if(!NTConfig_Leader)
		{
			_portal = NTM_FindPortalAreaInt(131, 0);
			
			if(_portal != -1)
			{
				_owner = _portal.GetParent();
				
				if(_owner && !NTC_InMyParty(_owner))
					NTConfig_Leader = _owner;
			}
		}

		NTC_Delay(200);
	}
	
	if(MWConfig_EnterUnsafeTP)
		_AllowedToEnterTP = true;

	while(NTC_InTown() && NTC_InMyParty(NTConfig_Leader))
	{
		if(_AllowedToEnterTP)
			NTM_UsePortal("BluePortal", 131, NTConfig_Leader);

		NTC_Delay(500);
	}
	
	NTM_MoveTo(me.areaid, me.x + 5, me.y);
	
	while(NTC_InMyParty(NTConfig_Leader) && NTC_FindUnit(NTC_UNIT_MONSTER, 543))
	{
		NTP_DoPrecast(false);
		NTC_Delay(500);
	}
	
	if(NTConfig_KillBaal)
	{
		var _portal = NTC_FindUnit(NTC_UNIT_OBJECT, 563, 2);

		if(!_portal)
		{
			NTC_SendMsgToScript("MWBotGame.ntj", NTC_FindUnit, 98, NTC_UNIT_OBJECT, 563, 2);
				return;
		}
		
		NTM_MoveTo(me.areaid, 15095, 5028);
		NTM_MoveTo(me.areaid, 15092, 5010);
			
		if(!NTM_UsePortal("Portal", 132, null, _portal))
		{
			NTC_SendMsgToScript("NTBotGame.ntj", NTM_UsePortal, 109, "Portal", 132, null, _portal);
			return;
		}

		var _baal = NTC_FindUnit(NTC_UNIT_MONSTER, 544);

		while(NTC_InMyParty(NTConfig_Leader) && NTA_IsValidMonster(_baal))
			NTC_Delay(2500);
	}
	else
	{
		while(NTC_InMyParty(NTConfig_Leader))
			NTC_Delay(2500);
	}

	NTC_SendMsgToScript("MWBotGame.ntj", "SCRIPT_END");
}

function NT_GameMsgEvents(msg, type)
{
	var _msg = msg.toLowerCase();
	
	if(type == 0 && _msg.indexOf(NTConfig_Leader.toLowerCase()) > -1 && MWConfig_Announcements.BaalTpSafe && _msg.indexOf(MWConfig_Announcements.BaalTpSafe.toLowerCase()) > -1)
		_AllowedToEnterTP = true;
}
weiss einer weiter?
05/20/2012 22:41 Playboy91#6495
Hiho,

und zwar habe ich letzte Ladder für Brs immer Hammerdin benutzt, was auch ganz gut lief beim d2nt castet er halt nicht vor aber auch egal erstmal.

Seit ladder reset benutzt ich allerdings ne light soso die sich immer oben auf der treppe in baal rein stellt?! is das normal - und kurz vor jeder mobwelle portet die sorc allerdings nochmal quer durchn thron und attackt dann erst die mobs 4-5 sec, nachdem sie gespawnt sind . Ist das normal? hab immerhin nix an dem script geändert

gibts vielleicht nen anderen bot zu empfehlen für brs oder dias?