Sharlies
09-07-2016, 01:14 PM
Yo, this might be a little advanced but i really need this and i cant write it on my own (found one but its buggy, retargeting 5 times/sec).
I need a script that checks my pos and monks around me. rename those monks to monk1 and monk2.
Switch target at 25% hp or always hit the one with most hp.
you guys think this is possible?
also, a skill timer would be awesome!
edit: adding my using monk script
edit2: the script need to attack summoned monks cause thats how im training
CONFIG = {
MOB = "Monk",
HPPC_STOP = 25
}
Module.New("S(Killing)", function()
for i = CREATURES_LOW, CREATURES_HIGH do
local c = Creature.GetFromIndex(i)
if (c:Name() == CONFIG.MOB and c:HealthPercent() > CONFIG.HPPC_STOP and c:isSummon()) then
c:Attack()
else
Self.StopAttack()
end
end
end)
I need a script that checks my pos and monks around me. rename those monks to monk1 and monk2.
Switch target at 25% hp or always hit the one with most hp.
you guys think this is possible?
also, a skill timer would be awesome!
edit: adding my using monk script
edit2: the script need to attack summoned monks cause thats how im training
CONFIG = {
MOB = "Monk",
HPPC_STOP = 25
}
Module.New("S(Killing)", function()
for i = CREATURES_LOW, CREATURES_HIGH do
local c = Creature.GetFromIndex(i)
if (c:Name() == CONFIG.MOB and c:HealthPercent() > CONFIG.HPPC_STOP and c:isSummon()) then
c:Attack()
else
Self.StopAttack()
end
end
end)