Vithrax / vBot

main repository of bot profile for OTClientV8, vBot
29 stars 31 forks source link

Goes to next waypoint if monster takes too long to kill.. #19

Open divinity76 opened 1 week ago

divinity76 commented 1 week ago

I'm cavebotting some high-HP monsters that takes ~5 minutes to kill each, and sometimes the bot will go to the next waypoint before the current monster is dead! if it's been fighting the same monster for 3 minutes or so. Sometimes luring itself to death.. Any idea what's going on?

It's almost as if there is some logic in the bot to deal with Cipsoft's old antibot creatures ? or maybe just a bug where the bot temporarily think the CaveBot.Danger = 0 ? idk

vBot version: 4.8

Cave config:

goto:1144,1316,7
delay:1000
goto:1141,1321,7
delay:1000
goto:1137,1324,7
delay:1000
goto:1132,1326,7
delay:1000
goto:1129,1324,7
delay:1000
label:GoBack
goto:1136,1322,7
delay:1000
goto:1144,1315,7
delay:1000

config:{"useDelay":400,"mapClickDelay":100,"walkDelay":10,"ping":100,"ignoreFields":true,"skipBlocked":false,"mapClick":true}
extensions:[[
[

]
]]

Target config:

{
  "looting": {
    "items": [
      {
        "count": 1,
        "id": 3567
      }
    ],
    "maxDanger": 10,
    "minCapacity": 100,
    "containers": [
      {
        "count": 1,
        "id": 2872
      },
      {
        "count": 1,
        "id": 3244
      }
    ],
    "everyItem": true
  },
  "targeting": [
    {
      "lureDelay": 250,
      "lureMin": 1,
      "maxDistance": 10,
      "anchorRange": 3,
      "lureCount": 1,
      "avoidAttacks": false,
      "rePositionAmount": 5,
      "lureMax": 3,
      "regex": "^gambon boss$",
      "chase": false,
      "priority": 1,
      "keepDistance": false,
      "closeLure": false,
      "danger": 1,
      "keepDistanceRange": 1,
      "lure": false,
      "dynamicLureDelay": false,
      "dynamicLure": false,
      "faceMonster": false,
      "lureCavebot": false,
      "dontLoot": false,
      "diamondArrows": false,
      "delayFrom": 2,
      "anchor": false,
      "closeLureAmount": 3,
      "rePosition": false,
      "name": "Gambon Boss",
      "rpSafe": false
    }
  ]
}
divinity76 commented 1 week ago

As a fugly workaround, rather than a fix, copypasting the function

if TargetBot.Danger() > 0 then
  delay(100)
  return "retry"
end
return true

after every move seems to fix it.. image