What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] MSFix - Sarkoth fix (Adria's Hut avoidance & Death Restarter)

130n

New Member
Joined
Jul 13, 2010
Messages
75
Reaction score
0
[Plugin] MSFix - Sarkoth fix (Adria's Hut avoidance & Death Restarter) WORKING on 146

MSFix 1.2.2 - working with db 146
Description

This plugin will stop you from going to Adria's Hut by leaving the game and reloading the profile if you go astray from the normal sarkoth waypoint. If you die, this plugin will immediately leave the game and reload the profile (this solves issues with dying inside the cellar).

Changelog
Code:
1.0.6 - First release.
1.0.7 - Added command to logout and reset every time it dies, doesn't matter where you are.
1.0.8 - It will now check every five seconds to possibly prevent freezing; Restart logic optimized.
1.0.9 - No longer makes use of Thread.Sleep when leaving the game. Freezing issue fixed. No longer goes as far as the bridge before leaving the game.
1.1.0 - No longer starts/stop DB, only leaves the game and reload profile. 
1.2.0 - Added a timeout for the run (set to 180 seconds), if it times out the plugin will restart the bot. 
1.2.1 - Changed timeout from seconds to minutes. Default timeout: 2 minutes. 
1.2.2 - [U][B]Since Notification OK plugin was updated, I removed the bit of code where it clicked OK on game creation error in my code.[/B][/U] - [COLOR=#008000][B]Current Release (WORKING)[/B][/COLOR]

The only difference between 1.1.0 and 1.2.2 is that the latter has a timeout function.

This plugin will no longer freeze Diablo.

Instructions:
1) Download MSFix.cs
2) Create a folder with any name inside Plugins folder
3) Move MSFix.cs to that newly created folder
4) The plugin will come automatically enabled, if you wish to remove this feature delete this line:
Code:
Zeta.Common.Plugins.PluginManager.SetEnabledPlugins(new string[] { "MSFix" });
5) To change timeout, open msfix.cs and edit the line below from 2 to how long you wish it to wait (in minutes):
Code:
private const int CheckInterval = 2;

!!ATTENTION!!
DO NOT USE THIS PLUGIN WITH AGB. They already have everything built in.
If you're using Icool or any other sarkoth helper, please comment the lines where it turns on attack after you die, since if you do die, my plugin will restart the game.
For Icool 1.0 & 1.1:
1) Delete this bit of code:
Code:
            if (ZetaDia.Actors.Me.HitpointsCurrentPct == 0.00)            {
                Log("Wooooa, seems like i just died, lets turn on the attack for 20s");
                hasDied = true;
                ProfileManager.CurrentProfile.KillMonsters = true;
                diedTickCount = System.Environment.TickCount;
                return;
            }

Plugins necessary for maximum performance:
- Notification OK 0.8+

It's awesome to wake up and find your bot is working as it should:
[08:56:22.371 N] [Icool's Sarkoth farm helper v0.1.3] Cellars found in 488/975 games!
[08:56:22.371 N] [Icool's Sarkoth farm helper v0.1.3] This Run took: 13s
[08:56:22.371 N] [Icool's Sarkoth farm helper v0.1.3] The average fail run is: 13s
[08:56:22.372 N] [Icool's Sarkoth farm helper v0.1.3] Money made this run: 0
[08:56:22.372 N] [Icool's Sarkoth farm helper v0.1.3] Money made in total: 3534761

Thanks to:
noobery (Notification OK plugin) - for the advices
sinterlkaas (FixMe) - for the logic
Icool (Icool's Sarkoth Helper) - for the plugin
carguy (carguy DH profile) - for the excellent profile

Please report any problems.
 

Attachments

Last edited:
I'll give it a shot, but if you're at Adria's Hut already, you have jacked up checkpoints, leaving and starting the profile won't help anyway unless it navigates correctly and picks up the needed checkpoint.

Last I heard stopping/starting the main bot doesn't actually restart/reset the profile and just resumed where it was, but maybe that's changed now?
 
Testing it, so long as it stops and or logs off before getting the bad checkpoint should be all good.

Thanks for this, here's hoping!

Other issue, is sometimes it will get stuck BY the dank cellar, just to the right and north of it after death, so this wouldn't resolve that. Though it usually travels near Adria's hut before or at some point so may resolve those as well.
 
Last edited:
I'll give it a shot, but if you're at Adria's Hut already, you have jacked up checkpoints, leaving and starting the profile won't help anyway unless it navigates correctly and picks up the needed checkpoint.

Last I heard stopping/starting the main bot doesn't actually restart/reset the profile and just resumed where it was, but maybe that's changed now?

It probably changed then, because it did reset the profile.
 
Testing it, so long as it stops and or logs off before getting the bad checkpoint should be all good.

Thanks for this, here's hoping!

Other issue, is sometimes it will get stuck BY the dank cellar, just to the right and north of it after death, so this wouldn't resolve that. Though it usually travels near Adria's hut before or at some point so may resolve those as well.

Could you be more specific? That's a little vague.
 
Testing it, so long as it stops and or logs off before getting the bad checkpoint should be all good.

Thanks for this, here's hoping!

Other issue, is sometimes it will get stuck BY the dank cellar, just to the right and north of it after death, so this wouldn't resolve that. Though it usually travels near Adria's hut before or at some point so may resolve those as well.

A suggestion for the maker to resolve this, add a maybe 100 second timer that will restart bot no matter what when the game starts, so if it get stuck somewhere the game will take too long and restart without issues, if logging before hut works at expected as well. Cheers! This will make sarkoth profiles unstoppable
 
I cant be more specific, but I can show you : )

sarkwellstuck.webp

Previous poster has a very valid point, games only take about 35 seconds max. A log out/reset timer would be worth testing and could potentially resolve all issues.
I would say 100 seconds is a bit long as it could break it, but possibly add it to the avoiding Adria's hut checkpoint issues.
 
Last edited:
I cant be more specific, but I can show you : )

Previous poster has a very valid point, games only take about 35 seconds max. A log out/reset timer would be worth testing and could potentially resolve all issues.
I would say 100 seconds is a bit long as it could break it, but possibly add it to the avoiding Adria's hut checkpoint issues.

That's a very nice idea, I'll work on it. Sarkoth runs shouldn't take longer than 2 minutes, if it did, something went wrong.
 
Newest release does not seem to revive if dies, this is outside of the cellar I have not tested and verified inside, it sat here for quite an amount of time before I took the SS, I do not have an exact number.. let's just say it was far too long..

norevive.webp
 
I cant be more specific, but I can show you : )

View attachment 45209

Previous poster has a very valid point, games only take about 35 seconds max. A log out/reset timer would be worth testing and could potentially resolve all issues.
I would say 100 seconds is a bit long as it could break it, but possibly add it to the avoiding Adria's hut checkpoint issues.
How about runs when you sell and salvage items?
 
Short of my most recent post. I've done sell/salvage 3 times as of posted this with 0 issues.
 
Short of my most recent post. I've done sell/salvage 3 times as of posted this with 0 issues.

Any updates on if this works well or not.

I am not having any more deaths anymore with carguys 1.3c but still would be a nice back up.
 
I can't comment beyond my last post and the SS I posted. Still waiting on OP to comment on bot not reviving at all outside of cellar.

With this plug in disabled revives instantly, with it enabled does not revive at all. Thus the SS I posted.
 
i've seen the puglin prevent me from going to adria's hut checkpoint

i'd like to thank 130n for the initiative keep the good work

thanks!
 
Back
Top