• Visit Rebornbuddy
  • [Act 1][Inferno] Demon Hunter Sarkoth farming script

    Discussion in 'Archives' started by icool, Jun 14, 2012.

    1. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      I put together a Demon Hunter specialized Sarkoth script that will use vault and smokescreen when it runs through pack of mobs.

      This is ONLY for Demon Hunters

      The Skill set you should use is:
      Smokescreen with runspeed rune
      Vault with any rune
      Preparation with any rune
      Companion with ferret rune
      any Combat abilities that you use to kill mobs.

      Passives:
      Tactical Advantage
      Hot Pursuit

      To get started you enter "A Shattered Crown" quest at the part "Northwest Gate".
      DONT hire a follower and take the portal to "The Old Ruins".
      Run west until you hit the Checkpoint.
      Start the Profile.

      Guide to only have the bot tp while finished cellar and just log out if it doesnt find one
      Most/all sarkoth profile have 3 lines of code at the end that looks like this:
      Code:
      	</If>
      	<UseTownPortal questId="1" />
      	<LeaveGame reason="Run is done" />
      What they means is that even if you find the cellar or not the bot will tp before logging out, if you are one of those that gets killed alot while tping and that pretty ruins alot you can switch those lines to have the bot just quit and restart if it doesnt find the cellar
      Code:
      [COLOR="#FF0000"]	</If>[/COLOR]
      	[COLOR="#008000"]<UseTownPortal questId="1" />[/COLOR]
      	<LeaveGame reason="Run is done" />
      Move red down and green up.

      Guide on how to edit Belphegors routine
      [table="width: 500px"]
      [tr]
      [td="width: 250px"]Versions up to .118
      Code:
      1:Open the file RoutinesBelphegorRoutinesDemonHunter.cs in notepad or similar
      2:Find the line that reads:
      
      // Secondary
      Spell.CastAtLocation(SNOPower.DemonHunter_Impale, ctx => ((DiaUnit)ctx).Position),
      
      3:Change "Impale" into whatever spell you would like to use, here are some examples:
      ClusterArrow
      ElementalArrow
      BolaShot
      RapidFire
      
      You can also change the skill wich it will use when it no longer can cast the "Secondary"
      just look for:
      
      // Primary
      Spell.CastAtLocation(SNOPower.DemonHunter_HungeringArrow, ctx => ((DiaUnit)ctx).Position)
      
      [/td]
      [td="width: 250px"]
      Version .118
      Code:
      [SIZE=3]If the bot summons ferrets and smokescreens at random places just remove these lines from Demonhunter.cs[/SIZE]
              public static Composite DemonHunterBuffs()
              {
                  return
                      new PrioritySelector(
                      [COLOR="#FF0000"]Spell.Buff(SNOPower.DemonHunter_Companion,
                          req => !HasCompanion
                      ),
                      Spell.Buff(SNOPower.DemonHunter_SmokeScreen,
                          req => ZetaDia.Me.Movement.IsMoving
                      )[/COLOR]
      
                      /* 
                       * Vault disabled untill i can come up with method to ensure porting is "safe".
                       * 
                       * Technically this is what's required need to make it work properly.
                       *      - My position compare it against planned location. (Vault will make you jump 35 feets so if you jump too far bot will run back to reach its traveling route.)
                       *      - If i am facing location.
                       *      - If it's possible to travel to location using a straight line.
                       *      - If all of the above is true its safe to use Vault or any other Spell that would make character jump from one location to another.
                       */
      
                      /*
                      Spell.CastAtLocation(SNOPower.DemonHunter_Vault,
                          ctx => ZetaDia.Me.Position,
                          require => !ZetaDia.Me.HasBuff(SNOPower.DemonHunter_Vault) && ZetaDia.Me.Movement.ACDTarget.Distance >= 35f
                      )
                       */
      
                      );
              }
      
      [SIZE=3]Belphegor will not use Cluster Arrow until you add this line:[/SIZE]
                                  Spell.CastOnUnit(SNOPower.DemonHunter_FanOfKnives,
                                      ctx => ((DiaUnit)ctx).ACDGuid,
                                      req => Clusters.GetClusterCount(ZetaDia.Me, CombatTargeting.Instance.LastObjects, ClusterType.Radius, 15f) >= 2
                                  ),
      
                                  // Singles
                                  Spell.CastOnUnit(SNOPower.DemonHunter_Impale, ctx => ((DiaUnit)ctx).ACDGuid),
                                  Spell.CastOnUnit(SNOPower.DemonHunter_RapidFire, ctx => ((DiaUnit)ctx).ACDGuid),
                                  Spell.CastOnUnit(SNOPower.DemonHunter_ElementalArrow, ctx => ((DiaUnit)ctx).ACDGuid),
                                  [COLOR="#00FF00"]Spell.CastOnUnit(SNOPower.DemonHunter_ClusterArrow, ctx => ((DiaUnit)ctx).ACDGuid),[/COLOR]
      
                                  // Hatred Generators
                                  Spell.CastOnUnit(SNOPower.DemonHunter_EvasiveFire, ctx => ((DiaUnit)ctx).ACDGuid),
                                  Spell.CastOnUnit(SNOPower.DemonHunter_HungeringArrow, ctx => ((DiaUnit)ctx).ACDGuid),
                                  Spell.CastOnUnit(SNOPower.DemonHunter_BolaShot, ctx => ((DiaUnit)ctx).ACDGuid),
                                  Spell.CastOnUnit(SNOPower.DemonHunter_EntanglingShot, ctx => ((DiaUnit)ctx).ACDGuid)
      [/td]
      [/tr]
      [/table]

      Code:
      Version 1.4-ikw (ikw's edited version 1.1 from page 22...)
      -cleaned up the code and commented the tags for easy editing!
      -Attached zoinx recomended plugins from his guide how to get 700k gph! ([URL="http://www.thebuddyforum.com/demonbuddy-forum/demonbuddy-guides/55823-zoinx-guide-sarkoth-700k-gph.html"]http://www.thebuddyforum.com/demonbuddy-forum/demonbuddy-guides/55823-zoinx-guide-sarkoth-700k-gph.html[/URL])
      -Added my own modified Sarkoth helper plugin
      -Added Plugin pack, can be extracted into the Demonbuddy folder
      
      Version 1.1:
      -The script should no longer wait 4-5 seconds before entering the cellar.
      FAQ

      ? The bot doesnt attack, it just run straight in and tp
      ! Make sure you enable Sarkoth killWait addon prefferable my edited version (It is "sarkoth.cs" in the attachments)

      ? The bot vaults into th boss and dies
      ! Try to use a combat routine like Belphegor's all-in-one that does only use attacks

      ? Im often getting killed when the bot couldnt find the cellar and is about to teleport
      ! This may be fixed by using a routine that doesn summon ferrets and leaving the follower in town (Ferrets and Followers pull the enemies to you)

      ? Im dying and the bot runs the character to china town
      ! This is due to you dieng in another zone and bot respawning in the starter zone, you should not have to die in the cellar though

      ? Im dying and getting camped by zombies when i release
      ! If you use my edited killWait plugin the bot will attack the mobs as soon as you release and he can safely continue(May require some higher dps to prevent chain death)

      ? I use belphs routine and the plugin but my guy just runs too close to sarkoth before he attacks and dies
      ! Seems like ur having a bit too low kill radius, set it to 40-50

      ? My bot discovers another checkpoint and bugs out almost always
      ! Are you sure that you are on the correct quest? The correct quest is "A Shattered Crown" @ "Northwest Gate", if you where to get another checkpoint there it would require the bot to click a gate, which choudnt happen.

      ? My wizard just runs through the mob and gets killed every run
      ! Its because you touch yourself at night...

      Getting alot of requests to make the bot log out if it dies, and yes that would simplify alot but i have spent alot of time trying to find a proper way of doing it because just leaving the game wont reset the current progress of the profile which it needs to,
      If anyone know a way to reset the progress of the profile - please tell me:)


      Added my own replacement to the killwait plugin that also tracks avera cellar/fail run time and more :), also added it directly into the Plugins.zip

      Adde ikw's 7vault final profiles... to make them easier to find :)
      Added Ikw's edited version of DHSarkothV1.1, they say it runs smooth, try it...
      Also remember to replace the defaul script in Sarkoth killWait to mine edited version *Optional but it works better


      Make this worth my time and buy me something to eat :)
      [​IMG]
       

      Attached Files:

      Last edited: Jun 18, 2012
    2. Jonsbe

      Jonsbe New Member

      Joined:
      Feb 15, 2010
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      What kind of gph are you making with this?

      I'm now at ~400gph with normal sarkoth profile v1.1 when the pathing server is responsing somewhat laggy atm..
       
    3. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      400k gph? thats more than i make, but this is my stats atm:
      [14:32:38.937 N] Number of games completed:61
      [14:32:38.947 N] Last run acquired 3825 gold.
      [14:32:38.947 N] Current Gold per Hour: 257133

      I get the feeling that somtimes he leave some of the gold on the ground and just restarts instant after he kills him.
       
    4. Headsh0t

      Headsh0t New Member

      Joined:
      Jun 14, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      How to configure to use vault and smokescreen when it runs through mobs??

      323da35018664aebbd8e5f8.png

      This config isn't very good
       
    5. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      I put it in the profile using the "UsePower" tags.
      Since the KillMobs option is by default turned off i dont know if the combat routines will activate when you get close to mobs, I Use belphegors All-in-one routine with impale and hungering arrow.
       
    6. expir3d

      expir3d New Member

      Joined:
      Apr 4, 2012
      Messages:
      221
      Likes Received:
      0
      Trophy Points:
      0
      Will try this tonight :D

      Where does this script TP if cellar isn't present on game? Does it move to a safe spot before casting portal?
       
      Last edited: Jun 14, 2012
    7. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      As for now it just stops and teleport to town, but the script doesnt seem to get aggro when it run through the mobs with smokescreen atleast whitout a follower, never actually died when teleporting.
      But sometimes when he is trying to find the portal it stalls for about 3-5 seconds and thats when i die mostly, trying to figure out a fix to that.
       
      Last edited: Jun 14, 2012
    8. Headsh0t

      Headsh0t New Member

      Joined:
      Jun 14, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      I died lots of times because my dh stops for 5 sec before entering the cellar
       
    9. ddmisho

      ddmisho New Member

      Joined:
      Jun 13, 2012
      Messages:
      176
      Likes Received:
      0
      Trophy Points:
      0
      alsome script but problem
      why does it stop in front of the cellar for a while y not just move it right away.
      after the first vault and SS run to spot. detected dark cellar can you make it SS again? instead of walking a distance and ss again
       
    10. tazb

      tazb New Member

      Joined:
      Jun 12, 2012
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      its really not bad, but u can notice that always when cellar is opened it stays for a while before entering, like 4 secs. that slows him down dramaticlly
       
    11. expir3d

      expir3d New Member

      Joined:
      Apr 4, 2012
      Messages:
      221
      Likes Received:
      0
      Trophy Points:
      0
      fix those 2 and we're ready to rock
       
    12. wowisdownQQ

      wowisdownQQ New Member

      Joined:
      Dec 24, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I think the issue is if the direct path is blocked by something, it takes db a while to figure out how to go around it.

      I changed your code to to only use paths that are not blocked. Seems to fix the issue for me.

      Also I changed to use only smokescreen instead of vault and to cast caltrop before teleporting (personal preference).



      Code:
      <Profile>
      	<Name>Demon Hunter Sarkoth Farm </Name>
      	<GameParams quest="72221" step="35" act="A1" difficulty="Inferno" resumeFromSave="True" isPrivate="True" numGames="-1"  />
      	<Order>
      	<WriteReport />	
      	
      	<!-- Debug move -->
      	<MoveTo questId="1" x="1993.286" y="2624.005" z="30.16507" pathPrecision="3" />
      	
      	<UsePower x="2012.774" y="2583.023" z="27.1"  questId="1" powerId="	130695" />
      
      	<MoveTo questId="1" x="2042.056" y="2544.75" z="27.1" pathPrecision="5"/>
      	<If condition="ActorExistsAt(176007, 2059.629, 2478.667, 27.02374, 15)">
      		
      		<!-- Second Smoke Screen -->
      		<UsePower x="2067.39" y="2481.937" z="27.11275" questId="1" powerId="130695" />
      		<MoveTo questId="1" x="2090.933" y="2503.263" z="27.1" pathPrecision="5"/>
      		
      		<!-- Preparation and Third Smoke Screen -->
      		<UsePower questId="1" powerId="129212" />
      		<WaitTimer questId="1" waitTime="500" />  
      		<UsePower x="2090.933" y="2503.263" z="27.1" questId="1" powerId="130695" />
      		<MoveTo questId="1" x="2066.317" y="2478.228" z="27.2376" pathPrecision="5"/>
      				
      		<!-- Portal -->
      		<UseObject questId="1" x="2058.653" y="2476.354" z="26.32902" actorId="176007" isPortal="True" destinationWorldId="106746" />
      		
      		<!-- Get into firing position -->
      		<MoveTo questId="1" x="121.6049" y="157.6877" z="0.1000003" pathPrecision="5"/>
      		<MoveTo questId="1" x="120.072" y="128.4222" z="0.1000009" pathPrecision="5"/>
      
      	</If>
      	<UsePower questId="1" powerId="129216" /> 
      	<UseTownPortal questId="1" />
      	<LeaveGame reason="Run is done" />
      	</Order>
      	<KillMonsters>False</KillMonsters>
      	<PickupLoot>False</PickupLoot>
      </Profile>
       
    13. ddmisho

      ddmisho New Member

      Joined:
      Jun 13, 2012
      Messages:
      176
      Likes Received:
      0
      Trophy Points:
      0
      wowisdownQQ

      The script is alsome but y its not attacking once it in place? it stand in front of sarkoth and it teleport.

      also wat skill you using too
       
    14. wowisdownQQ

      wowisdownQQ New Member

      Joined:
      Dec 24, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      You may need to change the kill radius to 50.

      I use cluster arrow with bear as my secondary.

      Also similar to what icool uses:
      Smoke screen with fast rune
      Caltrop with 80% slow
      Ferret companion
      Preparation with heal
       
    15. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      About using Smokescreen only instead of vault at the first pack of mobs may get you problems with the script colliding with the mobs, but if it works it works.

      Also i may have fixed the problem where it stalls for like 4 seconds before entering the cellar, i did this by moving the player closer to the gate before the "UseObject" tag.
       
    16. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      You need to have this plugin: http://www.thebuddyforum.com/demonbuddy-forum/combat-routines-plugins/54736-plugin-sarkoth-killwait-only-kills-monsters-cellar.html

      I Use the skills that is originally in Belphegors routine, but for the script you need to have preparation, smokescreen and vault... optionally ferrets, tactical advantage and hot pursuit.
       
    17. Geertwilbert

      Geertwilbert New Member

      Joined:
      Jun 11, 2012
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      0
      This, plus when the bot sees the cellar door isn't open, it just starts TPing in the middle of a group of mobs.

      Maybe make it clear the area when standing still or attempting TP? Dunno if there's a way to do that.

      Tried with or without Killwait script btw.
       
      Last edited: Jun 14, 2012
    18. ddmisho

      ddmisho New Member

      Joined:
      Jun 13, 2012
      Messages:
      176
      Likes Received:
      0
      Trophy Points:
      0
      wowisdownQQ

      you use routine "all in one" or "generic" cause i use all in one and it only use hungry arrow
       
    19. wowisdownQQ

      wowisdownQQ New Member

      Joined:
      Dec 24, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I use the generic routine without any configuration. Seems to work fine because as the DH enters the dungeon, it spams all the skills anyway.
       
    20. icool

      icool Member

      Joined:
      Oct 3, 2011
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      6
      Are you running with a follower or a routine that summons you companions before the cellar?
       

    Share This Page