Hi!
Is there any way to make this script use the item/rune on the targetted monster instead of random one
Is there any way to make this script use the item/rune on the targetted monster instead of random one
local Monsters = { 'Rotworm', 'Another monster', 'Demon', 'Creature name', 'Goblin' }
local Rune_Monsters = 5107 -- Rune to shoot on listed monsters above.
if connected() and cancast() and mppc() >= 50 then
table.lower(Monsters)
local creatures = getcreatures('mfs')
for _, creature in ipairs(creatures) do
if table.find(Monsters, creature.name:lower()) ~= nil then
useitemoncreature(Rune_Monsters, creature.id)
wait(1000, 1200)
break
end
end
end