PDA

View Full Version : How to make XenoBot use 3 different spells on 1 monster?



Hatix
10-10-2013, 06:48 PM
Right, I'd like my Character to use the spells (in order) on a Frost Dragon:
1st Spell: exori max vis
2nd Spell: exori gran vis
3rd Spell: exori mort

I tried to do it by changing the proximity but it would just do exori max vis, sometime exori gran vis but never exori mort.

Help?:confused:

Furpan
10-10-2013, 06:51 PM
Right, I'd like my Character to use the spells (in order) on a Frost Dragon:
1st Spell: exori max vis
2nd Spell: exori gran vis
3rd Spell: exori mort

I tried to do it by changing the proximity but it would just do exori max vis, sometime exori gran vis but never exori mort.

Help?:confused:

http://forums.xenobot.net/showthread.php?17548-.-Chuitox-Scripts-.&p=221664&viewfull=1#post221664

shadowseka
10-10-2013, 06:55 PM
Set your priority in the targeting.
Set 3 frost dragons
Each one with one different spell and priorities in them.

Hatix
10-10-2013, 07:00 PM
Set your priority in the targeting.
Set 3 frost dragons
Each one with one different spell and priorities in them.

That's what I done, but it doesn't do all the spells.

Hatix
10-10-2013, 07:02 PM
http://forums.xenobot.net/showthread.php?17548-.-Chuitox-Scripts-.&p=221664&viewfull=1#post221664
There is nothing there related to this.

shadowseka
10-10-2013, 07:21 PM
That's what I done, but it doesn't do all the spells.
Are you sure? That works for me always

shadowseka
10-10-2013, 07:25 PM
By the priorities I mean very high, high, medium in spells

Hatix
10-10-2013, 07:51 PM
By the priorities I mean very high, high, medium in spells
How would I do it?
Like:

Exori max vis (Very high?)
Exori gran vis (high?)
Exori vis (medium?)

So that Exori gran vis is being used with max vis cools down, and exori vis whilst exori gran vis cools down.

hugo999
10-10-2013, 08:23 PM
local config = {
['Frost Dragon'] = {strikes = {"exori max vis", "exori gran vis", "exori vis"}, hppc = {10, 2}, dist = 3}
}

while (true) do
local targ = Creature.GetByID(Self.TargetID())
for name, var in pairs(config) do
if targ:Name() == name and targ:isAlive() and targ:DistanceFromSelf() <= var.dist then
for i=1, #var.strikes do
if (Self.CanCastSpell(var.strikes[i]) and targ:HealthPercent() >= var.hppc[1]) then
Self.Say(var.strikes[i])
elseif (targ:HealthPercent() >= var.hppc[2] and targ:HealthPercent() <= var.hppc[1] and Self.CanCastSpell(var.strikes[#var.strikes])) then
Self.Say(var.strikes[#var.strikes])
end
end
end
end
end

dedi
10-10-2013, 08:30 PM
http://forums.xenobot.net/showthread.php?17026-Delay-in-Targeting&p=215214&viewfull=1#post215214
Spells[1] = { Words = "exori gran vis", Mana = 60, Range = 3, Creatures = {"Grim Reaper"} }
Spells[2] = { Words = "exori max vis", Mana = 100, Range = 3, Creatures = {"Grim Reaper"} }
Spells[3] = { Words = "exori vis", Mana = 20, Range = 3, Creatures = {"Grim Reaper"} }


I'm not sure how much mana takes those spells. You can also put few monsters in table like {"Grim Reaper", "Medusa", "Serpent Spawn"}

xelitex117
10-10-2013, 10:05 PM
On xeno adding more than 1 time each monster sometimes works (try puttin Capital Letter or removing them i.e.:
Hero
hero
or
hero
hero
or
hero
Hero)

But the best option is a lua targeting

RoxZin xD
10-10-2013, 11:11 PM
The best option would be DarkstaR making it in-built, lol.

Furpan
10-11-2013, 02:11 AM
There is nothing there related to this.

Hi, just wanted to post this:
http://i.imgur.com/sI3NNJ5.png