03-23-2024, 03:48 PM
tried searching for it but couldn't find it, looking for a script that'll use rune on attack in replace of spells like this script right here
local MIN_HEALTH = 80 -- Min. health pc to cast spells. Only cast spells if your characters hp% is higher than this value.
local Monsters = {
{ Name = 'Rotworm', HpMin = 50, HpMax = 100, Spell = 'exori vis' }, -- Monster name, Hp min and max to cast spell and which spell.
{ Name = 'Evil Rotworm', HpMin = 20, HpMax = 100, Spell = 'exori flam' }, -- On this case, it will only cast spells when orc has hp% between 20 and 100%.
}
local attacked_creature = attacked()
if attacked_creature.id > 0 and hppc() >= MIN_HEALTH and cancast() then
for _, monster in ipairs(Monsters) do
if monster.Name:lower() == attacked_creature.name:lower() and attacked_creature.hppc >= monster.HpMin and attacked_creature.hppc <= monster.HpMax then
cast(monster.Spell)
wait(1000, 1300)
break
end
end
end
but instead of exori vis or exori flam it uses runes instead
local MIN_HEALTH = 80 -- Min. health pc to cast spells. Only cast spells if your characters hp% is higher than this value.
local Monsters = {
{ Name = 'Rotworm', HpMin = 50, HpMax = 100, Spell = 'exori vis' }, -- Monster name, Hp min and max to cast spell and which spell.
{ Name = 'Evil Rotworm', HpMin = 20, HpMax = 100, Spell = 'exori flam' }, -- On this case, it will only cast spells when orc has hp% between 20 and 100%.
}
local attacked_creature = attacked()
if attacked_creature.id > 0 and hppc() >= MIN_HEALTH and cancast() then
for _, monster in ipairs(Monsters) do
if monster.Name:lower() == attacked_creature.name:lower() and attacked_creature.hppc >= monster.HpMin and attacked_creature.hppc <= monster.HpMax then
cast(monster.Spell)
wait(1000, 1300)
break
end
end
end
but instead of exori vis or exori flam it uses runes instead