10-24-2023, 09:12 AM
local Monsters = { 'Ghoul' } -- Monsters
local MinMonsters = 2 -- Min. count.
if maround(1, unpack(Monsters)) >= MinMonsters then
setsettings('Targeting/Enabled', 'yes')
end
end
I'm getting an error with this script "20:08:56 - LUA Script -> Persistent01: 8: <eof> expected near 'end'"
I'm using cavebot to stop the bot at a certain point, turn off targeting with script, wait until 2 ghouls approach then turn targeting on. If I don't do this, char will run into a room with 6 ghouls and waste uhs.