Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Thread: January 26 Bot Update

  1. #1
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704

    January 26 Bot Update

    • Changed IsUsingAbility() unit bot script function to include actions that are queued due to the built-in bot execution delay, which allows you prevent trying to perform an action multiple times.
    • Added HasQueuedAction() function to the bot script API.
    • Added GetXPNeededToLevel(), GetBountyXP(), GetBountyGoldMin(), and GetBountyGoldMax() to the bot script API.
    • Added IsTalent() function to the ability bot script API, and removed IsAttributeBonus().
    • Added IsUltimate() function to the ability bot script API.
    • Added GetShrineCooldown() and IsShrineHealing() to the global bot script API.
    • Renamed GetModifier() to GetModifierName() for clarity.
    • GetLocation() can now always be called on buildings.
    • Fixed missing COURIER_ACTION_RETURN_STASH_ITEMS/COURIER_ACTION_TAKE_STASH_ITEMS constants
    • Added GetShopLocation() global function to the bot script API.
    • Added shop constants:
      • SHOP_HOME
      • SHOP_SIDE
      • SHOP_SECRET
      • SHOP_SIDE2
      • SHOP_SECRET2
    • Added ability target team constants:
      • ABILITY_TARGET_TEAM_NONE
      • ABILITY_TARGET_TEAM_FRIENDLY
      • ABILITY_TARGET_TEAM_ENEMY
    • Added ability target type constants:
      • ABILITY_TARGET_TYPE_NONE
      • ABILITY_TARGET_TYPE_HERO
      • ABILITY_TARGET_TYPE_CREEP
      • ABILITY_TARGET_TYPE_BUILDING
      • ABILITY_TARGET_TYPE_COURIER
      • ABILITY_TARGET_TYPE_OTHER (wards, etc)
      • ABILITY_TARGET_TYPE_TREE
      • ABILITY_TARGET_TYPE_BASIC (creep or courier)
      • ABILITY_TARGET_TYPE_ALL (but not trees)
    • Added ability target flag constants:
      • ABILITY_TARGET_FLAG_NONE
      • ABILITY_TARGET_FLAG_RANGED_ONLY
      • ABILITY_TARGET_FLAG_MELEE_ONLY
      • ABILITY_TARGET_FLAG_DEAD
      • ABILITY_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES
      • ABILITY_TARGET_FLAG_NOT_MAGIC_IMMUNE_ALLIES
      • ABILITY_TARGET_FLAG_INVULNERABLE
      • ABILITY_TARGET_FLAG_FOW_VISIBLE
      • ABILITY_TARGET_FLAG_NO_INVIS
      • ABILITY_TARGET_FLAG_NOT_ANCIENTS
      • ABILITY_TARGET_FLAG_PLAYER_CONTROLLED
      • ABILITY_TARGET_FLAG_NOT_DOMINATED
      • ABILITY_TARGET_FLAG_NOT_SUMMONED
      • ABILITY_TARGET_FLAG_NOT_ILLUSIONS
      • ABILITY_TARGET_FLAG_NOT_ATTACK_IMMUNE
      • ABILITY_TARGET_FLAG_MANA_ONLY
      • ABILITY_TARGET_FLAG_CHECK_DISABLE_HELP
      • ABILITY_TARGET_FLAG_NOT_CREEP_HERO
      • ABILITY_TARGET_FLAG_OUT_OF_WORLD
      • ABILITY_TARGET_FLAG_NOT_NIGHTMARED
      • ABILITY_TARGET_FLAG_PREFER_ENEMIES

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Can courier buy items when at Secret shop yet?

  3. #3
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    No, though that's on my list for the next update.

  4. #4
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Does this "Fixed missing COURIER_ACTION_RETURN_STASH_ITEMS/COURIER_ACTION_TAKE_STASH_ITEMS constants" fix the off by 1 issue with some COURIER_ACTION like COURIER_ACTION_TAKE_AND_TRANSFER_ITEMS?

  5. #5
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Quote Originally Posted by ChrisC View Post
    Added GetShopLocation() global function to the bot script API..
    I assume it is "GetShopLocation( team, shop )" and HOME is base for the team... and SHOP_SIDE is safelane shop vs SHOP_SIDE2 is offlane respective to the team? Likewise for the SECRET...

  6. #6
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    I believe so yes, though I don't remember offhand which lanes SIDE and SIDE2 correspond to.

  7. #7
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Quote Originally Posted by ChrisC View Post
    Changed IsUsingAbility() unit bot script function to include actions that are queued due to the built-in bot execution delay, which allows you prevent trying to perform an action multiple times.
    THANK YOU FOR THIS! I don't have to implement a gazillion timers now.

  8. #8
    Added GetShrineCooldown() and IsShrineHealing() to the global bot script API.
    Thanks! Does GetShrineCooldown return the remaining time until you can use it again or returns 5 minutes (I haven't tested anything yet) ?

  9. #9
    Basic Member
    Join Date
    Jun 2013
    Posts
    274
    Ran a quick test on GetShopLocation().

    It takes the team number and the shop number. The Home shop location changes based on team, but the side and secret shops stay the same regardless of which team is input. i.e. SHOP_SIDE will represent the Radiant Safe Lane Side Shop regardless of which team number is input.
    Last edited by Cornbane; 01-27-2017 at 10:40 PM. Reason: spelling

  10. #10
    Basic Member
    Join Date
    Jun 2013
    Posts
    274
    Quote Originally Posted by nostrademous View Post
    THANK YOU FOR THIS! I don't have to implement a gazillion timers now.
    I'm already deleting all of mine. It's a great feeling to toss out some of the junk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •