Hello.
This code only detect minotaurs on the same floor than your character. The script works perfectly fine.
Notice that Minotaur is the MINOTAUR, not minotaur guard, minotaur mage, etc.
If it's not walking, it's probably a problem on your cavebot waypoints. Notice that if you create a waypoint that walks on a different floor like Z = 6 and you are on Z = 8 then Cavebot will not walk for obvious reasons.
local LABEL_NAME = 'x'
if maround(0, 'Minotaur') >= 3 and waypoint().name:lower() ~= LABEL_NAME:lower() then
gotolabel(LABEL_NAME)
end
Be aware that if Cavebot steps to another waypoint (backwards or forwards) and there stills 3 minotaurs on your screen, this script will keep going to label "x". But you can manage that by checking current waypoint IDs before.
waypoint() [table]
.id [number]: ID number of waypoint.
.name [string]: Wapoint label/name.
.type [string]: Waypoint type (drop, action, node, stand, etc.).
.x [number]: Waypoint X position.
.y [number]: Waypoint Y position.
.z [number]: Waypoint Z position.
|Only Registered members can see download links. | Click here to buy subscription or here to register.