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

[Plugin] Sarkoth - KillWait - Only kills monsters in cellar

Is there anyway for you to make it so that if you get hit while running to celllar it will use smoke with speed rune? and if u get low it will use prep with heal rune?

i tried editing that in general settings but ur "script" just seems to blindly ignore every enemy and what they do
 
Just wanted to say I am having really good luck with my wizard using this build and this plugin. I have Magic Weapon, Force Armor, Arcane Orb, and Diamond Skin to run every 20 seconds on the generic combat profile. So once the game starts it casts those 4 spells. This enough to get me past any monsters and to the cellar pretty much always. Then at the cellar it just spams Meteor and finishes off with Ray of Frost.
 
New Update. V3 Will turn on KillMonsters if health is below 80%. This will help when cellar is not available and you get attacked while trying to TP.
 
New Update. V3 Will turn on KillMonsters if health is below 80%. This will help when cellar is not available and you get attacked while trying to TP.


I'm getting like 10% left after 1 hit, since I'm only using my extra gold gear.

Would it be possible to do this:
If the cellar isn't there, kill the 2 or 3 monsters that you skipped in the beginning if they are in a 1-5 radius from you?

My bot is dying before he gets a chance to attack...
 
I'm getting like 10% left after 1 hit, since I'm only using my extra gold gear.

Would it be possible to do this:
If the cellar isn't there, kill the 2 or 3 monsters that you skipped in the beginning if they are in a 1-5 radius from you?

My bot is dying before he gets a chance to attack...

I'll see what I can do to make this happen for yah... Not sure I'll have time.. in that case, maybe you should find some better gear? 1 Hit down to 10% =X.....
 
Thanks for the plugin. I did notice something that might hte the plugin's fault or the profile's. The door was open and i was headed to it, but on my way there i got attacked, falling to 30% hp. Instead of just going inside my demonhunter decides to kill 5 zombies instead, then go inside. This slows down gph. Does this sound like something you could change or is it the profile's problem?
 
Came back to my bot having died about 20x in a row.

I advise not using this until it is fixed. Combined with DemonBuddy's current bugged state, it's a recipe for disaster.

When you are attacked while teleporting, the bot will stand there and let itself get pounded to death.
 
I like this concept. Never thought of it, and it looks like it may become a pretty sweet idea.
 
May i request a change? If you make it that it will only change the setting once.. That way it wont change it back if another plugin changes it to true.

The history behind this is that i use my plugin (Anti-Ganger) with yours, my plugin will set KillMonsters to true if it keeps dying, and yours will just change it back to false :p

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Windows;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using Zeta;
using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Common.Plugins;
using Zeta.Internals;
using Zeta.Internals.Actors;
using Zeta.Internals.Service;
using Belphegor.Helpers;

namespace Sarkoth
{
    public class Sarkoth : IPlugin
    {
        public Version Version { get { return new Version(0, 1); } }
        public string Author { get { return "w3eZle"; } }
        public string Description { get { return "Disable KillMonsters unless in DankCellar."; } }
        public string Name { get { return "Sarkoth Kill Wait v" + Version; } }
        public static bool Set;
        public Window DisplayWindow
        {
            get
            {
                return null;
            }
        }

        private void Log(string message)
        {
            Logging.Write(string.Format("[{0}] {1}", Name, message));
        }


        public void OnInitialize()
        {

        }

        public void OnPulse()
        {
            // if we're not in game and not in the process of restarting, do nothing
            if (!ZetaDia.IsInGame || !ZetaDia.Me.IsValid)
            {
                Set = false;
                ProfileManager.CurrentProfile.KillMonsters = false;
                return;
            }
            if (ZetaDia.Actors.Me.IsInTown)
            {
                Set = false;
                ProfileManager.CurrentProfile.KillMonsters = false;
            }
            Spell.CastAOESpell(SNOPower.Wizard_DiamondSkin, extra => ZetaDia.Me.HitpointsCurrentPct <= 0.10);
            Spell.CastAOESpell(SNOPower.Wizard_FrostNova, extra => ZetaDia.Me.HitpointsCurrentPct <= 0.30);
            if (ProfileManager.CurrentProfile.KillMonsters == true && ZetaDia.CurrentWorldDynamicId == 1999503360 & !Set)
            {
                Set = true;
                Log("Disabling KillMonsters");
                ProfileManager.CurrentProfile.KillMonsters = false;
                ProfileManager.CurrentProfile.PickupLoot = false;
            }

            if (ProfileManager.CurrentProfile.KillMonsters == false && ZetaDia.CurrentWorldDynamicId == 1999568897)
            {
                Set = false;
                ProfileManager.CurrentProfile.KillMonsters = true;
                ProfileManager.CurrentProfile.PickupLoot = true;
                Log("Enabling KillMonsters");
            }

        }

        public void OnShutdown()
        {
        }

        public void OnEnabled()
        {
            Log("Enabled.");
        }

        public void OnDisabled()
        {
            Log("Disabled.");
        }

        public bool Equals(IPlugin other)
        {
            return (other.Name == Name) && (other.Version == Version);
        }
    }

}
 
Last edited:
When using this plugin, the only skill that it uses is my main skill, it ignores Diamond skin completely, if it were to use Diamond skin when i want it to, it would be perfect, but it doesnt, so useless to me, good idea though thank you.
 
Great plugin, but would be nice to have it use Smoke Screen (DH) [also Diamond Skin on Wiz, Serenity on Monk, etc) if X mobs are in X range of it (hasn't died yet, but just a precaution)
 
Last edited:
I found this is plugin is more effective when I lower the kill and loot radius outside the cellar. Because pathing is so slow, the bot gets killed a lot standing there either TP'ing or pathing. You can do this easily by editing the if statements in the OnPulse() function using the following properties:
Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius
Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius

I hard code the radius values in the plugin itself. I tried reading and storing the values that were set in the main UI but I ran into some weird bugs.. I'll try and fix that later.

My bots are performing much faster at between 290-300 gph where as they were previously at 200. I have about 250% GF with both a WD and a DH. DPS: 19k, MS: 18%

edit: Thanks to all the prior plugin coders. Got a good understanding of the eventing structure.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Windows;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using Zeta;
using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Common.Plugins;
using Zeta.Internals;
using Zeta.Internals.Actors;
using Zeta.Internals.Service;


//Created by: adx 
//Credit to: w3eZle (http://www.thebuddyforum.com/members/144563-w3ezle.html)
//           eax (http://www.thebuddyforum.com/members/144149-eax.html) 
//           No1KnowsY (http://www.thebuddyforum.com/members/11607-no1knowsy.html)
//Script based on their original work
//Created Date: 14June2012

namespace Sarkoth
{
    public class Sarkoth : IPlugin
    {
        private bool IsRestarting { get; set; }
        public Version Version { get { return new Version(0, 1); } }
        public string Author { get { return "adx"; } }
        public string Description { get { return "reduce monster kill radius."; } }
        public string Name { get { return "Sarkoth Kill Reduce" + Version; } }

        //hard coding for now...
        private float originalKillRadius = 40; //store original kill radius
        private float reducedKillRadius = 10; //reduced radius

        private float originalLootRadius = 30; //store original kill radius
        private float reducedLootRadius = 10; //reduced radius

        public Window DisplayWindow
        {
            get
            {
                return null;
            }
        }

        private void Log(string message)
        {
            Logging.Write(string.Format("[{0}] {1}", Name, message));
        }


        public void OnInitialize()
        {
            IsRestarting = false;
        }


        public void OnPulse()
        {
            // if we're not in game and not in the process of restarting, do nothing
            if (!ZetaDia.IsInGame || !ZetaDia.Me.IsValid || IsRestarting)
            {
                return;
            }

            //Outside of Dank Cellar, reduce kill radius
            if (Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius != reducedKillRadius 
                && ZetaDia.CurrentWorldDynamicId == 1999503360)
            {
                Log("Reducing kill and loot radius");
                Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius = reducedKillRadius;
                Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius = reducedLootRadius;

                return;
            }

            //Inside of Dank Cellar, Enable Kill Monsters
            if (Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius != originalKillRadius 
                && ZetaDia.CurrentWorldDynamicId == 1999568897)
            {
                Log("Restoring kill and loot radius to " + originalKillRadius);
                Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius = originalKillRadius;
                Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius = originalLootRadius;

                return;
            }

        }

        public void OnShutdown()
        {
        }

        public void OnEnabled()
        {
            Log("Enabled.");
            //originalKillRadius = Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius;
            
        }

        public void OnDisabled()
        {
            Log("Disabled.");
        }

        public bool Equals(IPlugin other)
        {
            return (other.Name == Name) && (other.Version == Version);
        }
    }

}
 
Last edited:
anyone has any idea why my DH sometimes takes tp immediatly after sarkoth is killed without looting anything on the ground?
 
anyone has any idea why my DH sometimes takes tp immediatly after sarkoth is killed without looting anything on the ground?

had the same problem, i think i found a fix !

look at the colored spots:

if (ZetaDia.Actors.Me.HitpointsCurrentPct < 0.80 && ProfileManager.CurrentProfile.KillMonsters == false)
{
Log("Turning on KillMonsters -Health to low");
ProfileManager.CurrentProfile.KillMonsters = true;
return;
}

//Outside of DankC ellar, Diable Kill Monsters

if (ZetaDia.Actors.Me.HitpointsCurrentPct > 0.80 && ProfileManager.CurrentProfile.KillMonsters == true && ZetaDia.CurrentWorldDynamicId == 1999503360)
{
Log("Disabeling KillMonsters & PickupLoot");
ProfileManager.CurrentProfile.KillMonsters = false;
ProfileManager.CurrentProfile.PickupLoot = false;

return;
}



//Inside of Dank Cellar, Enable Kill Monsters
if (ProfileManager.CurrentProfile.KillMonsters == false && ZetaDia.CurrentWorldDynamicId == 1999568897)
{
Log("Enabeling KillMonsters & PickupLoot");
ProfileManager.CurrentProfile.KillMonsters = true;
ProfileManager.CurrentProfile.PickupLoot = true;

return;
}

now:

1. Starts with this, loot and kill = off

2. you get hit by a mob on the way to cellar, you turn on ONLY KILL

3. you are now entering the cellar, and because he checks for cellar AND KILL=FALSE (wich, it isnt ... its TRUE)

4. he didnt turn Loot on! so no loot for you :D


FIX:

change the green colored part to: (this sets loot to true, if you get attacked on the way! - if you kill it you deserve to loot it! :D)

if (ZetaDia.Actors.Me.HitpointsCurrentPct < 0.80 && ProfileManager.CurrentProfile.KillMonsters == false && ZetaDia.CurrentWorldDynamicId == 1999503360)
{
Log("Turning on KillMonsters -Health to low");
ProfileManager.CurrentProfile.KillMonsters = true;
ProfileManager.CurrentProfile.PickupLoot = true;
return;
}



i hope i could help :)
 
Last edited:
for some reason, my barb likes to stand for 5 seconds for every action he is about to do.
 
I found this is plugin is more effective when I lower the kill and loot radius outside the cellar. Because pathing is so slow, the bot gets killed a lot standing there either TP'ing or pathing. You can do this easily by editing the if statements in the OnPulse() function using the following properties:
Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius
Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius

I hard code the radius values in the plugin itself. I tried reading and storing the values that were set in the main UI but I ran into some weird bugs.. I'll try and fix that later.

My bots are performing much faster at between 290-300 gph where as they were previously at 200. I have about 250% GF with both a WD and a DH. DPS: 19k, MS: 18%

edit: Thanks to all the prior plugin coders. Got a good understanding of the eventing structure.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Windows;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
using Zeta;
using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Common.Plugins;
using Zeta.Internals;
using Zeta.Internals.Actors;
using Zeta.Internals.Service;


//Created by: adx 
//Credit to: w3eZle (http://www.thebuddyforum.com/members/144563-w3ezle.html)
//           eax (http://www.thebuddyforum.com/members/144149-eax.html) 
//           No1KnowsY (http://www.thebuddyforum.com/members/11607-no1knowsy.html)
//Script based on their original work
//Created Date: 14June2012

namespace Sarkoth
{
    public class Sarkoth : IPlugin
    {
        private bool IsRestarting { get; set; }
        public Version Version { get { return new Version(0, 1); } }
        public string Author { get { return "adx"; } }
        public string Description { get { return "reduce monster kill radius."; } }
        public string Name { get { return "Sarkoth Kill Reduce" + Version; } }

        //hard coding for now...
        private float originalKillRadius = 40; //store original kill radius
        private float reducedKillRadius = 10; //reduced radius

        private float originalLootRadius = 30; //store original kill radius
        private float reducedLootRadius = 10; //reduced radius

        public Window DisplayWindow
        {
            get
            {
                return null;
            }
        }

        private void Log(string message)
        {
            Logging.Write(string.Format("[{0}] {1}", Name, message));
        }


        public void OnInitialize()
        {
            IsRestarting = false;
        }


        public void OnPulse()
        {
            // if we're not in game and not in the process of restarting, do nothing
            if (!ZetaDia.IsInGame || !ZetaDia.Me.IsValid || IsRestarting)
            {
                return;
            }

            //Outside of Dank Cellar, reduce kill radius
            if (Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius != reducedKillRadius 
                && ZetaDia.CurrentWorldDynamicId == 1999503360)
            {
                Log("Reducing kill and loot radius");
                Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius = reducedKillRadius;
                Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius = reducedLootRadius;

                return;
            }

            //Inside of Dank Cellar, Enable Kill Monsters
            if (Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius != originalKillRadius 
                && ZetaDia.CurrentWorldDynamicId == 1999568897)
            {
                Log("Restoring kill and loot radius to " + originalKillRadius);
                Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius = originalKillRadius;
                Zeta.CommonBot.Settings.CharacterSettings.Instance.LootRadius = originalLootRadius;

                return;
            }

        }

        public void OnShutdown()
        {
        }

        public void OnEnabled()
        {
            Log("Enabled.");
            //originalKillRadius = Zeta.CommonBot.Settings.CharacterSettings.Instance.KillRadius;
            
        }

        public void OnDisabled()
        {
            Log("Disabled.");
        }

        public bool Equals(IPlugin other)
        {
            return (other.Name == Name) && (other.Version == Version);
        }
    }

}

works like a cake on my dh!
 
Back
Top