I don't know what happened to all .lua files on this site but this script existed before and I can't find it anymore![]()
I don't know what happened to all .lua files on this site but this script existed before and I can't find it anymore![]()
not even view here either wtf no people in xenobot community anymore? i used this bot a year ago and it this forum was crowded xD
lua code:
--Config
local creatct = 2 -- Number of creatures to play alarm
local dist = 4 -- Distance to consider monsters
-- Don't touch this if you don't know what are you doing
while (true) do
local creature = Creature.GetByID(Self.TargetID())
local amount = 0
for _, c in Creature.iMonsters(dist) do
if c:isAlive() and c:isOnScreen() then
amount = amount +1
end
end
if creature:isValid() and creature:isAlive() and amount >= creatct then
alert()
end
end
Have fun =D
lua code:
--Config
local config = {
creatct = 2, -- Number of creatures to play alarm
dist = 4, -- Distance to consider monsters
monsters = {"Frost Dragon Hatchling", "Yeti", "Rotworm"} -- Name of monster to sound alarm
}
-- Don't touch this if you don't know what are you doing
while (true) do
local amount = 0
for _, c in Creature.iMonsters(config.dist) do
if c:isAlive() and c:isOnScreen() then
amount = amount +1
end
end
for name, creature in Creature.iMonsters() do
if (table.contains(config.monsters, name)) then
if creature:isValid() and creature:isAlive() and amount >= config.creatct and not Self.isInPz() then
alert()
end
end
end
end
lua code:local range = 7
local count = 3
Module.New("AlertMonster", function(module)
if (#Self.GetTargets(range) >= count) then
alert()
end
module:Delay(500, 1000)
end)