• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Belphegor Test Release

    Discussion in 'Archives' started by Nuok, Jun 27, 2012.

    1. dywersant

      dywersant New Member

      Joined:
      Feb 3, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      1
      Hello, this might be usefull for cc developers.

      Code:
      		public float PrimaryResource
      		{
      			get
      			{
      				int primary = (int)(Zeta.Internals.Actors.ActorAttributeType.ResourceCur) + (int)(ResourceValues.Parse(typeof(ResourceValues), ZetaDia.Me.ResourceTypePrimary.ToString()));
      				return (float) ZetaDia.Me.CommonData.GetAttribute<float>(primary);
      			}
      		}
      		
      		public float SecondaryResource
      		{
      			get
      			{
      				if (ZetaDia.Me.ActorClass != ActorClass.DemonHunter) {return -1;}	//because it only works for dh
      				int secondary = (int)(Zeta.Internals.Actors.ActorAttributeType.ResourceCur) + (int)(ResourceValues.Parse(typeof(ResourceValues), ZetaDia.Me.ResourceTypeSecondary.ToString()));
      				return (float) ZetaDia.Me.CommonData.GetAttribute<float>(secondary);
      			}
      		}
      		
      		public enum ResourceValues : int
      		{
      			None = 0x0000,
      			Arcanum = 0x2000,
      			Fury = 0x3000,
      			Spirit = 0x4000,
      			Mana = 0x5000,
      			Hatred = 0x6000,
      			Discipline = 0x7000,
      		}
      Use something like
      float currentresource = PrimaryResource;
      and ull get the value of the resource your character currently has.
      For dh PrimaryResource returns hatred, SecondaryResource returns disc.
      Remember there is no SecondaryResource for classes beside dh, thats why i made it return -1 if actor != dh
       
    2. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      Added similar API to DB just now. (With no need to do enum parsing like that)

      Expect it in the next release.

      Btw, your stuff can be simplified to something much easier.

      Code:
      var attrib = ActorAttributeType.ResourceCur | ((int)Me.ResourceTypePrimary << 12);
      Blizzard uses this standard "composite" attribute type for anything with multiple "types". (Eg; resource type, damage type, resists, etc)
       
      Last edited: Aug 4, 2012
    3. dywersant

      dywersant New Member

      Joined:
      Feb 3, 2011
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      1
      Thanks for your answers, thats ineed a cleaner way to do things here.
      i ended up calculating attribute like this
      Code:
      var primary = (int)(ActorAttributeType.ResourceCur + 0x1000) | ((int)ZetaDia.Me.ResourceTypePrimary << 12) ;
       
    4. devious21

      devious21 New Member

      Joined:
      Jul 29, 2012
      Messages:
      970
      Likes Received:
      12
      Trophy Points:
      0
      I don't know if this is an issue with Belphegor, or with Giles Monster Priority Changer, but at some point my bot just decided to stop attacking entirely.
      Started some point before this [19:38:21.082 N] Player died, Resetting caches.
      It then started a new game, and just tried to run through all mobs without hitting anything

      View attachment stopsattacking.zip
       
    5. motsmots

      motsmots Member

      Joined:
      Jan 19, 2011
      Messages:
      248
      Likes Received:
      1
      Trophy Points:
      18
      Pretty sure its on Giles end in the 1.5 version
       
    6. Champagne

      Champagne New Member

      Joined:
      Jun 15, 2012
      Messages:
      521
      Likes Received:
      0
      Trophy Points:
      0
      How do yu set wotb to only be used on elites?
       
    7. devious21

      devious21 New Member

      Joined:
      Jul 29, 2012
      Messages:
      970
      Likes Received:
      12
      Trophy Points:
      0
      Open D3, Start Demonbuddy, Join a game, hit 'Start", select "belphegor all in one", hit "stop", hit the settings button, then adjust WOTB aoe count to 20.

      pic
      wotb.jpg
       
    8. Champagne

      Champagne New Member

      Joined:
      Jun 15, 2012
      Messages:
      521
      Likes Received:
      0
      Trophy Points:
      0
      thx, didnt even kno about these settings XD
       
    9. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      private static WaitTimer _explodingPalm = new WaitTimer(TimeSpan.FromSeconds(3));
      Could you add a settings for this because I prefer it to 6 seconds ...
       
    10. Nuok

      Nuok Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      975
      Likes Received:
      28
      Trophy Points:
      28
      Version 207:
      Small tweaks in avoidance Logic
      DH: Stand in caltrops for use with Bait the Trap Run
      Monk:
      Cyclone Strike AoE Count added and will now cast on elites
      Seven-Sided Strike AoE Count added and will now cast on elites
      Added a setting for Exploding Palm Delay
      Wizard: Frost Nova AoE Count and Energy Twister AoE Count added

      Any settings or build suggestions are welcome

      With the slow attacking please try it without Giles Target provider and post a log.
       
    11. tesslerc

      tesslerc New Member

      Joined:
      Jun 27, 2012
      Messages:
      803
      Likes Received:
      9
      Trophy Points:
      0
      Please make it possible to set a HP bar for avoidance.
      Arcane and ice is allways something i would like to avoid, but desecrator alone is usually a piece of cake or at least if its 1/2 under you, and you would like to avoid it only if there is under 50% hp (other wise runs around alot)
       
    12. superreeen

      superreeen Member

      Joined:
      Jan 28, 2011
      Messages:
      307
      Likes Received:
      2
      Trophy Points:
      18
      Adding it to the ToDo list will be done when i'm happy with the behaviour per se :)
       
    13. aqh

      aqh Member

      Joined:
      Dec 11, 2011
      Messages:
      711
      Likes Received:
      0
      Trophy Points:
      16
      Is it still not possible to make the bot only use Wrath of the Berserker on elites?
       
    14. Gardettos

      Gardettos New Member

      Joined:
      Jun 11, 2012
      Messages:
      522
      Likes Received:
      6
      Trophy Points:
      0
      The new frost nova and twister works great. But without explosive blast working properly it is for naught. Also, on a weird note Belph would not attack Maghda. Not sure why.
       
    15. TreeK

      TreeK New Member

      Joined:
      Jul 10, 2012
      Messages:
      170
      Likes Received:
      1
      Trophy Points:
      0
      It has been possible to do that for some time. Look in your settings & set WotB to only go off when facing 20+ mobs - that will keep it from going off until you hit an elite (which will always trigger it, regardless of this setting).
       
    16. Nuok

      Nuok Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      975
      Likes Received:
      28
      Trophy Points:
      28
      Could you elaborate on what you need explosive blast todo?
       
    17. sojufiend

      sojufiend New Member

      Joined:
      Jul 5, 2012
      Messages:
      283
      Likes Received:
      0
      Trophy Points:
      0
      need the cc to be capable of running sprint WW Barb so we can do ponies/act3/4 with minimal amounts of gear.. is this a feature being implemented any soon?
       
    18. superreeen

      superreeen Member

      Joined:
      Jan 28, 2011
      Messages:
      307
      Likes Received:
      2
      Trophy Points:
      18
      As I already answered to your thread!
       
    19. xenohadden

      xenohadden New Member

      Joined:
      Jul 30, 2011
      Messages:
      242
      Likes Received:
      2
      Trophy Points:
      0
      Hey mate don't know if you know this but atm for monk if you get each mob to 30% and then put exploding palm on one of them and nuke them all down, it kills them all at the same time and you get loot x 3.

      Anyway we could get the bot to do this everytime?
       
    20. Gardettos

      Gardettos New Member

      Joined:
      Jun 11, 2012
      Messages:
      522
      Likes Received:
      6
      Trophy Points:
      0
      Preferably fire off when enemies are in a certain radius to maximize damage and fire off when ever not on cool down. It seems to go off even when enemy's are far away making it pretty much useless. The best build for a wizard is non stop nova/explosive blast. Also, what is the Wizical mass combat routine?
       

    Share This Page