local healthToCast = 100
local player = g_game.getLocalPlayer()
if g_game.isAttacking() and player:getHealthPercent() <= healthToCast then
g_game.useInventoryItemOnCreature(3198, g_game.getAttackingCreature())
sleep(900, 1100)
end
auto(100)
(HMM) Rune ID: 3198
Change for whatever ID the rune you want.