• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • How do you make the bot not stand in telegraphed attacks?

    Discussion in 'Rebornbuddy Forum' started by Neverdyne, Nov 25, 2014.

    1. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      Hello, I'm new to Reborn buddy and have been doing fates with it. One thing that seems to kill me quite often is the bot standing in telegraphed attacks. Some of them are quite nasty. Is there a way to make him move out?
       
    2. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      The aoe data isn't in the spelldata but we could make a collection of lists for each type of aoe and add it to a plugin/crs but there's been no community support behind this idea because not one person has reported a single spell id for me to add to the list >_>

      so I guess no one really wants it?

      edit:
      Code:
      strip regular frontal: 490, 940, 974, 975
      
      strip long wide frontal:
      
      strip wide frontal: ?
      
      cone narrow behind (flanking safe - 25%): 569 
      
      cone very narrow frontal (as small as strip)
      
      cone narrow frontal (flanking safe - 25%): 351, 352, 444, 498, 506, 517, 528, 720
      
      cone wide frontal  (flanking not safe - 33%+): 331, 446, 506, 518, 580, 604, 606, 618, 356, 937
      
      circle on you or their target, large radius: 562, 738, 978, 1311 
      
      circle on you or their target, large radius persistent: 563
      
      circle on you or their target, small radius persistent: 
      
      circle on you or their target, small radius: 954, 738, 1311
      
      circle on monster, large radius: 417, 1003, 1006, 337, 497
      
      circle on monster, small radius: 336, 561, 596
       
      Last edited: Dec 4, 2014
    3. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      Ah I see, and how do you get the SpellID of a telegraphed attack ingame?
       
    4. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Should be able to just run this in console or put it in your cr's pulse:
      Code:
       if ((Core.Me.CurrentTarget as BattleCharacter) != null && (Core.Me.CurrentTarget as BattleCharacter).IsCasting && (Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo !=null)
                      Logging.Write("[Spell Id] "+(Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo.Name +" Spell ID " + (Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo.ActionId);
      It puts the name and id from your target's casting spell into your log. I need the number and type of attack for my list.

      I was thinking of changing the categories to add cone/strips/stupid long strips but really since it works well enough for me and I've seen no support, I figured it didn't matter.

      The lists are maintained in my cr's thread btw.
       
      Last edited: Dec 3, 2014
    5. Endus

      Endus Community Developer

      Joined:
      Jul 9, 2012
      Messages:
      458
      Likes Received:
      6
      Trophy Points:
      18
      What determines the size of the AoEs? I've seen some cone attacks that are pretty short and some that a huge (Odin/Maahes/etc.). Does it go by their model size or is there a "small, medium, big" AoE category for each shape maybe?
       
    6. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      It's all based on the spellids. I'm not sure how many categories there are for types, widths, lengths and directions.

      I think types are just strips, cones, circles. Width/length I think just have the standard and wide/long. Directions forward/behind and mob/target for circles.

      From what I've seen, the same spellid from different mobs always has the same dimensions.
       
      Last edited: Nov 25, 2014
    7. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      So what you're doing is, on your combat routine you check to see if the target is casting a spell, get the spell's ID, and use some sort of lookup table to find the spell's area of effect dimensions / shape, then move the character to somewhere safe? If so, are you manually relating the shape / size of the spell to its ID on the lookup table? Or is there a way in the API to know the shape / size?
       
    8. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I'm using separate lists for each category of type, width, length and direction. So if spellID is in this list you know it's this area; if spellID is in that list then you know it's in that area.

      I haven't done any testing to see if the mob changes targets when they cast an aoe on a player but if not you could at least use it's rotation to treat it like a wide strip and if you're soloing then you know it will be cast on you.

      Right now I'm only avoiding frontal strip/cone aoes because it hasn't been a priority. The lists are because there's no api data (no data even for mastahg to grab) for the type/shape or size. Having a set of lists is effectively the same thing as having an enum in the spelldata describing the type/shape/size of the aoe. After that there's numerous ways we could handle calculating the data and deciding where to move.

      You can check if a point is in the aoe by using distance/facing calculations for strips/cones and distance checks for circles.
       
      Last edited: Nov 26, 2014
    9. Buddernutz

      Buddernutz New Member

      Joined:
      Sep 28, 2011
      Messages:
      197
      Likes Received:
      0
      Trophy Points:
      0
      i just figured this wouldnt happen. would be nice as a tank to side-step cone attacks and run out of aoe radial attacks and back in.
       
    10. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Still have not had anyone give me suggestions on aoe categories or data to add....

      This could have been implemented by anyone a long time ago if people actually wanted it.
      It's pretty basic stuff, no witchcraft required...

      >_>
       
    11. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      So I'm thinking of just writting a plugin that writes an XML file with every casted ability from creatures seen by the bot, but is there a way to know if it's a telegraphed attack and what its shape is just from the rebornbuddy api? If we have to do this manually it'll take a while :p
       
    12. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      There is no way, no. Nor do I believe any such database exists anywhere, at least not to my knowledge. Sorry.
       
    13. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I think you're onto something with this plugin idea. The plugin can take a screen shot and it can either be stamped with the spell id or the file name can have the time so you can look up the spell id in the log. It would be awesome for both collecting the spell ids and coming up with new categories, specially if you're in a birds eye view. ^_^
       
    14. Zamphire

      Zamphire Member

      Joined:
      May 16, 2013
      Messages:
      354
      Likes Received:
      11
      Trophy Points:
      18
      I tried running the script you gave a few posts back in the reborn console and it returned an error. I'd be glad to help out with the database if you'll make it possible for me.
       
    15. Sc4res

      Sc4res New Member

      Joined:
      Jan 5, 2014
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      0
      Yeah i am collecting alrdy Id`s etc
       
    16. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      sorry i didn't test it, I still can't test it now but I'm pretty sure the error was because of Colors:

      Code:
      if ((Core.Me.CurrentTarget as BattleCharacter) != null && (Core.Me.CurrentTarget as BattleCharacter).IsCasting && (Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo !=null)
      Logging.Write("[Spell Cast] "+(Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo.Name +" Spell ID " + (Core.Me.CurrentTarget as BattleCharacter).SpellCastInfo.ActionId);
      should work
       
      Last edited: Dec 3, 2014
    17. Zamphire

      Zamphire Member

      Joined:
      May 16, 2013
      Messages:
      354
      Likes Received:
      11
      Trophy Points:
      18
      As soon as the bot starts working again I'll be glad to give you some
       
    18. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      just started working for me ^_^

      I would really like some advice on the categories, if anyone has any suggestions

      Code:
      strip regular frontal:
      
      strip long frontal:
      
      strip wide frontal:
      
      cone narrow behind (flanking safe - 25%): 
      
      cone very narrow frontal (as small as strip)
      
      cone narrow frontal (flanking safe - 25%):
      
      cone wide frontal  (flanking not safe - 33%+): 
      
      circle on you or their target, large radius:
      
      circle on you or their target, small radius:
      
      circle on you or their target, large radius persistent: 
      
      circle on you or their target, small radius persistent: 
      
      circle on monster, large radius:
      
      circle on monster, small radius: 
      All i need is the spell id and the category
       
      Last edited: Dec 3, 2014
    19. Zamphire

      Zamphire Member

      Joined:
      May 16, 2013
      Messages:
      354
      Likes Received:
      11
      Trophy Points:
      18
      Okay, so the script didn't return an error this time, but I pasted it into Reborn Console and hit F5 to run and it seems to work but isn't putting anything into the log sadly.
       
    20. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I think the console hotkey system is broken, you'll have to manually click run unless someone enlightens us on how to use the hotkeys (i tried setting a different key but no go)
       

    Share This Page