PDA

View Full Version : Slime Trainer



cyziekk
08-22-2016, 05:52 AM
Im looking for help with slime trainer. I want to kill slime mother when character have 70 hp percent and go to label "wait" then wait one minute and go to label "back" and stop walker until character have 70 percent hp.
I'm using this script.

-- 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 = 10

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
if Self.Health() < 400 then
Walker.Start()

Please someone help me.

Dzonzi
08-23-2016, 05:14 AM
Man, take a new acc, buy 10 days pacc and make monk maker. You will be able to train 24/7. What do u think about this?

cyziekk
08-23-2016, 07:53 AM
Man, take a new acc, buy 10 days pacc and make monk maker. You will be able to train 24/7. What do u think about this?

Its good idea but not for me because im playing non-PVP :(