/edit: Ich habe den Bot mal vorkonfiguriert, sodass ihr nur noch 2 Dateien anpassen müsst! (Ist ein selbstextrahierendes Archiv mit Credits, einem Link zum Topic auf Eon und der Anmerkung welche Dateien geändert werden müssen!)
/edit2: Ein paar Scripts haben ein Update erhalten!
I managed to adapt the script from bobite () that joined games but only for ad2bs. Original credits belongs to him and of course to kimsout and other former developers.
The version i'm based on is NTBOT 3.7.4 && D2NT 1.8.5 ()
Works in English and French versions of Diablo2
My join-bot enters lobby chat, types "/f l" and joins the friend you specified in the file "\scripts\libs\joinBotSettings.ntl" (that you have to create as indicated bellow).
Once in game, it waits for baal's throne tp, enters it, and fights! Then he moves to act 4 (as soon as the leader bot is in the chaos sanctuary), waits for tp, enters and fights! If the join-bot chickens, it will re-enter the game (if the leader was still in it when the join-bot types "/f l" in the lobby chat), and check at which act the leader is, then starts the according script (baal or diablo).
Of course, the leader-bot and the join-bot have to be mutual friends!
This script has a lot of improvements to do, as:
- delaying the "/f l" when the leader is offline, or in the lobby-chat,
- read each other's messages when in-game (especially for leecher-bots that would want to wait until the tp is safe) => check this page :
- improve diablo script in order to go as fast as possible to the right seal after a chicken
- checking the tp owner (it only checks the tp destination)
- fix a lobby/join bug that sometimes freezes the join-bot in the lobby-chat (after clicking on the join button, the bot freezes for hours... hopefully bnet will disconnect you, and the OOG Manager will restart d2)
- OOG Manager doesn't log game names
- and so on...
There are a lot of files to change, please be aware that there may be bugs, make a copy of your D2NT directory!
I will now make 1 post per file you have to modify, i repeat, in your copied folder of D2NT
Der JoinBot ist ein Followbot für D2NT, aber noch im Entwicklungsstadium. Funktioniert für mich aber wunderbar (Der Entwickler folgt mit seinem Char meinem Hammadin :x).
Der Bot geht im Bnet in Chat, gibt dort /f l ein und joined ins Spiel vom Leader! (Chat muss angestellt werden!)
Ich empfehle euch wärmstens einen privaten Chatchannel zu betreten weil der Bot Statusmeldungen ausgibt um die Fehlersuche zu erleichtern!
Zum Installieren kopiert ihr einfach euren D2NT 1.8.5(!) Ordner und ändert folgende Dateien:
var gameMinLength = 420000; // time in milliseconds, minimum game length, 180 seconds default (1 game/3 minutes)
var unableToConnectRetry = 5; // time in minutes to retry connecting on connection fail (real value is +/- 1 min)
var realmDownRetry = 260; // time in minutes to retry connecting on a realm down (default is 120 minutes)
var disconnectedRetry = 5; // time in minutes to retry on a disconnection (usually ip ban related)
var cdkeyInUseRetry = 5; // time in minutes to retry on a cdkey in use error message (set to 0 to stop)
var connectingToBnetTimeout = 20000; // time in milliseconds to wait for a login to time out and click cancel and retry
var characterScreenTimeout = 10000; // time in milliseconds to wait for character screen to appear
var pleaseWaitTimeout = 10000; // time in milliseconds to wait for a please wait popup
var createGameThreshold = 5000; // time in milliseconds to wait between making games
var createGameThresholdRandom = 1000; // time in milliseconds to randomly add +/- to the game create time
var createGameTimeout = 15000; // time in milliseconds to register a failed to create game
var waitInLineTimeout = 60000; // time in milliseconds to wait in lines for a create game (60 second default)
var characterSelectDelay = 1000; // time in milliseconds to wait before selecting a character on the char screen
var loginDelay = 1000; // time in milliseconds to wait before submitting login information
var clickDelay = 500; // wait X milliseconds before next action after a click event
var textDelay = 500; // wait X milliseconds before next action after inserting text into a textbox
var clickDelayRandom = 500; // random amount of time to add to a click
var textDelayRandom = 500; // random amount of time to add to a text set
var gameDoesNotExistDelayMin = 600000; // how long to wait when a Game Does Not Exist occurs - minimum - default 10 minutes
var gameDoesNotExistDelayMax = 900000; // how long to wait when a Game Does Not Exist occurs - maximum - default 15 minutes
var gameDoesNotExistTimeout = 30000; // how long to wait for the dialog to disappear (default 30 seconds, don't change this)
var joinChatAfterGame = true; // join chat after leaving a game
var joinRandomChannel = false; // if this is true, will join a random channel, otherwise it will use the channel below..
var joinChannelInChat = "Euer ChannelName"; // leave blank to not join a private channel
var waitBeforeEnterChatMin = 1000; // min how long to wait before entering chat
var waitBeforeEnterChatMax = 2000; // max how long to wait before entering chat
var waitInChatBeforeActionsMin = 2000; // min how long to wait before joining channel
var waitInChatBeforeActionsMax = 3000; // max how long to wait before joining channel
// DONT EDIT ANYTHING BELOW THIS
// D2NT Manager Command
const D2NT_MGR_LOADING = 1;
const D2NT_MGR_READY = 2;
const D2NT_MGR_LOGIN = 3;
const D2NT_MGR_CREATE_GAME = 4;
const D2NT_MGR_INGAME = 5;
const D2NT_MGR_RESTART = 6;
const D2NT_MGR_CHICKEN = 7;
const D2NT_MGR_PRINT_STATUS = 8;
const D2NT_MGR_PRINT_LOG = 9;
var lastGameMade = GetTickCount();
var lastGameStatus = 0;
var nextGameMake = 0;
var inGameAt = 0;
var chatActionsDone = false;
var lastGameFailed = false;
Include("controlInfo.ntl");
Include("joinBotSettings.ntl");
var controlData = new controlInfo();
var game = '';
function NTMain()
{
Delay(1000);
var _ingame = false;
controlData.clickDelay = clickDelay;
controlData.textDelay = textDelay;
controlData.clickDelayRandom = clickDelayRandom;
controlData.textDelayRandom = textDelayRandom;
while(1)
{
if(me.ingame)
{
if(!inGameAt)
inGameAt = GetTickCount();
if(!_ingame)
{
if(Load("NTBotGame.ntj"))
{
_ingame = true;
sendEventToOOG(D2NT_MGR_INGAME, "In Game", 0);
lastGameStatus = 2; // in game successful
}
}
Delay(1000);
}
else
{
if(_ingame)
{
_ingame = false;
sendEventToOOG(D2NT_MGR_READY, "", 0);
}
locationAction(controlData.getLocation());
Delay(500);
}
}
}
function locationAction(location)
{
switch(location.id)
{
case 3: // Lobby Chat
if(!chatActionsDone)
{
chatActionsDone = true;
Delay(Random(waitInChatBeforeActionsMin, waitInChatBeforeActionsMax));
if(joinRandomChannel || joinChannelInChat != "")
{
Say("/join " + (joinRandomChannel ? getRandomString(Random(3,10)) : joinChannelInChat));
Delay(1000);
}
}
if(JoinFromChat){
game = '';
if (joinChannelInChat)
Say('Locating the leader : '+leaderAccountName);
Delay (1500);
Say('/f l');
Delay(500);
if(chat = controlData.get(controlData.controls.lobby.chat.textBox.channelText))
{
var errors = '';
var found_leader = false;
lines = chat.GetText();
for (var friend = 0; friend < lines.length; friend++)
{
if (lines[friend].lastIndexOf(': '+leaderAccountName+',') > -1)
{
game = '';
found_leader = true;
var regOfflineEnglish=/^\d\s?:\s?(\w*)\s?,\s?offline\s*$/gi;
var regGameNameEnglish=/^\s*(the\s)?(game\s)?([\w\s-]*\w)\s\(private\)\.\s*$/gi;
var regGameNameFrench=/^\s*(la\s)?(partie\s)?([\w\s-]*\w)\s\(priv[^\)]*\)\.\s*$/gi;
if (lines[friend].match(regOfflineEnglish))
{
errors += (errors == '' ? '' : ' ') + 'leader is offline';
if (joinChannelInChat)
Say('Leader is offline, delay 10 sec.');
Delay(10000);
}
if (lines[friend + 1].match(regGameNameEnglish) && lines[friend+1].substr(1, 1) != ':')
{
game = lines[friend + 1].replace(regGameNameEnglish, "$3");
}
if (!game && lines[friend + 1].match(regGameNameFrench) && lines[friend+1].substr(1, 1) != ':')
{
game = lines[friend + 1].replace(regGameNameFrench, "$3");
}
if (game != '')
{
if (joinChannelInChat)
Say('I found him! In the game ' + game);
Delay(1000);
controlData.click(controlData.controls.lobby.button.join);
Delay (500);
}
else
{
if(!errors)
{
errors = 'leader is not in game.';
}
}
}
}
if (!found_leader && joinChannelInChat)
{
if (errors)
Say('Errors : ' + errors);
else
Say('I couldn\'t find the leader in my friend list.');
Delay(1500);
}
}
else
{
if (joinChannelInChat)
Say('I can\'t read the chat!');
Delay(1500);
}
}
break;
case 1: // Lobby
if(location.id == 1 && joinChatAfterGame)
{
Delay(Random(waitBeforeEnterChatMin, waitBeforeEnterChatMax));
controlData.click(controlData.controls.lobby.button.enterChat);
break;
}
if(GetTickCount() > nextGameMake)
{
lastGameFailed = false;
switch(lastGameStatus)
{
case 0:
controlData.click(controlData.controls.lobby.button.create);
nextGameMake = GetTickCount() + createGameTimeout; // set our timeout
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
break;
case 1: // game failed, rollover to reset timer
inGameAt = GetTickCount(); // reset inGameAt, to wait how long we should have waited..
lastGameFailed = true;
case 2:
outputGameLength();
lastGameStatus = 0;
setNextGameMake();
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
break;
}
}
else
timeoutDelay(nextGameMake-GetTickCount(), location);
break;
case 2: // Waiting In Line
if(GetTickCount()-lastGameMade > waitInLineTimeout)
controlData.click(controlData.controls.lobby.inLine.button.cancel);
break;
case 4: // Create Game
if(!controlData.get(controlData.controls.lobby.create.editBox.gameName))
{
controlData.click(controlData.controls.lobby.button.join);
Delay (500);
controlData.click(controlData.controls.lobby.button.create);
Delay (500);
}
sendEventToOOG(D2NT_MGR_CREATE_GAME, location.name, 0);
RunGC(); // run garbage collector between each game
locationTimeout(5000, location);
lastGameMade = GetTickCount();
lastGameStatus = 1; // pending creation
break;
case 5: // Join Game
if(!controlData.get(controlData.controls.lobby.join.editBox.gameName))
{
controlData.click(controlData.controls.lobby.button.create);
Delay (1000);
controlData.click(controlData.controls.lobby.button.join);
Delay (1000);
}
if (game != '')
{
controlData.setText( controlData.controls.lobby.join.editBox.gameName, game);
Delay (500);
controlData.setText( controlData.controls.lobby.join.editBox.password, gamepassword);
Delay (500);
controlData.click(controlData.controls.lobby.join.button.joinGame);
RunGC(); // run garbage collector between each game
locationTimeout(5000, location);
lastGameStatus = 1; // pending join
}
break;
case 6: // Ladder
break;
case 7: // Channel List
break;
case 8: // Main Menu
if(controlData.getCurrentRealmIndex() == me.gatewayid)
{
outputGameLength();
controlData.click(controlData.gameTypes[me.playtype]);
}
else
controlData.click(controlData.controls.mainMenu.button.gateway);
break;
case 9: // Login
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
Delay(loginDelay);
controlData.setText(controlData.controls.login.editBox.accountName, me.account);
sendEventToOOG(D2NT_MGR_LOGIN, location.name, 0);
locationTimeout(5000, location);
break;
case 10: // Login Error (this is a fatal error, so stop)
sendEventToOOG(D2NT_MGR_RESTART, location.name, 10);
Delay(3500);
break;
case 11: // Unable To Connect
timeoutDelay(unableToConnectRetry*60*1000, location)
controlData.click(controlData.controls.login.unableToConnect.button.ok);
break;
case 12: // Character Select
var _time, _control;
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
for(_time = 0 ; _time < characterScreenTimeout ; _time += 500)
{
_control = controlData.get(controlData.controls.characterSelect.textBox.characterInfo[me.charloc]);
if(_control && _control.GetText() != undefined)
break;
Delay(500);
}
if(_time < characterScreenTimeout)
{
Delay(characterSelectDelay);
controlData.click(controlData.controls.characterSelect.textBox.characters[me.charloc], 0, 0, 1);
controlData.click(controlData.controls.characterSelect.textBox.characterInfo[me.charloc], 0, 0, 1);
// reset last game made, so it doesnt make a game immediately
inGameAt = 0;
setNextGameMake();
}
else
{
controlData.click(controlData.controls.characterSelect.button.exit);
timeoutDelay(realmDownRetry*60*1000, location);
}
break;
case 13: // Realm Down - Character Select screen
controlData.click(controlData.controls.characterSelect.button.exit);
timeoutDelay(realmDownRetry*60*1000, location);
break;
case 14: // Character Select - Disconnected
timeoutDelay(disconnectedRetry*60*1000, location);
controlData.click(controlData.controls.characterSelect.disconnected.button.ok);
break;
case 15: // New Character
break;
case 16: // Character Select - Please Wait popup
if(!locationTimeout(pleaseWaitTimeout, location))
controlData.click(controlData.controls.characterSelect.pleaseWait.button.cancel);
break;
case 17: // Lobby - Lost Connection - just click okay, since we're toast anyway
controlData.click(controlData.controls.lobby.lostConnection.button.ok);
break;
case 18: // D2 Splash
controlData.click(controlData.controls.d2Splash.textBox.copyright);
break;
case 19: // Login - Cdkey In Use
timeoutDelay(cdkeyInUseRetry*60*1000, location);
controlData.click(controlData.controls.login.cdkeyInUse.button.ok);
break;
case 20: // Single Player - Select Difficulty
RunGC(); // run garbage collector between each game
controlData.click(controlData.singlePlayerDifficulties[me.diff]);
break;
case 21: // Main Menu - Connecting
if(!locationTimeout(connectingToBnetTimeout, location))
controlData.click(controlData.controls.mainMenu.connecting.button.cancel);
break;
case 22: // Login - Invalid Cdkey (classic or xpac)
sendEventToOOG(D2NT_MGR_RESTART, location.name, 3600);
Delay(3500);
break;
case 23: // Character Select - Connecting
if(!locationTimeout(characterScreenTimeout, location))
controlData.click(controlData.controls.characterSelect.button.exit);
break;
case 24: // Server Down - not much to do but wait..
break;
case 25: // Lobby - Please Wait
if(!locationTimeout(pleaseWaitTimeout, location))
controlData.click(controlData.controls.lobby.pleaseWait.button.cancel);
break;
case 26: // Lobby - Game Name Exists
sendEventToOOG(D2NT_MGR_PRINT_LOG, "Game already exists", 0);
inGameAt = 0;
lastGameStatus = 0;
setNextGameMake();
locationTimeout(15000, location);
break;
case 27: // Gateway Select
controlData.clickRealmEntry(me.gatewayid);
controlData.click(controlData.controls.gateway.button.ok);
break;
case 28: // Lobby - Game Does Not Exist
inGameAt = Random(gameDoesNotExistDelayMin, gameDoesNotExistDelayMax);
lastGameStatus = 0;
setNextGameMake();
locationTimeout(gameDoesNotExistTimeout, location);
break;
}
}
function sendEventToOOG(locationId, statusString, pendingTime)
{
return SendCopyData("D2NT Manager", null, (locationId<<16)|pendingTime, statusString);
}
function setNextGameMake()
{
lastGameMade = GetTickCount();
nextGameMake = lastGameMade + createGameThreshold + Random(0-createGameThresholdRandom, createGameThresholdRandom) + inGameAt;
inGameAt = 0;
chatActionsDone = false;
}
function outputGameLength()
{
if(inGameAt)
{
duration = GetTickCount() - inGameAt;
inGameAt = (duration < gameMinLength ? gameMinLength - duration : 0);
}
}
function locationTimeout(time, location)
{
endtime = GetTickCount() + time;
while(controlData.getLocation().id == location.id && endtime > GetTickCount())
{
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name + " (" + parseInt((endtime-GetTickCount())/1000) + "s)", 0);
Delay(500);
}
return (controlData.getLocation().id != location.id);
}
function timeoutDelay(time, location)
{
endtime = GetTickCount() + time;
while(endtime > GetTickCount())
{
sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name + " (" + parseInt((endtime-GetTickCount())/1000) + "s)", 0);
Delay(1000);
}
}
function getRandomString(_length)
{
_retString = "";
_charSet = "0123456789abcdefghijklmnopqrstuvwxyz";
while(_length--)
{
_retString += _charSet.charAt(Random(0, _charSet.length-1));
Delay(1);
}
return _retString;
}
Erstellt dann scripts/libs/joinBotSettings.ntl und fügt folgendes ein:
"I can't read the chat"
Geht sicher dass ihr in scripts/libs/controlInfo.ntl bei Zeile ~135 Folgendes stehen habt:
Falls die letzte Zeile bei euch fehlt fügt sie ein!
this.controls.lobby.chat.textBox = new Array();
this.controls.lobby.chat.textBox.channelName = [4,28,138,354,60];
this.controls.lobby.chat.textBox.channelText = [4,28,410,354,298];
Der Follower betritt keine Portale!
Dieses Problem hatte ich, mein Follower ist nur ins TP wenn mein Leader raus ist, also direkt vor Baal. Der Follower hat dann in der Zeit in der der Leader bei Malah war Baal gekillt...
Falls ihr diesen Fehler habt änder eure \scripts\libs\common\NTTown.ntl zu dieser hier:
Wer möchte kann sich bei mir melden und in meiner Party mitspielen:
Baal & Diablo werden zusammen gemacht, danach wird sich aufgeteilt und verschiedene Bosse solo gelegt um über 6 Minuten pro Spiel zu bleiben. (Damit man auch mit 2 Chars nicht über die 20Games/Stunde kommt)
Eigene Pickits die schneller sind als D2NT sind auszustellen damit eine gewisse Fairness erhalten bleibt!
da du eh mit 2 keys spielen wirst, brauchst du keine 6 min/game.
3 min, beziehen sich auf 1 keyset... und nicht auf ip, oder so...weist scho wie ichs meine.
hoff ich..
3 min. games pro key.
länger schadet aber trotzdem nicht, klar.
da du eh mit 2 keys spielen wirst, brauchst du keine 6 min/game.
3 min, beziehen sich auf 1 keyset... und nicht auf ip, oder so...weist scho wie ichs meine.
hoff ich..
3 min. games pro key.
länger schadet aber trotzdem nicht, klar.
Ich hab extra nochmal nachgefragt, man meinte 20Games pro Key+Ip. Aber grad gegogglet, IP ist wohl Schnuppe. Hab MinGameTime trotzdem auf 420sec gelassen, das is mir lieber als einn R/D - und Bosse gibts genug
Ihr habt euch gegenseitig in der Flist? Der Name ist richtig geschrieben (Case-sensitive, groß und kleinschreibung). Und du hast nicht versehentlich Account und Char verwechselt?
Und du verwendest keine veraltete Version von D2NT (zB aus der Downloadbase)?
Das ist ein selbstextrahierendes Archiv, wer der .exe nicht traut kann sie auch einfach per Rechtsklick mit WinRAR öffnen. Ich hab lediglich die Credits und eine Beschreibung was geändert werden muss hinzugefügt.
Achja, falls ihr darin noch irgendwelche Daten von mir findet sagt mir bitte bescheid, ich möchte nicht groß rausposaunen wie meine Accs bzw Chars heißen
d2nt leech bot einstellen... d2nt config error.. 07/09/2010 - Diablo 2 Programming - 2 Replies hey
mein bot zeigt mir die ganze zeit ein error und habe die einstellungen in der anleitung genauso... was tun?
habe leader acc/ char name eingetragen. beide flistet. die eine datei aus baalleech rausgeholt und umbenannt und die // weg genommen
habe beim manager auch auf d2nt leech eingestelln
d2nt bot cta 04/01/2010 - Diablo 2 - 4 Replies wie stelle ich ein das der bot cta benutzt?
D2NT 1.8.5 JoinBot 02/24/2010 - Diablo 2 - 0 Replies hi!
also ich bin dabei, mit hilfe von nojmnojmnojm den D2NT 1.8.5 JoinBot auf den "sicheren" 1.5er NTBot zu übertragen
soweit so gut, klappt echt geil:D
joint das game von meinem anderen nt bot und so, ABER ich möchte, das der nicht selbstständig teleportiert (zu seinem ziel) sondern das tp vom haupt bot benutzt und im höchstfall angreift
(---> abänderung zum leechbot ^^)
kennt sich noch jemand so gut damit aus, um mir dabei evtl helfen zu können?
D2NT - Modded D2NT 11/08/2009 - Diablo 2 - 9 Replies Hey,
wollte nach ner langen Pause mal wieder den Bot
starten. Hatte damals den normalen D2NT, hat mir
auch gut gefallen.
Frage mich grad nur welchen ich mir jetzt laden soll-
den D2NT oder den modded D2NT?
Wo ist der Unterschied?