[Release] Muddy's D2NT

11/13/2011 16:20 Axxi#4021
Quote:
Originally Posted by Timbo1985 View Post
such nach der beschreibung die nachm // steht. sollte in der nähe der Zeile sein die bei dir 1224 ist...
dort musst du das ganze dann wie folgt aussehen lassen ^^

Code:
// Array format: index 0: Value; index 1: Non-Class BO; index 2: CTA Slot
	_slotVal = new Array();
	_slotVal[0] = new Array();
	_slotVal[0].IsCTASlot = false;
	_slotVal[0].BoLevel = 0;
	_slotVal[0].Primary = 0;
	
	_slotVal[1] = new Array();
	_slotVal[1].IsCTASlot = false;
	_slotVal[1].BoLevel = 0;
	_slotVal[1].Primary = 0;
und wenns klappt darfst du "TheCrazy11" danken, von dem hab ichs ^^
Habe es ausprobiert, aber weiterhin ohne Erfolg.
Könnte mir jemand, bei dem der BO funktioniert, seine NTCommon.ntj Datei hochladen?
Wäre sehr dankbar.
11/13/2011 16:38 icke_binnet#4022
Quote:
Originally Posted by Axxi View Post
Habe es ausprobiert, aber weiterhin ohne Erfolg.
Könnte mir jemand, bei dem der BO funktioniert, seine NTCommon.ntj Datei hochladen?
Wäre sehr dankbar.
bin mir nicht sicher aber ist es dieser abschnitt hier?

Code:
function MWC_GetSlotID(type)
{
	var _items, _slotVal, _slotIndex;
	
	if(arguments.length < 1 || me.gametype == 0)
		return me.weaponstab;
	
	// Array format: index 0: Value; index 1: Non-Class BO; index 2: CTA Slot
	_slotVal = new Array();
	_slotVal[0] = new Array();
	_slotVal[0].IsCTASlot = false;
	_slotVal[0].BoLevel = 0;
	_slotVal[0].BonusSkills = 0;
	
	_slotVal[1] = new Array();
	_slotVal[1].IsCTASlot = false;
	_slotVal[1].BoLevel = 0;
	_slotVal[1].Primary = 0;

	_items = me.GetItems();
	
	if(_items)
	{
		for(var i = 0; i < _items.length; i++)
		{
			if(_items[i].mode == 1)
			{
				if(_items[i].itemloc == 4 || _items[i].itemloc == 5)
					_slotIndex = 0;
				else if(_items[i].itemloc == 11 || _items[i].itemloc == 12)
					_slotIndex = 1;
				else
					continue;
				
				switch(type)
				{
					case "precast":
						if((_items[i].itemflag & 0x4000000) && _items[i].itemprefix == 0x5027) // Check if the item is a CTA
							_slotVal[_slotIndex].IsCTASlot = true;
							
						_slotVal[_slotIndex].BoLevel += _items[i].GetStat(97,149);		// Non Class Battle Orders
						_slotVal[_slotIndex].Primary += _items[i].GetStat(127);			// All Skills
						if(me.classid == NTC_CHAR_CLASS_BARBARIAN)
						{
							_slotVal[_slotIndex].Primary += _items[i].GetStat(107,149);	// Class Specific Battle Order
							_slotVal[_slotIndex].Primary += _items[i].GetStat(83,4);	// Barbarian Skills
							_slotVal[_slotIndex].Primary += _items[i].GetStat(188,34);	// Warcries Skilltab
						}
						break;
					case "teleport":
						_slotVal[_slotIndex].Primary += _items[i].GetStat(105); 		// Faster Cast Rate
						_slotVal[_slotIndex].Primary += _items[i].GetStat(127) * 5; 	// All Skills
						break;
					case "finditem":
						_slotVal[_slotIndex].Primary += _items[i].GetStat(79) * 0.75; 	// Extra Gold
						_slotVal[_slotIndex].Primary += _items[i].GetStat(80); 			// Magic Find
						_slotVal[_slotIndex].Primary += _items[i].GetStat(240); 		// Magic Find per Level
						
						_slotVal[_slotIndex].Primary += _items[i].GetStat(105); 		// Faster Cast Rate
						
						_slotVal[_slotIndex].Primary += _items[i].GetStat(127) * 10; 	// All Skills
						
						_slotVal[_slotIndex].Primary += _items[i].GetStat(83,4) * 10; 	// Barbarian Skills
						_slotVal[_slotIndex].Primary += _items[i].GetStat(188,34) * 10;	// Warcries Skills
						break;
					case "attack":
						_slotVal[_slotIndex].Primary += _items[i].GetStat(21) + (_items[i].GetStat(22) - _items[i].GetStat(21)) / 2;		// Base Damage 1H
						if(_items[i].GetStat(21) <= 0)
							_slotVal[_slotIndex].Primary += _items[i].GetStat(23) + (_items[i].GetStat(24) - _items[i].GetStat(23)) / 2;	// Base Damage 2H
						_slotVal[_slotIndex].Primary += (_items[i].GetStat(48) + (_items[i].GetStat(49) - _items[i].GetStat(48)) / 2) / 2;	// Fire Damage
						_slotVal[_slotIndex].Primary += (_items[i].GetStat(50) + (_items[i].GetStat(51) - _items[i].GetStat(50)) / 2) / 2;	// Light Damage
						_slotVal[_slotIndex].Primary += (_items[i].GetStat(52) + (_items[i].GetStat(53) - _items[i].GetStat(52)) / 2) / 2;	// Magic Damage
						_slotVal[_slotIndex].Primary += (_items[i].GetStat(54) + (_items[i].GetStat(55) - _items[i].GetStat(54)) / 2) / 5;	// Cold Damage
						_slotVal[_slotIndex].Primary += _items[i].GetStat(58) * _items[i].GetStat(59) / 256;								// Poison Damage
						_slotVal[_slotIndex].Primary += _items[i].GetStat(111);																// + Damage
						break;
				}
			}
		}
	}
	
	for(var i = 0; i < _slotVal.length; i++)
	{
		if(me.classid == NTC_CHAR_CLASS_BARBARIAN && _slotVal[i].BoLevel > 3)
			_slotVal[i].Primary += 3;
		else
			_slotVal[i].Primary += _slotVal[i].BoLevel;
	}

	if(_slotVal[0].Primary > _slotVal[1].Primary && (type != "precast" || me.classid == NTC_CHAR_CLASS_BARBARIAN || _slotVal[0].IsCTASlot))
		return 0;
	else if(_slotVal[0].Primary < _slotVal[1].Primary && (type != "precast" || me.classid == NTC_CHAR_CLASS_BARBARIAN || _slotVal[1].IsCTASlot))
		return 1;

	return -1;
}
wenn nicht hier die komplette unveränderte NTCommon.ntl
11/13/2011 16:46 Pirat104#4023
Quote:
Originally Posted by Timbo1985 View Post
ich habe einen Ordner angelegt in dem Logs Ordner mit dem Charnamen. Allerdings finde ich da drin keine XML Datei sondern eine XLS und diese kann ich nicht öffnen :-/
da kann es durchaus sein, das du das loggen noch gar nicht aktiviert hast.

./NTBot/char_configs/MWConfig_GlobalSettings.ntl :

Code:
// Itemlog Configuration
	//------------------------------------------------------------------------------
	
	// Set to true to log both sold and kept items in an XML logfile that can be viewed in a browser. NOTE: For some reason that does not work using IE, try Firefox instead.
	// Also, using the XML log is known for increasing the number of crashes/restarts, better set this to false if you not necessarily need it.
	MWConfig_UseXMLItemlog = true;
11/13/2011 16:47 Axxi#4024
Habe es mal so ersetzt, nun, er macht immernoch keinen BO, aber ich habe den Bot mal angehalten und manuell in den CTA-Slot geschaltet...
Wenn CTA ausgewählt ist, macht er sogar den BO! Aber das Problem ist, er switcht nicht zurück zum normalen Slot.
11/13/2011 16:50 icke_binnet#4025
vielleicht muss du in deiner config

//------------------------------------------------------------------------------
// Precast Configuration
//------------------------------------------------------------------------------

// Your precast skills can be defined in the array below. NOTE: Battle Command, Battle Orders and Shout will be cast automatically. Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
MWConfig_PrecastSkills = [];

// Set this to true if you would like to switch slots right after casting BC, BO and Shout. If set to false, your char will remain with the BO Slot until the whole precast procedure is done.
MWConfig_SwitchSlotsAfterBoPrecast = false;



auf true stellen?
11/13/2011 16:51 Timbo1985#4026
Quote:
Originally Posted by Pirat104 View Post
da kann es durchaus sein, das du das loggen noch gar nicht aktiviert hast.
jup, danke das hatte ich auch bemerkt :D leider gibt es mittlerweile ein neues problem bei mir :D
Quote:
Originally Posted by Timbo1985
Hey!

Ich habe in meinem Itemlog leider immer nur die Meldung "Undefined" wenn ich mir die Stats eines Items angucken möchte.

Kann ich das irgendwie ändern, würde im Itemlog gerne die genauen Werte der Items sehen.

mfg
11/13/2011 16:57 Axxi#4027
Quote:
Originally Posted by icke_binnet View Post
vielleicht muss du in deiner config

//------------------------------------------------------------------------------
// Precast Configuration
//------------------------------------------------------------------------------

// Your precast skills can be defined in the array below. NOTE: Battle Command, Battle Orders and Shout will be cast automatically. Constants for all skill ids can be found in "scripts\libs\common\MWSkills.ntl".
MWConfig_PrecastSkills = [];

// Set this to true if you would like to switch slots right after casting BC, BO and Shout. If set to false, your char will remain with the BO Slot until the whole precast procedure is done.
MWConfig_SwitchSlotsAfterBoPrecast = false;



auf true stellen?
Ich habe es auf true stehen, aber nun weiß ich, dass das Waffenwechseln definitiv das Problem ist. Hab grad CTA als 1st Slot gemacht, er macht Game, castet BO, aber dann wechselt er nicht die waffe sondern telt einfach los. ._.
11/13/2011 17:02 Timbo1985#4028
Quote:
Originally Posted by Axxi View Post
Ich habe es auf true stehen, aber nun weiß ich, dass das Waffenwechseln definitiv das Problem ist. Hab grad CTA als 1st Slot gemacht, er macht Game, castet BO, aber dann wechselt er nicht die waffe sondern telt einfach los. ._.
ist imo ein problem der automatischen sloterkennung. womit greift der bot denn an nachdem er mit dem bo slot losgetelt ist?
11/13/2011 17:11 Axxi#4029
Quote:
Originally Posted by Timbo1985 View Post
ist imo ein problem der automatischen sloterkennung. womit greift der bot denn an nachdem er mit dem bo slot losgetelt ist?
Ich bastel grad am Array rum, bisher ohne Erfolg.
Der Bot knallt als AttackSkill sofort Blitzschlag rein und telt los, greift damit dann auch an.
Ja, es ist definitiv ein Sloterkennungsproblem.
11/13/2011 17:13 Pirat104#4030
hatte dieses mit dem switchen und andere probleme mit dem BO auch , jetzt gehts aber schon eine Weile perfekt.

wichtig ist, das CtA liegt in Slot 2 und die Attack-Waffe in Slot 1

sicher habt ihr eine Datei nicht angepasst und zwar die precast.ntl

zu finden in./libs/common

so sieht meine aus:

11/13/2011 17:16 Axxi#4031
Quote:
Originally Posted by Pirat104 View Post
hatte dieses mit dem switchen und andere probleme mit dem BO auch , jetzt gehts aber schon eine Weile perfekt.

wichtig ist, das CtA liegt in Slot 2 und die Attack-Waffe in Slot 1

sicher habt ihr eine Datei nicht angepasst und zwar die precast.ntl

zu finden in./libs/common

so sieht meine aus:

Habe das Problem gefunden, und zwar waren die Slots in der Tat nicht definiert.

Der Sloterkennungsabschnitt sieht jetzt wie folgt aus:

Code:
// Array format: index 0: Value; index 1: Non-Class BO; index 2: CTA Slot
	_slotVal = new Array();
	_slotVal[0] = new Array();
	_slotVal[0].IsCTASlot = false;
	_slotVal[0].BoLevel = 0;
	_slotVal[0].BonusSkills = 0;
        [B][U]_slotVal[0].Primary = 1;[/U][/B]
	
	_slotVal[1] = new Array();
	[B][U]_slotVal[1].IsCTASlot = true;[/U][/B]
	_slotVal[1].BoLevel = 0;
	_slotVal[1].Primary = 0;
//Wobei es sich hier um die Datei "NTCommon.ntj" handelt (zu finden in libs/common/)
Jetzt funktioniert der BO und der Switch danach. =)
11/13/2011 17:16 DaSHiFTeR#4032
Ich hab nen neues Problem ... Immer wenn der Bot zur Truhe geht kommt ne Fehlermeldung. Die Fehlermeldung ist die selbe wie vorher die am Ende des letzten Bosses. Weis wer weiter?
11/13/2011 17:34 Pirat104#4033
Quote:
Originally Posted by Axxi View Post
Habe das Problem gefunden, und zwar waren die Slots in der Tat nicht definiert.

Der Sloterkennungsabschnitt sieht jetzt wie folgt aus:

Code:
// Array format: index 0: Value; index 1: Non-Class BO; index 2: CTA Slot
	_slotVal = new Array();
	_slotVal[0] = new Array();
	_slotVal[0].IsCTASlot = false;
	_slotVal[0].BoLevel = 0;
	_slotVal[0].BonusSkills = 0;
        [B][U]_slotVal[0].Primary = 1;[/U][/B]
	
	_slotVal[1] = new Array();
	[B][U]_slotVal[1].IsCTASlot = true;[/U][/B]
	_slotVal[1].BoLevel = 0;
	_slotVal[1].Primary = 0;
//Wobei es sich hier um die Datei "NTCommon.ntj" handelt (zu finden in libs/common/)
Jetzt funktioniert der BO und der Switch danach. =)
seltsam, die hab ich gar nicht angerührt und geht dennoch.
11/13/2011 17:39 o.rly#4034
Hallo,

mein Leechbot läuft noch nich so ganz ... ein fehler der mich sehr stört ist, dass er das spiel mit einem Timeout verlässt ... dann dauert es ca. 30 sekunden bis ich wieder im channel bin und bis dahin hat der leader das neue game wieder aufgemacht und der Leecher verpasst die meldung, dass der Leader ein neues spiel aufgemacht hat und joint so nur jedes zweite spiel ... hoffe ihr könnt mir folgen :P

und das zweite ist ... der Leecher bleibt nicht in a5 stehen und wartet bis TP kommt, sondern teleportiert mit dem leader mit O_o ...

Vielleicht weiß ja jemand eine Lösung für meine Probleme ...
Ich wäre euch sehr verbunden =)
11/13/2011 18:00 roBOTTA#4035
need help pls,

es lief alles und jetzt starte ich und er sagt bei jedem boss bzw. mob

NTA_KillMonster() failed

wo stell ich das ein...bzw. ich hab ja nix verändert...