Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
Kod :
--[[Mages Multiple Strike Spells]]--
local targets = {"Worker Golem"}
-- Just change below to suit your needs.
local spells = {}
spells[1] = { spell = "exori gran vis" } --Max spell
spells[2] = { spell = "exori amp vis" } --Gran spell
spells[3] = { spell = "exori vis" } --Nooby spell (This will be the only spell cast after Target <= 35% HP)
spells[4] = { spell = "exori vis hur" } --działa albo i nie :D
Module.New("Multiple Strike Spells", function(module)
for _, data in ipairs(spells) do
local c = Creature.GetByID(Self.TargetID())
if table.contains(targets, c:Name()) then
if c:DistanceFromSelf() <= 3 then
if Self.TargetID() ~= 0 then
if c:HealthPercent() >= 35 then
for x=1, #spells do
if Self.CanCastSpell(data.spell) then
Self.Say(data.spell)
wait(500, 1500)
end
end
elseif c:HealthPercent() <= 35 then
if Self.CanCastSpell(data.spell[3]) then
Self.Say(data.spell[3])
wait(500, 1500)
end
end
end
end
end
end
module:Delay(1000)
end)
Kod :
--[[Mages Multiple Strike Spells]]--
local targets = {"Worker Golem"}
-- Just change below to suit your needs.
local spells = {}
spells[1] = { spell = "exori gran vis" } --Max spell
spells[2] = { spell = "exori amp vis" } --Gran spell
spells[3] = { spell = "exori vis hur" } --Nooby spell (This will be the only spell cast after Target <= 35% HP)
Module.New("Multiple Strike Spells", function(module)
for _, data in ipairs(spells) do
local c = Creature.GetByID(Self.TargetID())
if table.contains(targets, c:Name()) then
if c:DistanceFromSelf() <= 3 then
if Self.TargetID() ~= 0 then
if c:HealthPercent() >= 35 then
for x=1, #spells do
if Self.CanCastSpell(data.spell) then
Self.Say(data.spell)
wait(500, 1500)
end
end
elseif c:HealthPercent() <= 35 then
if Self.CanCastSpell(data.spell[3]) then
Self.Say(data.spell[3])
wait(500, 1500)
end
end
end
end
end
end
module:Delay(1000)
end)
Zakładki