Register for your free account! | Forgot your password?

You last visited: Today at 20:54

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

Advertisement



[Release] Muddy's D2NT

Discussion on [Release] Muddy's D2NT within the Diablo 2 Programming forum part of the Diablo 2 category.

Reply
 
Old 05/22/2011, 13:40   #2011
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Quote:
Originally Posted by Petrinius View Post
Thanks! Now its working properly!

You get a second thx on a reply now from me. XD

Keep up the good work!

E: So i dont have to put the names of the hosts of that channel anywere in the scripts (i have them in my friendlist)?
I don't quite get that. What exactly does the host (a Channel bot?) have to do with your char?

Quote:
Originally Posted by David Dean View Post
I did come across an error after putting in that snippet of code. I believe its just a reference problem. Maybe you might have a quick throw in.

Code:
scripts\libs\common\NTCommon.ntl (1576) : ReferenceError: NTA_Initialize is not defined
The code in that section is:

Code:
function MWC_Initialize()
{
	NTCU_InitCubing();
	
	NTA_Initialize();
Just re-checked the code snippet I posted, should be correct.
Anyway, it is quite likely that you didn't insert the code correctly, resulting in a syntax error.
Due to this error, the attack library cannot be included, thus none of the functions implemented in this library are defined.

You should therefore re-check the changes you made to this library or post the part you've changed so that I can have a quick glance at it.

Kind Regards
Muddy
Muddy Waters is offline  
Old 05/22/2011, 13:55   #2012
 
elite*gold: 0
Join Date: Feb 2011
Posts: 20
Received Thanks: 0
I simply copy and pasted over the original code. This is what I have for it at the moment:

Code:
/*
	if(target.classid => 705 && target.classid <= 709)
	{
		NTC_PutSkill(MWS_FANATICISM, NTC_HAND_RIGHT);
	
		return NTC_CastSkill(MWS_SMITE, NTC_HAND_LEFT, target);
	}
*/
	if(target.classid == 704 && NTConfig_AttackSkill[7] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[7], NTC_HAND_RIGHT);
	else if(NTConfig_AttackSkill[index + 1] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[index + 1], NTC_HAND_RIGHT);
	return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target);
When I comment out the newer code it runs. But with the slightly newer code it errors out.
David Dean is offline  
Old 05/22/2011, 14:25   #2013
 
elite*gold: 0
Join Date: May 2011
Posts: 12
Received Thanks: 0
Well, i thought the hostes are making a list of the baalruns and Diaruns wich are up.
And how would they know that I'm hosting baalruns, I heard that i must add them...
But maybe u know more about it.
Petrinius is offline  
Old 05/22/2011, 14:57   #2014
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Quote:
Originally Posted by David Dean View Post
I simply copy and pasted over the original code. This is what I have for it at the moment:

Code:
/*
	if(target.classid => 705 && target.classid <= 709)
	{
		NTC_PutSkill(MWS_FANATICISM, NTC_HAND_RIGHT);
	
		return NTC_CastSkill(MWS_SMITE, NTC_HAND_LEFT, target);
	}
*/
	if(target.classid == 704 && NTConfig_AttackSkill[7] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[7], NTC_HAND_RIGHT);
	else if(NTConfig_AttackSkill[index + 1] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[index + 1], NTC_HAND_RIGHT);
	return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target);
When I comment out the newer code it runs. But with the slightly newer code it errors out.
Well, apparently it was just me being a dumbass.
There's a reason that operator is called "greater than or equal to" and not "equal to or greater than"...

This should run flawlessly:
Code:
	if(target.classid [COLOR="Red"]>=[/COLOR] 705 && target.classid <= 709)
	{
		NTC_PutSkill(MWS_FANATICISM, NTC_HAND_RIGHT);
	
		return NTC_CastSkill(MWS_SMITE, NTC_HAND_LEFT, target);
	}

	if(target.classid == 704 && NTConfig_AttackSkill[7] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[7], NTC_HAND_RIGHT);
	else if(NTConfig_AttackSkill[index + 1] > 0)
		NTC_PutSkill(NTConfig_AttackSkill[index + 1], NTC_HAND_RIGHT);
	return NTC_CastSkill(NTConfig_AttackSkill[index], _NTA_SkillHand[index], target);
Quote:
Originally Posted by Petrinius View Post
Well, i thought the hostes are making a list of the baalruns and Diaruns wich are up.
And how would they know that I'm hosting baalruns, I heard that i must add them...
But maybe u know more about it.
They usually just read the friend list in order to get the name of your current game or handle join notifications - I'm pretty sure you won't have to worry about that, adding the channel bot should work just fine.

You'll maybe have to type ".login" though, in order to have the channel bot add you in the first place.
So you might want to set PerformChannelLogin in the NTBot.ntj to true.

Kind Regards
Muddy
Muddy Waters is offline  
Thanks
1 User
Old 05/22/2011, 15:03   #2015
 
elite*gold: 0
Join Date: Feb 2011
Posts: 20
Received Thanks: 0
Once again Sir! Awsome! Thank you very much. So one thing fixed! And something else again rises!

I've been noticing that the Bot crashes quit often. Is this a known issue as well? I'd like to say that about 2 out of 5 "games" crash out. I've lowered my snag delay down abit and put the game on lq. Seems to have worked a tiny bit. But when I run the "Super" chest script it can never complete it. 100% (IE: 12 games) have crashed.
David Dean is offline  
Old 05/22/2011, 15:20   #2016
 
elite*gold: 0
Join Date: May 2011
Posts: 12
Received Thanks: 0
Jeah, done that one.
Got another issue now. ^^
Sometimes he uses the game announcement texts and sometimes not.
My game time between the runs is set on 9000ms.
And the random' thing under there is on 1000ms now.
And the time to wait before texting in chat is 500ms.
Do u know where the problem could be in?

And how can i get my hdin restrict to use 'cleansing'.. Cause its using to much time between the waves.
Petrinius is offline  
Old 05/22/2011, 15:49   #2017
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Quote:
Originally Posted by David Dean View Post
Once again Sir! Awsome! Thank you very much. So one thing fixed! And something else again rises!

I've been noticing that the Bot crashes quit often. Is this a known issue as well? I'd like to say that about 2 out of 5 "games" crash out. I've lowered my snag delay down abit and put the game on lq. Seems to have worked a tiny bit. But when I run the "Super" chest script it can never complete it. 100% (IE: 12 games) have crashed.
The issue with the considerably high number of restarts is quite known.
However, I couldn't fix that yet, as I'm clueless about the cause myself. For the super chests, you could try to remove some of the chests on schedule and see if that lowers the number of restarts.
But this is just a hunch, I can't tell if that really helps in any way.

Quote:
Originally Posted by Petrinius View Post
Jeah, done that one.
Got another issue now. ^^
Sometimes he uses the game announcement texts and sometimes not.
My game time between the runs is set on 9000ms.
And the random' thing under there is on 1000ms now.
And the time to wait before texting in chat is 500ms.
Do u know where the problem could be in?

And how can i get my hdin restrict to use 'cleansing'.. Cause its using to much time between the waves.
Try increasing the delay between games a bit, that will most likely help.

And cleansing itself doesn't cause the delay, it's the for loop right after cleansing is activated.
Lowering the maximum number of loops in that for loop, located at line ~126 in your baal script, should solve the problem. The default value is 6, try 3-4 instead.

Kind Regards
Muddy
Muddy Waters is offline  
Thanks
1 User
Old 05/22/2011, 15:58   #2018
 
elite*gold: 0
Join Date: Feb 2011
Posts: 20
Received Thanks: 0
I think I "may" have figured it out my man.

I believe there may be 2 things you can look at to help with the issue.

1). Chat spam and self text: I disabled the text that float above his head and the loot report and that almost cut it down by 2/3. Out of 6 runs I was able to complete 4.

2). Teleport delay: I found that if my network speed droped below 300 or so bit/s (when he'd get a "false" teleport). That started to cause issues. I think the delay may be a bit to much on a few of the "larger" sized scripts?

So far I think the spam issue is the biggest. It did help with the crashes alot.
David Dean is offline  
Old 05/22/2011, 16:08   #2019
 
elite*gold: 0
Join Date: May 2011
Posts: 12
Received Thanks: 0
Ahh much better now. Line 116 changed.

Making the game time between games longer, doesn't have effect here.
Still not much saying in chat, Sometimes he does.. Sometimes not.
E: Wow this solves itself.. Maybe I hadn't reset D2 after the changes.

And Does the bot knows when to repair eq @ larzuk?
Enigma now 7-26 dura....
Petrinius is offline  
Old 05/22/2011, 17:59   #2020
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Quote:
Originally Posted by David Dean View Post
I think I "may" have figured it out my man.

I believe there may be 2 things you can look at to help with the issue.

1). Chat spam and self text: I disabled the text that float above his head and the loot report and that almost cut it down by 2/3. Out of 6 runs I was able to complete 4.

2). Teleport delay: I found that if my network speed droped below 300 or so bit/s (when he'd get a "false" teleport). That started to cause issues. I think the delay may be a bit to much on a few of the "larger" sized scripts?

So far I think the spam issue is the biggest. It did help with the crashes alot.
I still don't believe this to be true, it's probably just coincidental.
Usually it's more stable when delays are increased and not vise versa.

Quote:
Originally Posted by Petrinius View Post
Ahh much better now. Line 116 changed.

Making the game time between games longer, doesn't have effect here.
Still not much saying in chat, Sometimes he does.. Sometimes not.
E: Wow this solves itself.. Maybe I hadn't reset D2 after the changes.

And Does the bot knows when to repair eq @ larzuk?
Enigma now 7-26 dura....
I was just going to tell you that a restart is necessary for any changes in the entry point to take effect.

And yes, he will visit Larzuk if the durability of an item is below 40%.

Kind Regards
Muddy
Muddy Waters is offline  
Old 05/23/2011, 02:11   #2021
 
elite*gold: 0
Join Date: Feb 2011
Posts: 20
Received Thanks: 0
Quote:
I still don't believe this to be true, it's probably just coincidental.
Usually it's more stable when delays are increased and not vise versa.
Oh I'm sorry. Thats actually what I mean. When I say "to much" what I mean is "to hard on the bot". I think maybe higher delay will help it.
David Dean is offline  
Old 05/23/2011, 09:27   #2022
 
elite*gold: 0
Join Date: May 2011
Posts: 12
Received Thanks: 0
Quote:
{
if(!NTM_MoveToStair(me.areaid, 130 + i))
{
NTC_SendMsgToScript("MWBotGame.ntj",
(48)NTM_MoveToStair, 48, me.areaid, 130 + i);
return;
Weirdly, my bot solves problems himself and makes problems hiself.
Now got an error message of the line above; Line 48 >> Move to stairs failure.
Never changed anything there.

E: Nevermind. It solved itself with a restart.

Are there bigger item scripts available already?
I Want him to pick up some more and lower uniques.
And also more magic's like scepters/wands/claws.
Petrinius is offline  
Old 05/23/2011, 10:40   #2023
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41624
Join Date: Jan 2010
Posts: 22,728
Received Thanks: 12,654
Quote:
Originally Posted by David Dean View Post
Oh I'm sorry. Thats actually what I mean. When I say "to much" what I mean is "to hard on the bot". I think maybe higher delay will help it.
Okay, that makes sense.

Quote:
Originally Posted by Petrinius View Post
Weirdly, my bot solves problems himself and makes problems hiself.
Now got an error message of the line above; Line 48 >> Move to stairs failure.
Never changed anything there.

E: Nevermind. It solved itself with a restart.

Are there bigger item scripts available already?
I Want him to pick up some more and lower uniques.
And also more magic's like scepters/wands/claws.
Like .nip files?
Try our , "2 - Pickits".
Anyway, you usually achieve best results editing these yourself for only you really know which sort of items you would like keep.

Kind Regards
Muddy
Muddy Waters is offline  
Thanks
1 User
Old 05/23/2011, 14:43   #2024
 
elite*gold: 0
Join Date: May 2011
Posts: 12
Received Thanks: 0
Oke, thx. I will download a few 'pickits' for some more ideas.

Do u use it yourself btw?
Cause I need some magic find advice.
My mf run looks like this atm;

Andarial
pits
tunnels
Count
Summonner
Eldrich+Shenk
Worldstone
Baal
Diablo
Nila
Mephi
Travi
Kurastsewers
KurastTemples

Would u chance anything for better rune finding and uniques? (Except from the order of it, this is just a random list)

P.S On d2bs there was a Kurastchest script(found several hrs with that). It opened all the (big)chests in low/upp/bazaar-kurast. Maybe An Idea to make one? I can give u the d2bs script. It must be changed to use with d2nt? Or does this script already exist on d2nt..
Petrinius is offline  
Old 05/23/2011, 17:00   #2025
 
elite*gold: 0
Join Date: Mar 2009
Posts: 382
Received Thanks: 45
Quote:
Originally Posted by Petrinius View Post
Oke, thx. I will download a few 'pickits' for some more ideas.

Do u use it yourself btw?
Cause I need some magic find advice.
My mf run looks like this atm;

Andarial
pits
tunnels
Count
Summonner
Eldrich+Shenk
Worldstone
Baal
Diablo
Nila
Mephi
Travi
Kurastsewers
KurastTemples

Would u chance anything for better rune finding and uniques? (Except from the order of it, this is just a random list)

P.S On d2bs there was a Kurastchest script(found several hrs with that). It opened all the (big)chests in low/upp/bazaar-kurast. Maybe An Idea to make one? I can give u the d2bs script. It must be changed to use with d2nt? Or does this script already exist on d2nt..
you should add chestbotting if u are goin for hrs and yes it does exist

GruenerApfel is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] D2NT 3.1 1.13c
07/17/2016 - Diablo 2 - 91 Replies
hi, hab eben den d2nt3.1 gefunden. ein neues baba script is dabei. release thread eon D2NT3.1
[Realease] Muddy's Waypoint Catcher
08/21/2013 - Diablo 2 Programming - 46 Replies
Moin zusammen, hier mal die erste Release Version eines kleinen Scripts genannt Waypoint Catcher. Das ganze ist jetzt nichtmal 24h alt, dementsprechend sind vermutlich noch einige Bugs vorhanden. Hinweise dazu nehme ich gerne entgegen. ;) Features: - Suchen sämtlicher Wegpunkte mit Ausnahme, wobei in Akt ein durch Probleme im Jail Bereich nach dem Wegpunkt Outer Cloister abgebrochen wird - Wahlweise auch mit TP an jedem gefundenen Wp, sodass man damit auch anderen (nicht-Bots) die...
[D2NT] Long Dia Release
05/10/2011 - Diablo 2 Programming - 28 Replies
Ein kleines Script für diablo, es startet beim eingang macht ein tp cleart den weg zum star macht am star noch ein tp dann läufts wie das normale nur cleart es schöner :) hoffe euch gefällts ich habs noch nicht wirklich getestet (2-3 runs) bugs können gerne hier gepostet werden verbesserungs vorschläge auch :D installation: 1.)Script in den Bot ordner kopieren 2.)Script im editor oder vergleichbaren öffnen 3.) Msg´s anpassen (ist nicht schwer) 4.) in der char config die zeile...
D2NT 3.0 Pickit release
10/22/2010 - Diablo 2 - 77 Replies
edit
Muddy's D2NT Help
07/29/2010 - Diablo 2 - 3 Replies
hi i just started to use the bot it work's great. how do i set up the skill's i use on my Sorc and pick up itme's? ..... if you reply to this post please use english



All times are GMT +1. The time now is 20:55.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.