Quote Originally Posted by Washand View Post
Code:
-- ╔═╗┬  ┬┌┬┐┌─┐  ╔╦╗┬─┐┌─┐┬┌┐┌┌─┐┬─┐
-- ╚═╗│  ││││├┤    ║ ├┬┘├─┤││││├┤ ├┬┘
-- ╚═╝┴─┘┴┴ ┴└─┘   ╩ ┴└─┴ ┴┴┘└┘└─┘┴└─
-- ╔╗ ┬ ┬  ╔═╗┌─┐┬ ┬┬  ┬ ┬┌─┐┬─┐┌─┐  
-- ╠╩╗└┬┘  ╠╣ │ ││ ││  │││├┤ ├┬┘├─┘  
-- ╚═╝ ┴   ╚  └─┘└─┘┴─┘└┴┘└─┘┴└─┴  
  
-- Attacks Mother Slime till under a certain HP, then continues to attack summoned ones
-- Set MotherHP to the health percent you want to stop attacking the Mother Slime
  
MotherHP = 50
  
Module.New("Slime Trainer", function(Module)
    if Self.TargetID() == 0 then
        local Slimes = Self.GetTargets(1)
        for i = 1, #Slimes do
            if Slimes[i]:Name() == 'Slime' then
                if (Slimes[i]:isMother() and Slimes[i]:HealthPercent() > MotherHP) or not Slimes[i]:isMother() then
                    Slimes[i]:Attack()
                    break
                end
            end
        end
    end
    local Slime = Creature.New(Self.TargetID())
    if Slime:isMother() and Slime:HealthPercent() <= MotherHP then
        Self.StopAttack()
    end
    Module:Delay(2000)
end)
Try this, i use this yesterday and work 100% for me


yeah i tried this one but it eventually killed the mother slime for some reason