d2nt Name game "-"

03/27/2012 23:42 lord_zauron#1
I ask for a help to remove the hyphen from the game name!
Ex: Pindle-01, Pindle-02 .. For Pindle 01, Pindle 02 ...


Thanks!
03/28/2012 14:31 RezChams#2
i dont know, was it fixable?
Who cares about 1 - ?
03/28/2012 19:25 Muddy Waters#3
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.
03/28/2012 20:50 lord_zauron#4
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 :(
05/07/2012 20:05 lord_zauron#5
up ?
05/07/2012 20:19 mirkoregge#6
D2BS with kolbot can create games without - in gamename
05/08/2012 13:19 Stibi#7
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
05/10/2012 12:49 lord_zauron#8
thanks!
08/05/2012 12:30 vsheker#9
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.
07/15/2019 20:43 pacocapo#10
anyone knows where i need to paste the code posting here?
07/17/2019 20:32 pacocapo#11
up! I will appreciate your help
08/23/2019 18:35 scout_0022#12
please n oentiendo
01/28/2021 01:47 Killeros1#13
Quote:
Originally Posted by Stibi View Post
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

If you are still here, could you please some more details for people that don't do programming.

Where to place these? Where to replace them, and what do delete.