|
You last visited: Today at 12:48
Advertisement
d2nt Name game "-"
Discussion on d2nt Name game "-" within the Diablo 2 Programming forum part of the Diablo 2 category.
03/27/2012, 23:42
|
#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!
|
|
|
03/28/2012, 14:31
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 24,265
Received Thanks: 15,362
|
i dont know, was it fixable?
Who cares about 1 - ?
|
|
|
03/28/2012, 19:25
|
#3
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
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
|
#4
|
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
|
Quote:
Originally Posted by Daarmy
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
|
#5
|
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
|
up ?
|
|
|
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
|
|
|
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
|
|
|
05/10/2012, 12:49
|
#8
|
elite*gold: 0
Join Date: Mar 2012
Posts: 7
Received Thanks: 0
|
thanks!
|
|
|
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.
|
|
|
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?
|
|
|
07/17/2019, 20:32
|
#11
|
elite*gold: 0
Join Date: Jul 2019
Posts: 4
Received Thanks: 0
|
up! I will appreciate your help
|
|
|
08/23/2019, 18:35
|
#12
|
elite*gold: 0
Join Date: Aug 2019
Posts: 3
Received Thanks: 0
|
please n oentiendo
|
|
|
01/28/2021, 01:47
|
#13
|
elite*gold: 0
Join Date: Jan 2021
Posts: 3
Received Thanks: 0
|
Quote:
Originally Posted by Stibi
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.
|
|
|
All times are GMT +1. The time now is 12:48.
|
|