Register for your free account! | Forgot your password?

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

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

Advertisement



setting level restrictions and max players in game

Discussion on setting level restrictions and max players in game within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 10
Received Thanks: 2
setting level restrictions and max players in game

not sure if anyone has released this here or not. I didn't come up with this just added the vars at the top to make it easier to switch when needed
helps a lot with the spam bot crashing d2nt

at the top of your NTBot.ntj add this

Code:
///////////////////////////////////////////////////
//        characters in your game setting: 		 //		
///////////////////////////////////////////////////
var characterdiff        =  "40"; 	//use this to keep those pesky spam bots out of the f'ing game
									//note you must manually hit the check box the first time for this to work
var maxNumberOfPlayersss = "8";		//use this to set the maximum number of players allowed in your game
then find this and add the red part
Code:
				controlData.click(controlData.controls.lobby.button.create);
				[COLOR="Red"]//controlData.click(controlData.controls.lobby.create.button.useCharacterDifference);//checks the use character diff box...does this every time so no go
				controlData.setText(controlData.controls.lobby.create.editBox.characterDifference,(characterdiff)); //level restriction
				controlData.setText(controlData.controls.lobby.create.editBox.maxNumberOfPlayers, (maxNumberOfPlayersss)); //max players
[/COLOR]				nextGameMake = GetTickCount() + createGameTimeout; // set our timeout
				sendEventToOOG(D2NT_MGR_PRINT_STATUS, location.name, 0);
stairbuilder is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
How to amke all pets born with level 3 or 4 skill level adn players as well
09/12/2009 - EO PServer Hosting - 4 Replies
Hi i been trying to design Cq_magic to make players and pets learn skills and they will be automaticly level 3 or 4 i tryed chaining the level but it didnt wokr any ideas guys thanks, also whats a libra mount look like
itemcoo, the best choice for game players...
02/29/2008 - Main - 0 Replies
ID’s reputation and benefit, ID’s halo and glory. Grand offline activity –accept register after January 28. Please pay attention to ‘King Road’ , itemcoo ITEMCOO---Global Top Professional Internet Game Exchange Service Center.



All times are GMT +1. The time now is 22:27.


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.