• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • is there a way to bot with dual totem?

    Discussion in 'Archives' started by ofofunt, Dec 19, 2014.

    1. ofofunt

      ofofunt New Member

      Joined:
      Sep 14, 2014
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      seems like dual totem is not supported D::(
       
    2. Sapin32

      Sapin32 Member

      Joined:
      Jun 7, 2010
      Messages:
      100
      Likes Received:
      0
      Trophy Points:
      16
      I'd like to see this happens too ! Sadly i'm not much into coding to do this by my own so.. Just saying there's some people that might like a CC for this ! :cool: Thanks !
       
    3. cjstk90

      cjstk90 Member

      Joined:
      Sep 8, 2014
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      6
      or at least help us figure out how to summon two totems instead of one :(
       
    4. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      ExampleRoutine does not support dual totems or totems used as your primary melee/ranged skill.

      Totem support in ExampleRoutine is made specifically for using them as utility. The code that controls otem logic in example routine is this:
      You need to register and have one post to see spoilers!
      The logic there basically says, if the user has a totem on their skill bar (auto-detected by _totemSlot), wait TotemDelayMs before checking to see if the totem can be used, and only use it if there is not already an existing totem within 60 units.

      To get that logic to cast two totems (only of the same type), you'd want to lower the TotemDelayMs down to like 1000 ms rather than the default of 5000, and try this code (untested, since I have to respec my testing minion/totem character after the passive reset):
      You need to register and have one post to see spoilers!
      If that logic works, then it can be made the default since it works for any number of totems the user has access to, but the design of using them as utility skills auto-detected from the skillbar has to stay the same for now.

      I go over a really simple routine here, so if you're looking to get started working on your own, take a read over that as well.
       
    5. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      cjstk90, can you link to the build you are using? I ask as I have no idea about this build.. does it use two skill gems?

      the totem code, i presume, you are using is the exampleroutine code, which is the following:
      Code:
         // Handle totem logic.
                      if (_totemSlot != -1 &&
                          _totemStopwatch.ElapsedMilliseconds > ExampleRoutineSettings.Instance.TotemDelayMs)
                      {
                          var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_totemSlot);
                          if (skill.CanUse() &&
                              !skill.DeployedObjects.Select(o => o as Monster).Any(t => !t.IsDead && t.Distance < 60))
                          {
                              await DisableAlwaysHiglight();
      
                              var err1 = LokiPoe.InGameState.SkillBarPanel.UseAt(_totemSlot, true,
                                  Utility.CalculatePointAtDistanceAfterStart(myPos, cachedPosition,
                                      cachedDistance/2));
      
                              _totemStopwatch.Restart();
      
                              if (err1 == LokiPoe.InGameState.UseError.None)
                                  return true;
      
                              Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
                          }
                      }
      
      wimm
       
    6. cjstk90

      cjstk90 Member

      Joined:
      Sep 8, 2014
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      6
    7. svedmanp

      svedmanp New Member

      Joined:
      Nov 30, 2012
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      1
      Sorry for hijacking the thread but when im trying to use totems with exampleroutine my bot keeps on spamming totems until i go OOM without any cooldown whatsoever, help please?
       
    8. Crumpet_

      Crumpet_ Member

      Joined:
      Sep 29, 2012
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      Totem Power!!! yeah, this would be amazing if the bot could support dual totem builds.
       
    9. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      svedmanp, what is your totem delay?

      wimm
       
    10. krone6

      krone6 Member

      Joined:
      Jun 11, 2012
      Messages:
      441
      Likes Received:
      0
      Trophy Points:
      16
      I'm having the same problem. I lowered the delay to 2 and increased it to 2000000 and my character still spams the totem. I'd like to add in a delay to cut down on spam.
       
    11. tozededao

      tozededao Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,225
      Likes Received:
      5
      Trophy Points:
      38
    12. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      ^^ tozededao to the rescue!

      wimm
       
    13. Crumpet_

      Crumpet_ Member

      Joined:
      Sep 29, 2012
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      Oh man!!!!! Give this guy a cookie...
       

    Share This Page