XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to make XenoBot use 3 different spells on 1 monster?

  1. #1
    Hatix's Avatar
    Join Date
    Oct 2013
    Location
    England
    Posts
    39
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    How to make XenoBot use 3 different spells on 1 monster?

    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?

  2. #2
    King Furpan Furpan's Avatar
    Join Date
    Jul 2012
    Location
    Thais
    Posts
    984
    Mentioned
    267 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Hatix View Post
    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?
    http://forums.xenobot.net/showthread...l=1#post221664

  3. #3
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Set your priority in the targeting.
    Set 3 frost dragons
    Each one with one different spell and priorities in them.

  4. #4
    Hatix's Avatar
    Join Date
    Oct 2013
    Location
    England
    Posts
    39
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowseka View Post
    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.

  5. #5
    Hatix's Avatar
    Join Date
    Oct 2013
    Location
    England
    Posts
    39
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    There is nothing there related to this.

  6. #6
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Hatix View Post
    That's what I done, but it doesn't do all the spells.
    Are you sure? That works for me always

  7. #7
    shadowseka's Avatar
    Join Date
    May 2013
    Location
    mexico
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    By the priorities I mean very high, high, medium in spells

  8. #8
    Hatix's Avatar
    Join Date
    Oct 2013
    Location
    England
    Posts
    39
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowseka View Post
    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.

  9. #9
    Banned
    Join Date
    Sep 2013
    Location
    Poland
    Posts
    333
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Code:
    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

  10. #10
    dedi's Avatar
    Join Date
    Dec 2011
    Location
    Poznań, Poland
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://forums.xenobot.net/showthread...l=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"}
    Last edited by dedi; 10-10-2013 at 08:33 PM.
    • Sold 245 EK for Loloz (vent)
    • Sold 250 EK for Kajtek (vent)
    • Sold 250 EK for Poncek (vent)
    • Sold 245 ED (vent)
    • Sold 310 RP (vent)
    • Sold 265 EK for Loloz (vent)
    • Sold 232 EK to ppooll
    • Sold 165 ED to tonystrea
    • Sold 350 ED to Serek (allegro)
    • Sold 392 EK to Czoger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •