Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Diablo 2 > Diablo 2 Programming
You last visited: Today at 08:07

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

Advertisement



[D2NT] Joining ONE specific game

Discussion on [D2NT] Joining ONE specific game within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1
Received Thanks: 0
[D2NT] Joining ONE specific game

hi there,

ive been looking for a script / entry point where the bot would only join
ONE specific game (not abc-1, abc-2 but rather ABC).

if the game crashes, it should thereas NOT create ABC-1 or sth. instead of that, it should wait until the specific game name is available again.

moreover, i want to run a shopbot in that one game. but that shouldnt matter, i basically just need the entry point for the bot (correct me in case im wrong).


is anybody capable of doing such a script or does anybody know an existing script for that?


(example for the script: on start it logs in, creates game ABC. game crashes, bot waits in channel until game name is available again and creates ABC once more) [it also needs to be a lvl req on that game if it matters..]

found it, if any1 wants to know:

entry point case 4:
Code:
var gameName = "my game";
   var gamePassword = "x";
   var maxNumberOfPlayer = 8;
   var gameDifficulty = 2;
   var charDiff = [true, 15];
   
   controlData.click( controlData.controls.lobby.button.create);
   controlData.setText(controlData.controls.lobby.create.editBox.gameName, gameName);
   if (gamePassword != "" )
      controlData.setText (controlData.controls.lobby.create.editBox.password, gamePassword);
      
   switch(gameDifficulty)
   {
      case 0 :
         controlData.click (controlData.controls.lobby.create.button.normal);
         break;
      case 1 :
         controlData.click (controlData.controls.lobby.create.button.nightmare);
         break;
      default : 
         controlData.click (controlData.controls.lobby.create.button.hell);
         break;
   }   
   tickCharDiff (charDiff[0], charDiff[1]);
   controlData.setText(controlData.controls.lobby.create.editBox.maxNumberOfPlayers, String(maxNumberOfPlayer));
   
   function tickCharDiff( tick, strNum ) // lambochan
   {
      if( tick ){ // enable
         if( controlData.get( controlData.controls.lobby.create.editBox.characterDifference ).disabled == 4 ){ // disabled
            controlData.click( controlData.controls.lobby.create.button.useCharacterDifference ); // enable it
         }
         controlData.setText( controlData.controls.lobby.create.editBox.characterDifference, strNum );
         //Delay( 500 );
      } else { // disable
         if( controlData.get( controlData.controls.lobby.create.editBox.characterDifference ).disabled == 5 ){ // enabled
            controlData.click( controlData.controls.lobby.create.button.useCharacterDifference );    // disable it.
         }
      }
   }
you only need to add below the line
Code:
controlData.setText(controlData.controls.lobby.create.editBox.maxNumberOfPlayers, String(maxNumberOfPlayer));
this one:
Code:
controlData.click(controlData.controls.lobby.create.button.createGame);
(bot wont create elsewise)
ajaxis is offline  
Reply


Similar Threads Similar Threads
D2NT restarts after every game
03/16/2014 - Diablo 2 - 7 Replies
Hi, mein D2NT Bot startet neuerdings nach jedem Spiel neu... Das liegt daran, dass ich MPQ's mit meinen Keys im Diablo 2 Ordner erstellt habe (funktioniert auch), aber wie kann ich diese ständigen neustarts verhindern ? Hoffe ihr könnt mir helfen mfg fub
[D2NT] 2 Bots 1 Game
04/28/2011 - Diablo 2 - 2 Replies
Hi, ich möchte meine Soso Chestruns machen lassen und gleichzeitig meinem Pala CS+Bosse Wie schaffe ich, dass der Pala der Soso joint, dann sein Ding durchzieht und bleibt, bis die Soso ihren Run fertig hat? Habe Thunderbird D2Nt
[D2NT] Game Ansage @ Chn !!
06/13/2010 - Diablo 2 - 3 Replies
Hallo Leute ich hab ma gelesen das es da ein Code giebt die du Im bot einstelln kannst das er anstatt z.b. SAY:( Next Game ) ist dann SAY:( +game Keine Ahnung mehr weiter Dann sagt er das Game und pw Im chn , Kann mir wer da weiter helfen wie das wohl richtig heißt ???
[D2NT] .login/Game Nr
03/08/2010 - Diablo 2 Programming - 7 Replies
Den Code der starter.ntj mit dem hier ersetzten. Es gibt die Möglichkeit einzustellen, dass er ".login" beim ersten Betreten des Channels schreibt und dass er den Namen des nächsten Spiel in den Channel schreibt. Ich habe keine Variablen gesehen, die für den Spielnamen zuständig sind (denke mal das wird alles im Manager gemacht), daher lasse ich im Script selbst mit zählen, was zur Folge hat, das der Spielname mit jedem "Neustart" der starter.ntj bei 01 anfängt. var gameMinLength =...



All times are GMT +1. The time now is 08:11.


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.