Jump to content

Zelek

Administrators
  • Posts

    669
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Zelek

  1. You can download it here: OTClientBot-v2.0.0-beta11a Also please remember to install Visual C++ Redistributable for Visual Studio 2015 - 2019 x86 if you haven't already. List of changes: major performance improvements to the cavebot system targeting a new creature will not cause a "stutter" effect while walking if cavebot is disabled improvements to the "Reach" and "Keep Away" systems in targeting improvements to the cavebot pathfinding fixed client crashing/not responding with large amount of players on the screen added "Walk with Arrow Keys" and "Walk Delay" to the cavebot settings -- please adjust the walk delay to meet your character's movement speed and server ping for smoother experience adjusted cavebot waypoints changing logic - it shouldn't get stuck while changing floors any more added missing functions that already existed internally to the lua interface: g_game.forceLogout() -- exits to the character list immediately fixed "Open Next BP" not working correctly at some servers List of changes for beta11a: added support for some servers minor fixes for "Keep Away" and "Reach" systems in targeting
  2. Zelek

    Request Script

    It's included in the bot by default.
  3. You would be surprised how many people actually buy the trial. People abused the free trial while it was available and forced me to change it to the paid one.
  4. you are supposed to use directx client anyway
  5. Zelek

    Itens ID

    It shows in the same spot as "You are exhausted.", "There is no way." etc messages after looking at the item.
  6. Zelek

    Request Script

    local monstersToStop = 3 local monstersToResume = 0 local disableTargeting = false -- set to true to disable targeting between the lures and false otherwise if luring == nil then luring = true end if luring and #g_game.getMonstersAround(6) >= monstersToStop then setOption("Cavebot/Enabled", "false") setOption("Targeting/Enabled", "true") luring = false elseif not luring and #g_game.getMonstersAround(6) == monstersToResume and #g_game.getMonstersAround(6) < monstersToStop then luring = true setOption("Cavebot/Enabled", "true") if disableTargeting then setOption("Targeting/Enabled", "false") end end auto(100)
  7. Zelek

    Request Script

    auto(500) local idleTimeThreshold = 30000 -- time in milliseconds to consider character being stuck if not g_game.isAttacking() and g_game.getIdleTime() >= idleTimeThreshold then nextWpt() sleep(1000) end
  8. You can download it here: OTClientBot-v2.0.0-beta10 Also please remember to install Visual C++ Redistributable for Visual Studio 2015 - 2019 x86 if you haven't already. List of changes: major stability improvements (fixed a lot of bugs that caused the bot to close itself) changed g_game.idleTime variable to a g_game.getIdleTime() function added new lua functions: nextWpt() -- goes to the next waypoint in the list prevWpt() -- goes to the previous waypoint in the list updated ChangeGP.lua and StackItems.lua scripts that are distributed in the installer by default
  9. I’m aware of it, it will be fixed after I test few more things.
  10. Zelek

    Request Script

    I've already stated multiple times that anything about reading the map (items on the ground/effects/whatever) is not possible right now. It will be added after we are past the beta.
  11. You can download it here: OTClientBot-v2.0.0-beta9 Also please remember to install Visual C++ Redistributable for Visual Studio 2015 x86 if you haven't already. List of changes: Fixed "Character Stuck" alert not working. Added new lua variable: g_game.idleTime - returns how long the character is standing at the same position in milliseconds Fixed bot crash bug that could occur while reading containers and items.
  12. what server are you playing at? Currently there is no way to skip the waypoints, I’ll add lua functions to make it possible in the future. Also you should place your waypoints relatively close to each other, otherwise you can end up with a monster blocking the path/exact sqm you are trying to reach and it will stuck.
  13. You are most likely placing waypoints incorrectly. Make sure they are relatively close to each other and use Nodes with higher range as often as possible. Also i’m moving this topic to the Questions.
  14. Zelek

    Request Script

    if g_game.isOnScreen("Wolf") then playSound("alarm.wav") sleep(2000) end auto(100) I'll take a look at it
  15. I have no idea how the "zanzoken" is performed at the server you are playing, so I've assumed it's just a "Use" at specific tile. Add "Action" waypoint and use the following script to use the top item of a given position: local usePosition = {x = 123, y = 346, z = 7} repeat g_game.useMapItem(usePosition) sleep(1000) until g_game.getLocalPlayer():getPosition() == usePosition
  16. You can download it here: OTClientBot-v2.0.0-beta8 Also please remember to install Visual C++ Redistributable for Visual Studio 2015 x86 if you haven't already. List of changes: fixed an issue with "setOption" function while using it within logical statements fixed another issue with iterating over tables with custom classes in lua scripts potentially expanded support for more clients (if bot didn't work at some server before, you might want to check it out again)
  17. Zelek

    Request Script

    auto(100) if not g_game.isOnline() then return end local messagesToDetect = {"[English]", "msgheck", "bot"} -- which words should it look for? local respondToMessage = false -- should it respond if trigger word is found? local messageToRespond = "im here" -- what should it respond? local pauseBot = false -- should it pause the bot? local playAlarm = true -- should it play alarm? connect("g_game", "onTalkMessage", checkBotMessage) function checkBotMessage(name, level, mode, message, channelId, creaturePos) for _, messageToDetect in pairs(messagesToDetect) do if string.find(message, messageToDetect, 1, true) then if respondToMessage then g_game.talk(messageToRespond) end if pauseBot then setOption("Global/BotPaused", "true") end if playAlarm then for i = 1, 5 do playSound("alarm.wav") sleep(1000) end end return end end end This version is working starting from beta 15
  18. Zelek

    Request Script

    if not g_game.isOnline() then return end local itemToUse = 3199 local items = {3411, 3043, 3412} for v, item in pairs(g_game.getLocalPlayer():getItems()) do for j, l in pairs(items) do if item:getId() == l then g_game.useItemOnPosition(itemToUse, item:getPosition()) sleep(1000) end end end auto(500)
  19. Zelek

    Request Script

    I've checked, it's an issue with a bot. A quick workaround until I fix it: g_game.useItem(g_game.getLocalPlayer():getInventoryItem(slot+2))
  20. Discord server has been created and I will do my best to also be active there. Invitation link: https://discord.gg/QU7tEdk
×
×
  • Create New...