PDA

View Full Version : Trying something....



dravend
03-08-2014, 07:31 AM
I'm trying to add a strong strike "exori gran vis" to crystal spiders with my script, but do not know how.

Do i configure it in targeting and just add an additional crystal spider target, and use the same "very high" targeting sequence?

I just want it to use "exori gran vis" whenever it is on cooldown.

Help!

Thanks,

-Drav~

gabbe
03-08-2014, 11:44 AM
I think there is a script for that.
Did you try searching for "Multiple Strikes"?

xux
03-08-2014, 12:09 PM
local TargetSpells = {}

TargetSpells[1] = {SPELL = "Exori Max Vis", CREATURE = {"Crystal Spider"}, DISTANCE = 3, ENABLED = false}
TargetSpells[2] = {SPELL = "Exori Gran Vis", CREATURE = {"Crystal Spider"}, DISTANCE = 3, ENABLED = true}
TargetSpells[3] = {SPELL = "Exori Vis", CREATURE = {"Crystal Spider"}, DISTANCE = 3, ENABLED = true}

--_____________DON'T EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING_____________

Module.New('Spell Caster by PromB', function(module)
for _, V in ipairs(TargetSpells) do
local target = Creature.GetByID(Self.TargetID())
if (V.ENABLED) then
if (V.CREATURE and table.find(V.CREATURE, target:Name(), false)) and (target:isOnScreen() and target:isVisible() and target:isAlive()) then
if (target:DistanceFromSelf() <= V.DISTANCE) and Creature.New(V.CREATURE) then
if Self.CanCastSpell(V.SPELL) then
Self.Cast(V.SPELL)
end
end
end
end
end
end)

Elvang
03-08-2014, 12:16 PM
^ Why ice spells?

xux
03-08-2014, 12:21 PM
^ Why ice spells?

Because i copy pasted it from somewhere didnt checked the actual spells :P
Ill change that.