Jump to content

OTClientBot v2.0.0 - beta 14b


Zelek

Recommended Posts

You can download it here: OTClientBot-v2.0.0-beta14b

Also please remember to install Visual C++ Redistributable for Visual Studio 2015 - 2019 x86 if you haven't already.

 

Known issues:

  1. Application can crash while "open next BP", "eat food from corpses" or "open BP at login" is enabled.  -- fixed in beta 14a
  2. Application can crash while executing lua script with directly accessed Creatures/Items/Containers/Tiles iterator (for example: "for _, creature in pairs(g_game.getCreatures()) do" would trigger lua's garbage collector and could lead to a crash) -- it is your responsibility to avoid this type of usage
  3. g_game.moveItem doesn't work on map items  -- fixed in beta 14a
  4. lua scripts are getting prepended with 'require "libs/main"'  -- fixed in beta 14a
  5. Local Player information could not be read correctly in some rare cases   -- fixed in beta 14a
  6. Application can crash while loading lua scripts from a save file  -- fixed in beta 14a
  7. Item healer doesn't work with items that can be used with a crosshair  -- fixed in beta 14b

 

Added in beta 14b:

  • getOption and setOption functions can now set/get persistent and cavebot specific script enabled value by name. Example below:
    • if getOption("Scripts/Persistent/Change GPs/Enabled") == "true" then
          setOption("Scripts/Persistent/Change GPs/Enabled", "false")
      else
          setOption("Scripts/Persistent/Change GPs/Enabled", "true")
      end

       

List of changes:

  • fixed a bug that sometimes prevented application from starting up correctly
  • fixed a bug that sometimes caused lua scripts to crash the application
  • fixed a bug that sometimes caused targeting to crash the application
  • added new lua functions:
    • g_game.buyItem(number itemId, number count, [bool ignoreCapacity = false], [bool buyWithBackpack = false])
    • g_game.sellItem(number itemId, number count, [bool ignoreEquipped = false])
  • added default libs that are automatically loaded with each script:
    • main.lua -- responsible for loading other default libs
    • table.lua -- contains various helper functions to work on tables
    • position.lua -- contains various helper functions to work on Position object
    • string.lua  -- contains various helper functions to work on strings
  • added ability to select specific floor to read tiles from (Info & options tab)
Link to comment
Share on other sites

  • Zelek changed the title to OTClientBot v2.0.0 - beta 14b
  • Zelek pinned this topic
  • Zelek unpinned this topic
×
×
  • Create New...