• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Summoner Flesh Offering

    Discussion in 'Archives' started by Hyperaktivist, Mar 21, 2014.

    1. Hyperaktivist

      Hyperaktivist New Member

      Joined:
      Jan 29, 2012
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Hey there, dont know if im retarded or its not supported yet,
      Flesh offering! is there anyway to get this skill in the combat routine? its such a great damage/farming boost! Would be great if someone could send me a cr for it :)
       
    2. ArchmageGed

      ArchmageGed New Member

      Joined:
      Mar 15, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      I'd like to know how to do this as well.
       
    3. araklisk

      araklisk New Member

      Joined:
      Apr 4, 2014
      Messages:
      47
      Likes Received:
      0
      Trophy Points:
      0
      This is how I'm doing it but it causes error spam in the bot like summon skeletons does.

      First I created a new check to see if any of my summons had the Flesh Offering buff like this:
      private int FleshOfferingBuffed { get { return LokiPoe.ObjectManager.Objects.OfType<Monster>().Count(m => m.IsValid && m.IsFriendly && m.HasAura("offering_offensive") && !m.IsDead); } }

      then I added a line to Exile.cs for Flesh Offering that makes sure that none of the minions are buffed, there are dead summonables nearby to use it on, and I have max zombies up so I'm not wasting corpses.

      Register("Flesh Offering", ret => FleshOfferingBuffed == 0 && DeadSummonablesNearby.Any() && NumZombies == MaxZombies);


      Works for me, but, as I said, causes mass error spam in bot about null references that I have been unable to fix. Hopefully pushedx can weigh in on my dirty code and fix it.

      View attachment Exile.cs

      This is my default exile.cs file with the edits done.
       
    4. ArchmageGed

      ArchmageGed New Member

      Joined:
      Mar 15, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Thanks very much! This is working perfectly for me.
       
    5. araklisk

      araklisk New Member

      Joined:
      Apr 4, 2014
      Messages:
      47
      Likes Received:
      0
      Trophy Points:
      0
      No problem, you can do the same with Bone Offering if you switch it from "offering_offensive" to "offering_defensive" I believe.
       
    6. ArchmageGed

      ArchmageGed New Member

      Joined:
      Mar 15, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Now for another question...(and perhaps this is too tricky to be worth spending time on)

      Is there any way to code flesh and bone offering so that it uses flesh offering whenever white mobs are around, but uses bone offering whenever blue/yellow/unique mobs are around? I'm just defaulting to using bone offering all the time to increase survivability of my zombies. Thanks for any advice!
       
    7. araklisk

      araklisk New Member

      Joined:
      Apr 4, 2014
      Messages:
      47
      Likes Received:
      0
      Trophy Points:
      0
      Create another check on zombies for bone offering:
      private int BoneOfferingBuffed { get { return LokiPoe.ObjectManager.Objects.OfType<Monster>().Co unt(m => m.IsValid && m.IsFriendly && m.HasAura("offering_defensive") && !m.IsDead); } }

      then add a line for bone offering just above flesh offering with a prereq for only magic and above.

      Register("Bone Offering", ret => BoneOfferingBuffed == 0 && DeadSummonablesNearby.Any() && NumZombies == MaxZombies && BestTarget.Rarity >= Rarity.Magic);


      I don't have bone offering to test atm but that should work. Let me know if it doesn't and I'll dig into it further.
       
    8. Pochizzle

      Pochizzle Member

      Joined:
      Mar 5, 2012
      Messages:
      204
      Likes Received:
      0
      Trophy Points:
      16
      Thanks for the profile, hopefully these will be supported soon. Mass errors scare me
       
    9. ArchmageGed

      ArchmageGed New Member

      Joined:
      Mar 15, 2014
      Messages:
      20
      Likes Received:
      0
      Trophy Points:
      0
      Araklisk, this is working absolutely perfectly for me, and throwing no errors at all. Thanks so much!
       
    10. IeU

      IeU Member

      Joined:
      Jul 20, 2010
      Messages:
      830
      Likes Received:
      11
      Trophy Points:
      18
      Just for the sake of sharing. (changed a bit the initial code, suits me better)

      Code:
      Register("Flesh Offering", ret => FleshOfferingBuffed == 0 && MyZombies.Count == MaxZombies && NumberOfMobsNear(BestTarget, 50, 1, true));
       
    11. kevel

      kevel Member

      Joined:
      May 1, 2013
      Messages:
      71
      Likes Received:
      0
      Trophy Points:
      6
      http://i.imgur.com/MWBBbjD.jpg

      this is error I get cant select exile.cs when i use yours.
       
    12. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      The Inventory API was updated after that post was made, so that code needs to be updated:

      Code:
      LokiPoe.ObjectManager.Me.Inventory
      
      should now be:

      Code:
      LokiPoe.PlayerInventory
      
      That should fix those compile errors (just compiled it).
       
    13. kevel

      kevel Member

      Joined:
      May 1, 2013
      Messages:
      71
      Likes Received:
      0
      Trophy Points:
      6
      Thanks for the fast reply.
       

    Share This Page