Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Diablo > Diablo Hacking

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 07-27-2005, 02:42 PM   #1 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
baal script stuck

the bot himself works fine. but if lots of people join my game too fast (and im standing at the start point) it gets stuck.

can i make it go at start one step beside, or anything? or just make him startup with the run faster.


Code:
YAM_StartGameDelay   = 0; // Use 0 for no delay.
allready set!
__________________
Rec00n is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 07-27-2005, 09:05 PM   #2 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
noone got the same prob or a solution?
__________________
Rec00n is offline   Reply With Quote
Old 07-27-2005, 09:12 PM   #3 (permalink)
IMMERSION RUINED
 
Johnny's Avatar
 
Join Date: Mar 2005
Location: Garden Grove, CA
Age: 17
Posts: 2,411
what do you mean by stuck, do you mean that 7 people come around you and you get stuck in like a 'cage'?

or do you mean the bot does not go because the script is stuck?

if its a. it'll just wait for them to move (that is not a problem)
b. set it to more than 0, it says 0 is for no delay, use 1 or something...
__________________
Quote:
We will not tolerate any form of staff corruption or power abuse.
Johnny is offline   Reply With Quote
Old 07-27-2005, 09:19 PM   #4 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
yes this cage thingy, but i get a error msg and it starts stalling
__________________
Rec00n is offline   Reply With Quote
Old 07-28-2005, 08:56 AM   #5 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
bump bump bump
__________________
Rec00n is offline   Reply With Quote
Old 07-28-2005, 12:58 PM   #6 (permalink)
BattleForums Member
 
Join Date: Oct 2003
Location: Hmm, Where Do You Think?
Age: 17
Posts: 450
you'd prolly have to edit the bots\yamb.d2l file and make it move a lil outta the way as soon as it joins, i made a lil script to make him/her move a lil as soon as it loads, but u must do a lil editing to yamb.d2l. here it is:

Only overwrite the part I show, NOT the whole file!!!
Just copy n paste over the old YAM function with my enhanced ver to make it move outta the way.
Code:
file: C:\d2jsp\scripts\bots\YAMB.d2l
...

function YAM() {
	// Load the includes, setup the log paths and start the run time chrono
	YAM_LoadIncludes();
	

	// Check if we have a body then get it if yes
	DT_getCorpses();
	if (DT_HaveCorpse) {
		DL_Deaths+=1;
	}
		//added by me  aabbcc
	print("Moving outta the way");
	if (me.act == 5) {
	DM_MoveTo(5092, 5025);
	}

    		//no more added by me

	// Set the Title
	YAM_SetTitle();
	// Load Party up!
	if (PublicMode) {
		file = fileOpen("libs/YAMB/configs/YAM_TeamBotting.d2l", 0);
		if (!file) {
			try{
				newTeamFile = fileOpen("libs/YAMB/configs/YAM_TeamBotting.d2l", 1);
				if (!newTeamFile)
					throw "Unable to create New YAM_TeamBotting File :: Error in YAM_TeamBotting file creation!";
				newTeamFile.writeLine("// Define all your leader char names here.  Make sure that they are spelled out");
				newTeamFile.writeLine("// exactly and case sensitive.  For Leader/Leecher and Team botting purposes");
				(YAM_IsLeader == true) ? newTeamFile.writeLine("Leaders.push(\"" + me.name + "\");") : newTeamFile.writeLine("//Leaders.push(\"FirstLeaderName\");");
				newTeamFile.writeLine("//Leaders.push(\"SecondLeaderName\");");
				newTeamFile.writeLine("");
				(YAM_IsLeader == false) ? newTeamFile.writeLine("Helpers.push(\"" + me.name + "\");") : newTeamFile.writeLine("//Helpers.push(\"FirstHelper\");");
				newTeamFile.writeLine("//Helpers.push(\"SecondHelper\");");
				newTeamFile.close();
				print("New YAM_TeamBotting file created!");
				print("You MUST edit this first for team botting to work.");
			}
			catch(fileException){
				print("-------------------------------------------------------------");
				print(fileException);
				stop();
			}
		}
		else
			file.close();
		DC_LoadInclude("YAMB/configs/YAM_TeamBotting.d2l");
		load(YAM_PartyUpPath);
		DC_ResetLeader();
	}
	var YAM_RunTimer = new Date().getTime();
	// Register the key events watch
	registerEvent(EVENT_KEYUP,     YAM_KeyUpManager);
	registerEvent(EVENT_SCRIPTMSG, YAM_CheckEvents);
	registerEvent(EVENT_GAMEMSG,   YAM_gamemsgHandler);
	// Load and setup the cubing support if user wants it before loading main snagit
	if (YAM_EnableCubing) {
		DC_LoadInclude("YAMB/common/YAM-Cubing.d2l");
		DCU_CubingEnabled = true;
		DCU_countrycode   = 1;
		DCU_Snagfile      = DIM_TempSnagFile;
		DC_LoadInclude(YAM_CubeConfig);  // Cube config must be loaded after d2jsp-cubing
		// Prepare the temp snagit file before we load snagit.ini
		DCU_UpdateCubeIniAtStartup();
		if(YAM_UseNJIP)
			njipOpenFile("settings/" + DCU_Snagfile);
	}
	// Load the snagit.ini file if not using NJIP, and load the .nip files in the njip array if we are using NJIP
	(!YAM_UseNJIP) ? DIM_getINI("settings/" + DSN_SnagItINIFile, true) : DSN_LoadNIPFiles();

	// Handle IP stuff before setting max game length
	_IP = me.gameserverip.split(".")[3];
	// if we wanna show the ip, do it now
	if (YAM_DisplayIP) {
		var IP_sh = getScreenHook();
		IP_sh.x = 700;
		IP_sh.y = 595;
		IP_sh.font = 1;
		IP_sh.color = 2;
		IP_sh.text = "*IP: ." + _IP;
	}

	// If inventory is full, retry to stash and stop before setting max game length if still full
	if (YAM_StopFullInv && DT_CountFreeSpaces() == 0) {
		DC_Print("Inventory is full, going to try to clear it first !");
		YAM_TownManager();
	}
	if (YAM_StartGameDelay > 0) {
		DC_Print("Waiting " + (parseInt(YAM_StartGameDelay / 1000,10)) + " seconds before game initialization...");
		delay(YAM_StartGameDelay);
	}
	// With all that taken care of, set max game length
	me.gamelength = YAM_MaxGameLength*1000;
	// Load the life watch script
	load(YAM_LifeWatchPath);
	delay(500);
	// Show MF info
	if(DC_Verbose)
		DT_DisplayMF();
	// Check for all the bosses user wants to run and load them in the correct order
	for (xxp=0; xxp < YAMXXP.length; xxp++) {
		if (YAM_madeConfigs == true){
			print("Stopping bot to let you edit your new config files!");
			break;
		}
		XP_ResetVars();
		DL_LoadRun();
		YAM_ShowCredits();
		_curBoss = (YAM_MustIdle) ? "HOTIP" : YAMXXP[xxp];
		///DC_SendMsgToScript( "scripts\\YAMBstarter.d2j", "running:" + _curBoss );
		scriptBroadcast( "running:" + _curBoss );
		(YAM_MustIdle) ? LoadModule("HOTIP") : LoadModule(YAMXXP[xxp]);
		gameMsgExtendHandler = null; // Reset it
	}
	if (YAM_MustIdle) {
		XP_ResetVars();
		DL_LoadRun();
		YAM_ShowCredits();
		//DC_SendMsgToScript( "scripts\\YAMBstarter.d2j", "running:HOTIP" );
		scriptBroadcast( "running:HOTIP" );
		LoadModule("HOTIP");
	}
	// Check if min run time is reached, do a town run and/or stall if not
	YAM_RunTime = new Date().getTime() - YAM_RunTimer;
	if (YAM_RunTime < YAM_MinGameLength*1000) {
		DC_Print("Run took "+ Math.round(YAM_RunTime/1000) +" seconds and was finished under minimum game length ("+YAM_MinGameLength+" seconds)");
		_merc = DC_GetMerc();
		if ((YAM_MinGameLength - YAM_RunTime/1000) > 9 || (_merc && _merc.getState(2))) {
			YAM_TownManager();
			YAM_RunTime=new Date().getTime() - YAM_RunTimer;
		}
		if (YAM_RunTime < YAM_MinGameLength*1000) {
			YAM_MakeTP();
			DC_Print("Stalling for "+ Math.round(YAM_MinGameLength - YAM_RunTime/1000) +" seconds");
			delay(YAM_MinGameLength*1000 - YAM_RunTime);
		}
	}
	quit();
}

...
I am not responsible for you screwing up ur Yamb.d2l file!!!!!!!
__________________
wasup999999 is offline   Reply With Quote
Old 07-28-2005, 04:01 PM   #7 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
ty i will test it. ive made a copy of my yamb.d2l
__________________
Rec00n is offline   Reply With Quote
Old 07-29-2005, 07:52 PM   #8 (permalink)
BattleForums Newbie
 
Rec00n's Avatar
 
Join Date: Aug 2003
Location: Germany
Posts: 24
wow thx it works fine. big thx to you
__________________
Rec00n is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« d2jsp question | Whats up with this lag? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 06:20 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0