Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If can't goto next waypoint
#1
similar to my last request


if statusmessage() == 'There is no way.' then
    setsettings('Cavebot/Enabled', false)
    playsound('default')
end



wondering if you could make one where if you can't goto the next way point because before "gm" would throw parcels or something in the way but they got around that so bot would go from 1 way point to another back and forth so i request one where if you can't goto next way point on the list no matter what disable bot play sound please and thank you
Reply

#2
I'm not sure if that's what you are looking for, but try this code
if attacked().id == 0 and getsettings('Cavebot/Enabled') == true then
    local flag = false
    if statusmessage() == 'There is no way.' then
        flag = true
    end
    if not flag then
        local wpt = waypoint()
        if wpt.id ~= nil and wpt.id >= 10 then
            flag = tilereachable(wpt.posx, wpt.posy, wpt.posz)
        end
    end

    if flag then
        setsettings('Cavebot/Enabled', false)
        playsound('default')
    end
end
Reply

#3
ok sooo say you have 4 way points A,B,C,D you go from ABCD in that order but if the way is blocked going from B-C it will just go to way point A then to B then back to A because it can't get to waypoint C-D the script request was if it can't get to the next way point on the list it would just stop cave bot and make alarm sound.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016