[Release] Muddy's D2NT

05/22/2011 13:40 Muddy Waters#2011
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
05/22/2011 13:55 David Dean#2012
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.
05/22/2011 14:25 Petrinius#2013
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.
05/22/2011 14:57 Muddy Waters#2014
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. :rolleyes:
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
05/22/2011 15:03 David Dean#2015
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.
05/22/2011 15:20 Petrinius#2016
Jeah, done that one. :D
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.
05/22/2011 15:49 Muddy Waters#2017
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. :D
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
05/22/2011 15:58 David Dean#2018
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.
05/22/2011 16:08 Petrinius#2019
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. :D

And Does the bot knows when to repair eq @ larzuk?
Enigma now 7-26 dura....
05/22/2011 17:59 Muddy Waters#2020
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. :D

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. :D

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
05/23/2011 02:11 David Dean#2021
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.
05/23/2011 09:27 Petrinius#2022
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.
05/23/2011 10:40 Muddy Waters#2023
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 [Only registered and activated users can see links. Click Here To Register...], "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
05/23/2011 14:43 Petrinius#2024
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..
05/23/2011 17:00 GruenerApfel#2025
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