Log in

View Full Version : Delay in Targeting



chch
08-31-2013, 04:39 PM
Hello! I have a problem on my paladin, if I use exoricon/san etc in targeting while running from monsters it will often shoot the spell while I'm running and reset the normal attack making me lose large amounts of damage. I've had to turn off using spells completely since I gain a lot higher exp/h without it due to missing so many normal attacks.

What I want to suggest is to add a delay option (write time you want to wait in MS extra from the normal shooter) or some kind of checker to see if you've fired a normal attack before using spell (that might be hard to do though, I have no idea).

Bafucin
08-31-2013, 04:50 PM
Usually it works good as it is, probably just the laggs who is messing it up

Bay butcher
08-31-2013, 04:52 PM
Grab a .lua for exori san, make bigger intervals between shooting spells, or count ammo after and before shot.
Personally, I use the lazy version with intervals, pretty satisfying with the amount of work needed(turning 1000 into 1200-1300) :D

dedi
08-31-2013, 05:16 PM
Try to use this:


local Spells = {}
Spells[1] = { Words = "exori san", Mana = 20, Range = 4, Creatures = {"Grim Reaper"} }
Spells[2] = { Words = "exori con", Mana = 20, Range = 4, Creatures = {"Grim Reaper"} }

Module.New('SpellCaster', function()
for _, SPELL in ipairs(Spells) do
if ( Self.CanCastSpell(SPELL.Words) ) then
local TARGET = Creature.New(Self.TargetID())
if ( TARGET:DistanceFromSelf() <= SPELL.Range and (table.find(SPELL.Creatures, TARGET:Name(), false) or not SPELL.Creatures) ) then
wait(100)
Self.Cast(SPELL.Words, SPELL.Mana)
break
end
end
end
end)


If you still will have same problem try to increase wait time to 200-300 (but not more)

chch
08-31-2013, 11:22 PM
Thanks for the help! Will try scripts tomorrow.

chch
09-01-2013, 06:01 PM
Tried it, works perfectly! Set it to 150ms, it has only missed about one normal attack in 30+ monsters compared to the normal targeting shooter which missed like 50% of the attacks ^^

Thanks for the help!

dedi
09-02-2013, 11:13 AM
Nice to hear :)