Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Diablo 2
You last visited: Today at 16:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



D2NT neues Mephisto Script

Discussion on D2NT neues Mephisto Script within the Diablo 2 forum part of the Other Online Games category.

Reply
 
Old   #1
 
co_cain's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 321
Received Thanks: 107
D2NT neues Mephisto Script

hi, hab eben 2 neue mephisto scripts gefunden!

hier die anleitung dass er nach mephisto den waffenständer und den rüstungsständer rechts und links öffnet.

1.

erstelle ein neues bot script.nennt es wie ihr wollt z.b. NTMephisto1 und fügt es hier rein
D2NT\scripts\NTBot\bots
ihr könnt auch ein vorhandenes nehmen. z.b. NTAndariel kopiert es auf den desktop benennt es NTMephisto1 und dann wieder hier rein kopieren
D2NT\scripts\NTBot\bots

nun kopiert ihr das hinein. zuert den alten inhalt löschen!
Code:
//Evrams Mephisto Armor/Weapon Rack
 
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)
                NTM_MoveTo(me.areaid, 17573, 8071);
 
        if(!NTA_KillMonster(242))
        {
                NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
                return;
        }
 
        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());
                }
        }
 
 
                var _armor;
 
                if(NTM_MoveTo(me.areaid, 17569, 8125))
                        //NTA_ClearPosition(30, true);
 
                _armor = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247), 1);
 
               
       
       
                        if(GetDistance(me, _armor) > 2)
                                NTM_MoveTo(_armor.areaid,_armor.x+1, _armort.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _armor);
               
 
                NTSI_PickItems();
 
                var _weapon;
 
                if(NTM_MoveTo(me.areaid, 17569, 8010))
                        //NTA_ClearPosition(30, true);
 
                _weapon = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3248), 1);
 
               
       
 
               
                        if(GetDistance(me, _weapon) > 2)
                                NTM_MoveTo(_weapon.areaid,_weapon.x+1, _weapont.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _weapon);
               
 
                NTSI_PickItems();
 
 
        NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
so nun die anleitung dass er auch den rat und rechts und links die gegner noch killt inkl. die ständer.

2.

erstelle ein neues bot script.nennt es wie ihr wollt z.b. NTMephisto2 und fügt es hier rein
D2NT\scripts\NTBot\bots
ihr könnt auch ein vorhandenes nehmen. z.b. NTAndariel kopiert es auf den desktop benennt es NTMephisto2 und dann wieder hier rein kopieren
D2NT\scripts\NTBot\bots

kopiert dies hinein.zuerst den alten inhalt löschen.
Code:
//Evrams Meph Armor/Weapon Rack + Council as extension.
 
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)
                NTM_MoveTo(me.areaid, 17573, 8071);
 
        if(!NTA_KillMonster(242))
        {
                NTC_SendMsgToScript("NTBotGame.ntj", "NTA_KillMonster()");
                return;
        }
 
        NTSI_PickItems();
 
if(NTConfig_MephCouncil)
{
if(!NTA_ClearActLevel())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_ClearActLevel()");
return;
}
 
}
 
        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());
                }
        }
 
 
                var _armor;
 
                if(NTM_MoveTo(me.areaid, 17569, 8125))
                        //NTA_ClearPosition(30, true);
 
                _armor = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247), 1);
 
               
       
       
                        if(GetDistance(me, _armor) > 2)
                                NTM_MoveTo(_armor.areaid,_armor.x+1, _armort.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _armor);
               
 
                NTSI_PickItems();
 
                var _weapon;
 
                if(NTM_MoveTo(me.areaid, 17569, 8010))
                        //NTA_ClearPosition(30, true);
 
                _weapon = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3248), 1);
 
               
       
 
               
                        if(GetDistance(me, _weapon) > 2)
                                NTM_MoveTo(_weapon.areaid,_weapon.x+1, _weapont.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _weapon);
               
 
                NTSI_PickItems();
 
 
        NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
so nun öffnet ihr die NTConfig datei die findet ihr hier
D2NT\scripts\NTBot\char_configs

und fügt dies hinein
Quote:
var NTConfig_MephCouncil;
nun öffnet ihr die NTAttack die findet ihr hier
D2NT\scripts\libs\common
öffnet die und drückt strg+f und sucht diese zeile
Quote:
_target = NTC_GetSpecialChest();
nun scollt einwenig runter bis ihr das findet
Quote:
case 1:
return NTTMGR_CheckSafe(0x00, NTConfig_CheckMercSafe&0x01);
case 2:
return NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
}

return true;
}
unter das rote } fügt ihr das hinein
Code:
function NTA_ClearActLevel(pickitem, safelevel)
{
        var i;
        var _room, _rooms;
        var _distance, _minindex, _mindistance;
 
        _room = GetRoom();
 
        if(!_room)
                return false;
 
        switch(arguments.length)
        {
        case 0:
                pickitem = true;
        case 1:
                safelevel = 2;
        default:
                if(NTConfig_CheckSelfSafe < 0x01 && NTConfig_CheckMercSafe < 0x01)
                        safelevel = 0;
                break;
        }
 
        _rooms = new Array();
 
        do
        {
                _rooms.push([parseInt(_room.x*5 + _room.xsize*5/2), parseInt(_room.y*5 + _room.ysize*5/2)]);
        } while(_room.GetNext());
 
        while(_rooms.length > 0)
        {
                _mindistance = 100000;
 
                for(i = 0 ; i < _rooms.length ; i++)
                {
                        _distance = GetDistance(me.x, me.y, _rooms[i][0], _rooms[i][1]);
 
                        if(_distance < _mindistance)
                        {
                                _minindex = i;
                                _mindistance = _distance;
                        }
                }
 
                if(NTM_MoveTo(me.areaid, _rooms[_minindex][0], _rooms[_minindex][1], 1))
                {
                        if(!NTA_ClearActArea(pickitem, safelevel))
                                return false;
 
                        NTP_DoPrecast(false);
                }
 
                _rooms.splice(_minindex, 1);
        }
 
        return true;
}
 
function NTA_ClearActArea(pickitem, safelevel) //start
{
        var _room;
        var _spectype = [0x0A];
        var _skiplist;
        var _attackcount = 0;
        var _target;
        var _distance, _mingid, _mindistance;
        var _result;
 
        if(NTConfig_AttackSkill[1] < 1 || NTConfig_AttackSkill[3] < 1)
                return false;
 
        _room = me.GetRoom();
 
        if(!_room)
                return false;
 
        switch(arguments.length)
        {
        case 0:
                pickitem = false;
        case 1:
                safelevel = 0;
        default:
                if(NTConfig_CheckSelfSafe < 0x01 && NTConfig_CheckMercSafe < 0x01)
                        safelevel = 0;
                break;
        }
 
        for(var i = 0 ; i < _spectype.length ; i++)
        {
                _skiplist = new Array();
 
                while(_attackcount < (i+1)*100)
                {
                        _mindistance = 100000;
 
                        _target = NTC_FindUnit(NTC_UNIT_MONSTER);
 
                        if(_target)
                        {
                                do
                                {
                                        if(_skiplist.indexOf(_target.gid) < 0)
                                        {
                                                if(_target.IsAttackable() && (_target.spectype&_spectype[i]))
                                                {
                                                        if(_room.UnitInRoom(_target) && NTA_IsValidMonster(_target))
                                                        {
                                                                _distance = GetDistance(me, _target);
 
                                                                if(_distance < _mindistance)
                                                                {
                                                                        _mingid = _target.gid;
                                                                        _mindistance = _distance;
                                                                }
                                                        }
                                                }
                                                else
                                                        _skiplist.push(_target.gid);
                                        }
                                } while(_target.GetNext());
                        }
 
                        if(_mindistance < 100000)
                        {
                                _target = NTC_FindUnit(NTC_UNIT_MONSTER, _mingid);
 
                                if(_target)
                                {
                                        _result = NTA_Attack(_target, (_attackcount%30) == 0);
 
                                        switch(_result)
                                        {
                                        case 1:
                                                _skiplist.push(_mingid);
                                                break;
                                        case 2:
                                        case 3:
                                                _attackcount++;
                                                break;
                                        default:
                                                return false;
                                        }
                                }
                        }
                        else
                                break;
                }
        }
 
        if(me.classid == NTC_CHAR_CLASS_PALADIN)
        {
                if(_attackcount > 2 && (parseInt(me.hp*100/me.hpmax) < NTConfig_UseRedemptionHP || parseInt(me.mp*100/me.mpmax) < NTConfig_UseRedemptionMP))
                {
                        if(NTC_PutSkill(124, NTC_HAND_RIGHT))
                                NTC_PingDelay(1000);
                }
        }
 
        if(NTConfig_OpenChest)
        {
                _target = NTC_GetSpecialChest();
 
                if(_target && _room.UnitInRoom(_target) && NTC_OpenChest(_target))
                        _attackcount++;
        }
 
        if(pickitem && _attackcount > 0)
                NTSI_PickItems();
 
        switch(safelevel)
        {
        case 1:
                return NTTMGR_CheckSafe(0x00, NTConfig_CheckMercSafe&0x01);
        case 2:
                return NTTMGR_CheckSafe(NTConfig_CheckSelfSafe, NTConfig_CheckMercSafe);
        }
 
        return true;
}//end
nun öffnet ihr eure char config und fügt das dazu
Quote:
NTConfig_Script.push("NTMephisto2.ntj"); NTConfig_MephCouncil = true;
wenn ihr nur die ständer machen wollt dann ersetzt die rote 2 in eine 1 und das true in false oder lasst den 2. teil komplett weg und fügt in die char config nur das ein
Quote:
NTConfig_Script.push("NTMephisto1.ntj");
denke mal das is alles und habe nix vergessen.

original thread eon



rechtschreibfehler sind gratis^^

viel spass
co_cain is offline  
Thanks
6 Users
Old 04/22/2010, 07:29   #2
 
elite*gold: 0
Join Date: Apr 2010
Posts: 44
Received Thanks: 17
cool danke!
Geht tadelos,.. das hohe Rats Skript hab ich allerdings nciht hinzugefügt, da meine Soso doch keine Massochistin ist :P
ChrisL4tw is offline  
Old 04/22/2010, 16:59   #3
 
co_cain's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 321
Received Thanks: 107
kein ding^^habs doch gerne gemacht^^
co_cain is offline  
Old 04/22/2010, 19:33   #4
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
Da sind Syntax bzw. Tippfehler drin, die einem förmlich ins Gesicht springen.
Einmal:
Code:
 if(GetDistance(me, _armor) > 2)
                                NTM_MoveTo(_armor.areaid,_armor.x+1, [COLOR="Red"]_armort.y[/COLOR]);
Ausserdem:
Code:
 if(GetDistance(me, _weapon) > 2)
                                NTM_MoveTo(_weapon.areaid,_weapon.x+1, [COLOR="Red"]_weapont.y[/COLOR]);
Das ganze in beiden Quelltexten...
Die Objektvariablen "_weapont" sowie "_armort" sind nicht definiert, das dürfte ne schicke Fehlermeldung geben sofern die if-Bedingung true wird.

Ausserdem gehört der Part für die Truhen sinnvollerweise in die "if(NTConfig_OpenChest)"-Bedingung mit rein.

Lg
Muddy
Muddy Waters is offline  
Thanks
1 User
Old 04/22/2010, 21:09   #5
 
co_cain's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 321
Received Thanks: 107
also ich benutze das script jetzt schon ne weile und ich hab noch keine fehlermeldung bekommen.
co_cain is offline  
Old 04/22/2010, 21:17   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 308
Received Thanks: 29
ist das mit moat Script ? wenn nein ^^ wie muss man das umbauen
Snake1972 is offline  
Old 04/22/2010, 22:04   #7
 
co_cain's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 321
Received Thanks: 107
also moat trick inkl. die ständer sieht dann so aus.

NTMephiso
Code:
//Evrams Mephisto Armor/Weapon Rack
 
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)
                NTM_MoveTo(me.areaid, 17573, 8071);
 
   NTM_MoveTo(me.areaid, 17560, 8072);

  
   
  
   
      NTC_Delay(600);
      NTM_WalkTo(17563, 8072)
      NTC_Delay(500);
      NTM_WalkTo(17585, 8095)
      NTC_Delay(500);
   NTM_MoveTo(me.areaid, 17611, 8085)
      NTC_Delay(500);
     
   
	
	



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

	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());
                }
        }
 
 
                var _armor;
 
                if(NTM_MoveTo(me.areaid, 17569, 8125))
                        //NTA_ClearPosition(30, true);
 
                _armor = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247), 1);
 
               
       
       
                        if(GetDistance(me, _armor) > 2)
                                NTM_MoveTo(_armor.areaid,_armor.x+1, _armort.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _armor);
               
 
                NTSI_PickItems();
 
                var _weapon;
 
                if(NTM_MoveTo(me.areaid, 17569, 8010))
                        //NTA_ClearPosition(30, true);
 
                _weapon = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3248), 1);
 
               
       
 
               
                        if(GetDistance(me, _weapon) > 2)
                                NTM_MoveTo(_weapon.areaid,_weapon.x+1, _weapont.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _weapon);
               
 
                NTSI_PickItems();
 
 
        NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
oder moat trick inkl. ständer + rat + rechts + links einstellung wie oben.

Code:
//Evrams Mephisto Armor/Weapon Rack
 
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)
                NTM_MoveTo(me.areaid, 17573, 8071);
 
   NTM_MoveTo(me.areaid, 17560, 8072);

  
   
  
   
      NTC_Delay(600);
      NTM_WalkTo(17563, 8072)
      NTC_Delay(500);
      NTM_WalkTo(17585, 8095)
      NTC_Delay(500);
   NTM_MoveTo(me.areaid, 17611, 8085)
      NTC_Delay(500);
     
   
	
	



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

	NTSI_PickItems();
if(NTConfig_MephCouncil)
{
if(!NTA_ClearActLevel())
{
NTC_SendMsgToScript("NTBotGame.ntj", "NTA_ClearActLevel()");
return;
}
 
}
 
        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());
                }
        }
 
 
                var _armor;
 
                if(NTM_MoveTo(me.areaid, 17569, 8125))
                        //NTA_ClearPosition(30, true);
 
                _armor = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247), 1);
 
               
       
       
                        if(GetDistance(me, _armor) > 2)
                                NTM_MoveTo(_armor.areaid,_armor.x+1, _armort.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _armor);
               
 
                NTSI_PickItems();
 
                var _weapon;
 
                if(NTM_MoveTo(me.areaid, 17569, 8010))
                        //NTA_ClearPosition(30, true);
 
                _weapon = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3248), 1);
 
               
       
 
               
                        if(GetDistance(me, _weapon) > 2)
                                NTM_MoveTo(_weapon.areaid,_weapon.x+1, _weapont.y);
 
                        NTC_DoClick(NTC_CLICK_LDOWN, NTC_SHIFT_NONE, _weapon);
               
 
                NTSI_PickItems();
 
 
        NTC_SendMsgToScript("NTBotGame.ntj", "SCRIPT_END");
}
dann musst du in der NTAttack datei (hier zu finden D2NT\scripts\libs\common) am ende das hinzufügen

Code:
function NTA_MoveCloseInt(target, maxrange)
{
	var _dist = GetDistance(me, target);
	
	if(NTConfig_Moattrick == 1)
	{
	if(me.areaid == 102)
	{
	var _dist = 1
	}
	}	

	if(_dist > maxrange)
	{
		var _destx, _desty;

		_destx = me.x + Math.round((_dist-maxrange)*(target.x-me.x) / _dist);
		_desty = me.y + Math.round((_dist-maxrange)*(target.y-me.y) / _dist);

		return NTM_MoveTo(me.areaid, _destx, _desty, 0);
	}

	return true;
}

function NTA_SortRoomInt(a, b)
{
	if(GetDistance(me.x, me.y, a[0], a[1]) < GetDistance(me.x, me.y, b[0], b[1]))
		return -1;

	return 1;
}

function NTA_MFswitch(boss, target)
{
	if(NTConfig_Weaponswitch == 1 && boss && target.hp <= NTConfig_HpForSwitch)
	{
		if(target.classid == (156 || 211 || 242 || 243 || 545))
		{
		NTC_SwapWeapons(0)
		}
	}
}
so müsste es gehen
co_cain is offline  
Old 04/22/2010, 22:05   #8
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
Quote:
Originally Posted by co_cain View Post
also ich benutze das script jetzt schon ne weile und ich hab noch keine fehlermeldung bekommen.
Was nur damit zu tun hat, dass die Funktion "NTA_ClearPosition()" auskommentiert ist, womit du immer direkt an der Truhe stehst und der Ausdruck "GetDistance(me, _armor) > 2 " immer false ist.
Das ändertaber nichts an der Tatsache, dass durch den Tippfehler die Objektvariablen nicht definiert sind und es Fehlermeldungen hagelt, falls jemand auf die (nicht unbedingt dumme) Idee kommt, die Funktionsaufrufe nicht auszukommentieren.

Darum bitte korrigieren.

Lg
Muddy
Muddy Waters is offline  
Old 05/23/2010, 22:53   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 35
Received Thanks: 4
Hi Leute

ich bin nicht so der Pro hier aber ich weiß echt nicht was ich noch tun soll..
wenn ich den Bot starte loggt der sich ein nimmt den entsprechenden char und geht in ein Spiel..dann rennt er erst zu Anya aber dann kommt so eine rote schrift mit ...failed
Darauf geht er zu Eishochland und macht dort das ding keine ahnung wie der heißt
Und jetzt möchte ich eigentlich gerne das er weiter macht aber das tut er nicht er steht dann immer nur auf einen stelle und "winkt" mit dem arm..dann kommt oben wieder diese schrift z.b. NtMephistoact3() failed..was soll ich tun.. ? ich möchte gerne das er alle Bosse amcht..
Hoffe auf Hilde
Liebe Grüße Bossa
Bossarock is offline  
Reply


Similar Threads Similar Threads
D2NT Bo Script
05/02/2012 - Diablo 2 - 17 Replies
Also, ich habe einen Bo Barbar in Classic, ich hätte gerne, das wenn ein Tp von Leader Char geöffnet wird, er rein geht und ein tp macht . Sollte so aussehen, Char geht ins Game, Durchs Leader tp(in CS) dann Bo, das wars auch wieder. könnte jemand so was scripten/schreiben? würde auch fg offern E: Jetzt fällts mir auf :D
[D2NT] Hot-IP Script
06/04/2011 - Diablo 2 Programming - 32 Replies
Guten Abend! Hier mal ein ganz nützliches Script, um nicht "trocken" nach Hot-IP's zu suchen, sondern dies während der normalen Botsequenzen zu tun. Das D2NT-eigene Feature stoppt das Script soweit ich weiss nur bei der Meldung "Diablo wandelt auf der Erde". 1.) Neues Script erstellen Als erstes erstellt Ihr eine neue Script-Datei mit dem Namen "NTCloneHunter.ntj" im Ordner "scripts/NTBot/bots/". Der Name des Scripts kann natürlich jeder Beliebige sein. Das Script sieht folgendermaßen...
D2NT - Neues Pindel 'only' Skript - from Nihlatak WP
06/29/2010 - Diablo 2 - 12 Replies
Hi Leute. Ich hab mich dumm und dämlich gesucht um ein Skript zu finden, welches Pindelskin only farmt nachdem das Nihlatak Quest bereits abgeschlossen ist. Leider hab ich nichts gefunden. Deshalb hab ich mir die Bot Datei mal angeschaut und sie so geändert das man nun Pindle only macht ohne vorher Nihlatak zu killen. Was bringts? 1) Zeitfaktor --> schneller 2) Es soll ja auch schwächere Chars geben die mit Nihlatak Probleme haben...nun damit wird das wohl behoben 3) verhindert das...
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...
D2NT Mephisto
04/21/2010 - Diablo 2 - 5 Replies
Ich habe diese Frage schon mal gesehen aber finde es nicht wieder. Ich möchte gern verhindern das sich der Bot stundenlang mit diesen beschissenen Ghouls an der Mephisto-Kiste herumschlägt. Clear Area habe ich aus, ich denk das liegt an der Kiste. Müsste man da im Mephisto Bot was ändern damit der Bot direkt nach Meph Kill wieder abhaut? edit. habs gefunden.



All times are GMT +1. The time now is 16:30.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.