03-19-2021, 03:40 PM
(This post was last modified: 03-19-2021, 03:42 PM by psyrocker666.)
local Monsters = { 'Dragon' }
local Rune_Monsters = 3198 -- Rune to shoot on listed monsters above.
local MinMonsters = 1 -- Min. count to shoot rune.
local SafeHealth = 60 -- Shoot runes only if your HP % is higher or equal to this valaue.
if connected() and maround(0, unpack(Monsters)) >= MinMonsters and hppc() >= SafeHealth and cancast() then
table.lower(Monsters)
local creatures = getcreatures('mpfs')
for _, creature in ipairs(creatures) do
if table.find(Monsters, creature.name:lower()) ~= nil then
useitemoncreature(Rune_Monsters, creature.id)
wait(1950, 2100)
break
end
end
endi use this to shoot hmm, but i want two changes:
first, to only shoot if my target hp is between "20 and 100%"
second, to add a new function "SafeSummonHealth", it would check if my demon skeleton have >30% hppc, and only if it does, shoot the hmm.
can you do this for me pls?

