• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Bot not 'engaging' mobs enough for you? Want to get up in their face?

    Discussion in 'Archives' started by WhereIsMyMind, Oct 20, 2013.

    1. WhereIsMyMind

      WhereIsMyMind Member

      Joined:
      Oct 12, 2013
      Messages:
      848
      Likes Received:
      5
      Trophy Points:
      18
      Edit the combat routine you use! Find the following line, in bold, in the Class1.cs:

      Code:
        private Composite CreateMoveToLos2()
              {
                  return new Decorator(ret => [B]TargetList.First().Distance > 50[/B],
                      CommonBehaviors.MoveTo(ret => TargetList.First().Position, "CreateMoveToLos2"));
              }
      And set the > 50 distance (50 being about the distance of visible screen), with your preferred maximum engage distance.
      So for me with my primary attack being Freezing Pulse, I set that to 23. Now my bot charges up to the archers and freezing pulses them rather than sitting back using default attack or ice spear.

      Code:
      private Composite CreateMoveToLos2()
              {
                  return new Decorator(ret => TargetList.First().Distance > 23,
                      CommonBehaviors.MoveTo(ret => TargetList.First().Position, "CreateMoveToLos2"));
              }
      WIMM
       
    2. DeadDevil

      DeadDevil New Member

      Joined:
      Apr 11, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      hi,

      it is possible to do this with the new exile.cs?

      greetings
       
    3. Crumpet_

      Crumpet_ Member

      Joined:
      Sep 29, 2012
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      Have my babies.

      Also, people still use Freezing pulse? ;) haha

      Thanks heaps.
       
    4. DeadDevil

      DeadDevil New Member

      Joined:
      Apr 11, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      nobody knows how to fix?
       
    5. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      Change the line:

      Code:
      CombatComposite.AddChild(CreateMoveIntoRange(45));
      to something much lower and you should have the same effect as the old CR that this thread refers to.
       
    6. Crumpet_

      Crumpet_ Member

      Joined:
      Sep 29, 2012
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      key words "addchild"

      also thanks pushedx
       
    7. DeadDevil

      DeadDevil New Member

      Joined:
      Apr 11, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      ye i tried this already. Was the first thing i tried, its dont working.

      Bot still casts from max distance.
       
    8. Crumpet_

      Crumpet_ Member

      Joined:
      Sep 29, 2012
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      ^ hmm pretty sure it seems to be working for me, via incinerate
       
    9. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      You'll probably also want to change the distance for Incinerate so it won't cast if you're too far away:

      Code:
      Register("Incinerate", ret => BestTarget.Distance < 40);
      Basically, Incinerate is an "always attack in place" type of skill, where the server doesn't move you into casting range like it does with most other skills. As a result, as soon as the bot goes to cast it, it'll cast from whatever distance you are rather than moving you to cast, which is what Exile assumed for using skills.

      There are other weird issues like that for some other spells, but users just have to work around them with how Exile is setup. A reworked casting system is being worked on and the way Exile is implemented will be changing in the future. For now though, it mostly works with a wide variety of skills. If the movement and casting system weren't being reworked, we'd invest some time into trying to restructure the casting composites, but it's not worth it for now.
       
    10. DeadDevil

      DeadDevil New Member

      Joined:
      Apr 11, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1

      Can i also do it like this?

      Register("Freezing Pulse", ret => BestTarget.Distance < 40));

      Or it is better to go ->

      Register("Incinerate", ret => BestTarget.Distance < 40);
      "
      Register("Freezing Pulse");
      "
      "
      "


      Will test it later, actually changed my bot-char to a summoner, this works very well.
       

    Share This Page