03-23-2021, 05:44 AM
(This post was last modified: 03-23-2021, 11:03 AM by Singleminded.)
local SAFE_LOCATION = { X = XXX, Y = XXX, Z = X } -- Safe location to walk to. It must be in your screen!!
local FIELDS_IDS = { 2118, 2119, 2121, 2127, 2126, 2123, 2124, } -- Field ids. 2127-Poison Field, 2126-Energy Field, 2123-Fire Field(BigForm), 2124Fire Field(MediumForm)
local SafeList = { 'XXX', 'XXX', } -- Your safelist
local CheckPlayers = true -- Check for players? Not going to CAST SPELL if player on screen.
local CheckAllFloor = false -- Checks all floors for players?
local LOCATION = { X = XXX, Y = XXX, Z = XXX }
local soft = {id = 3549, use = 3246, worn = 5570}
local boots_location = 'red backpack'
local tile = gettile(LOCATION.X, LOCATION.Y, LOCATION.Z)
local foundFields = false
for _, item in ipairs(tile.items) do
if table.find(FIELDS_IDS, item.id) ~= nil then
foundFields = true
break
end
end
if burning() or energized() or paralyzed() or foundField then
else
if not islocationxyz(LOCATION.X, LOCATION.Y, LOCATION.Z) then
setsettings('Runemaker/Enabled', false)
wait()
setsettings('Cavebot/Enabled', true)
wait(10000)
moveitems(soft.use, boots_location, 'feet', 100)
wait()
if reachlocation(SAFE_LOCATION.X, SAFE_LOCATION.Y, SAFE_LOCATION.Z) then
wait(1000)
setsettings('Cavebot/Enabled', false)
wait()
if poisoned() then
wait(1000)
cast('exana pox')
wait(2000)
end
if CheckPlayers == yes or paroundignore(0, CheckAllFloor, unpack(SafeList)) == 0 then
wait(5000)
moveitems(soft.id, 'feet', boots_location, 100)
say('alana sio "' .. name() .. '"')
wait(1000, 1200)
setsettings('Runemaker/Enabled', true)
end
end
end
end
Hey, I am giving up on this. Nothing works like I want.
When I pause the bot and enable it again so runemaker gets disabled by no reason even if he is on LOCATION.
Fields? No problem for character. If ID 2124 is on LOCATION he says anyway alana sio.
Safezone? Jesus christ, he is by no fkn reason just standing at the door sqm and character doesnt do anything, he doesnt even go to safelocation or to waypoint with safelocation
I really beg You men, and please before
moveitems(soft.id, 'feet', boots_location, 100)
I want that work like this
if connected > if not at location else if burning etc else if monsters at screen > runemaker disable > going to safelocation > if not in safelocation > go to safelocation again > if on safelocation then > soft boots to backpack > if poisoned cast exana pox > check if field ids on screen > if yes wait > if no fields then check if players on screen > if yes wait > if only playersafelist on screen or nobody then > check if hp% is lower than 80 then > if yes xlog > if not > check if monsters on screen > if yes xlog > if monstersafelist or no monsters att all at screen > put soft boots on feet > say alana sio > runemaker enable