Register for your free account! | Forgot your password?

You last visited: Today at 02:06

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

Advertisement



d2nt Name game "-"

Discussion on d2nt Name game "-" within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
d2nt Name game "-"

I ask for a help to remove the hyphen from the game name!
Ex: Pindle-01, Pindle-02 .. For Pindle 01, Pindle 02 ...


Thanks!



lord_zauron is offline  
Old 03/28/2012, 14:31   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 24,246
Received Thanks: 15,356
i dont know, was it fixable?
Who cares about 1 - ?


RezChams is offline  
Old 03/28/2012, 19:25   #3
Administrator
 
elite*gold: 274463
Join Date: Jan 2010
Posts: 22,664
Received Thanks: 12,422
It is possible, but rather complicated as it requires for you to edit a DLL via hex editor. I don't recall what DLL it was exactly, you will have to check the DLLs yourself if you really need this.
Muddy Waters is offline  
Old 03/28/2012, 20:50   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
Quote:
Originally Posted by Daarmy View Post
i dont know, was it fixable?
Who cares about 1 - ?
I play on a private server. Create a game with "-" is to ban the account


lord_zauron is offline  
Old 05/07/2012, 20:05   #5
 
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
up ?
lord_zauron is offline  
Old 05/07/2012, 20:19   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 3,170
Received Thanks: 1,191
D2BS with kolbot can create games without - in gamename
mirkoregge is offline  
Old 05/08/2012, 13:19   #7
 
elite*gold: 0
Join Date: Jun 2010
Posts: 462
Received Thanks: 125
Code:
	var gameName = 'Pc';	    	// name of the game without slash
	var gamePassword = 'ili';    		// your game password, if no need, leave blank
	var gameDifficulty = 2;        	// game diff : 0 = normal, 1 = nightmare, 2 = hell
	var maxNumberOfPlayer = 8;		
	var charDiff = [false, 20];			// [true/false to enable/disable, number]
Code:
						controlData.click(controlData.controls.lobby.create.button.cancel);
						sendEventToOOG(D2NT_MGR_CREATE_GAME, "Create fake game.", 0);
						Delay(500);				
						
						if (!controlData.get(controlData.controls.lobby.button.create).pressed)
							controlData.click(controlData.controls.lobby.button.create);
							
						var runNumber = My_File ("NTBot/MyData/Custom/runNumber[" + gameCreater + "].txt", 0);
						controlData.setText(controlData.controls.lobby.create.editBox.gameName, gameName + "-" + runNumber);
						Delay(500);
						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]);
						Delay(200);
						controlData.setText(controlData.controls.lobby.create.editBox.maxNumberOfPlayers, String(maxNumberOfPlayer));
						Delay(200);
						controlData.click(controlData.controls.lobby.create.button.createGame);
						locationTimeout(5000, location);
Code:
function tickCharDiff (tick, reqLVL) // lambochan
{
    if (tick)
	{
		var _control = controlData.get(controlData.controls.lobby.create.editBox.characterDifference);
		if (!_control)
			return;	
        if(_control.disabled == 4 )
            controlData.click( controlData.controls.lobby.create.button.useCharacterDifference ); // enable it
        controlData.setText( controlData.controls.lobby.create.editBox.characterDifference, reqLVL );
    } 
	else 
	{
		var _control = controlData.get(controlData.controls.lobby.create.editBox.characterDifference);
		if (!_control)
			return;
        if (_control.disabled == 5)
            controlData.click( controlData.controls.lobby.create.button.useCharacterDifference );    // disable it.
    }
}
Code:
function MyIL_File(path, mode, msg, retry)
{
    var _msg  = "";
    var _line = "";
    var _fileHandle;
    var _isFileCheck = false;

    if (arguments.length < 3) msg   = "";
    if (arguments.length < 4) retry = (mode != 0) ? 25 : 5;

    while (retry-- > 0)
    {
        if (mode == 2 && !_isFileCheck)
        {
            _fileHandle = FileOpen(path, 0);
            if (!_fileHandle)
                _fileHandle = FileOpen(path, 1);

            if (_fileHandle)
                _fileHandle.Close();

            _isFileCheck = true;
        }

        _fileHandle = FileOpen(path, mode);
        if (_fileHandle)
            break;

        if (retry > 0)
            Delay(200);
    }

    if (_fileHandle)
    {
        if (mode == 0)
        {
            while (!_fileHandle.eof)
            {
                _line = _fileHandle.ReadLine();
                if (_line || !_fileHandle.eof)
                    _msg += _line + msg;
            }
        }
        else if (msg)
            _fileHandle.WriteLine(msg);

        _fileHandle.Close();
    }

    return _msg;
}
lmk if i forgot something
Stibi is offline  
Old 05/10/2012, 12:49   #8
 
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
thanks!
lord_zauron is offline  
Old 08/05/2012, 12:30   #9
 
elite*gold: 0
Join Date: Aug 2012
Posts: 1
Received Thanks: 0
Hi I know this is a really old thread but i'm hoping someone can help me.

I tried applying all these to the ntbot.ntj (i just assumed it was where i was supposed to put it) but i keep getting syntax errors.

I am not a programmer and have very little knowledge on how to fix it so if someone could please show me the whole file of where this is supposed to be, put in the right way i would really be so thankful.
vsheker is offline  
Old 07/15/2019, 20:43   #10
 
elite*gold: 0
Join Date: Jul 2019
Posts: 4
Received Thanks: 0
anyone knows where i need to paste the code posting here?
pacocapo is offline  
Old 07/17/2019, 20:32   #11
 
elite*gold: 0
Join Date: Jul 2019
Posts: 4
Received Thanks: 0
up! I will appreciate your help
pacocapo is offline  
Old 08/23/2019, 18:35   #12
 
elite*gold: 0
Join Date: Aug 2019
Posts: 3
Received Thanks: 0
please n oentiendo


scout_0022 is offline  
Reply



« Help with game name in d2nt 1.13 | - »

Similar Threads
Kann mir bitte jemmand eine Hmachi HP erstellen """""SOS HELP""""
09/15/2010 - Metin2 Private Server - 11 Replies
SO wie der Titel schon sagt ich suche einen der mir per Teamviwer eine hp machen kann habe schon alles ausprobiert aber es klappt nie!!!! PLS HELP...



All times are GMT +2. The time now is 02:06.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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