PDA

View Full Version : Combo sequence script



tjucken
02-05-2016, 01:57 PM
Hello Xenobot!

I would like to make a script that casts an entire sequence combo.

I would like the script to do the following:

A keyword to start the combo.

Cast 1st spell
Wait 200
Cast SD
Wait 800

Cast 2nd spell
Wait 200
Cast SD
Wait 800

Cast 3rd spell
Wait 200
Cast SD
Wait 800

Cast 4th spell
Wait 200
Cast SD


How would i go about doing this?

tjucken
02-06-2016, 01:33 AM
bump!

kamilqq
02-06-2016, 01:35 AM
Hello Xenobot!

I would like to make a script that casts an entire sequence combo.

I would like the script to do the following:

A keyword to start the combo.

Cast 1st spell
Wait 200
Cast SD
Wait 800

Cast 2nd spell
Wait 200
Cast SD
Wait 800

Cast 3rd spell
Wait 200
Cast SD
Wait 800

Cast 4th spell
Wait 200
Cast SD


How would i go about doing this?

First make channel.
Then make function that will listen to your keyword.
Then just make something like :
if Self.CanCastSpell('exori max frigo') then
Self.Cast('exori max frigo')
wait(200) - 200ms is not enough but thats your needs.
Self.UseItemWithTarget(suddendeathid)
wait(800)

and the next sequence.
Im not writing a code for you, cause u said that You would like to make a script, and asked how would you go about doin this.
If you got more questions, feel free to ask.
I wont write whole code for you, if you'd like to ask.

tjucken
02-06-2016, 01:40 AM
First make channel.
Then make function that will listen to your keyword.
Then just make something like :
if Self.CanCastSpell('exori max frigo') then
Self.Cast('exori max frigo')
wait(200) - 200ms is not enough but thats your needs.
Self.UseItemWithTarget(suddendeathid)
wait(800)

and the next sequence.
Im not writing a code for you, cause u said that You would like to make a script, and asked how would you go about doin this.
If you got more questions, feel free to ask.
I wont write whole code for you, if you'd like to ask.

Thank you, why wont the 200 ms be enough wait tho? or should i change both to 500 instead?
No i wanna make it myself but im kinda newbie at it :D

kamilqq
02-06-2016, 02:19 PM
Thank you, why wont the 200 ms be enough wait tho? or should i change both to 500 instead?
No i wanna make it myself but im kinda newbie at it :D

offensive exhaust is like 2sec or something like that, wait and delay are in miliseconds, one second is 1000 miliseconds.
So you should like 2000. Not sure about that exhaust, cause ive never had to use that.

tjucken
02-06-2016, 04:20 PM
I made this, but doesnt work properly :p

local words1 = "Utori Bomb Vis"
local words2 = "Utori Bomb Flam"
local words3 = "Exevo Flam Drag"
local words4 = "Exori Pyro"
local runeid = 3154
local dist = 7
local spell = "Exori Pyro"
local mana = 70

Self.ManaPercent = function ()
return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
end

Module.New('comboBreaker', function(mod)
local creature = Creature.GetByID(Self.TargetID())
if creature:isValid() and creature:isAlive() and (Self.ManaPercent() > mana) and creature:DistanceFromSelf() <= dist and creature:isTarget() then
if Self.GetSpellCooldown(words1) == 0 then
Self.Cast(words1, mana)
Self.UseItemWithTarget(runeid)
wait(1000)
if Self.GetSpellCooldown(words2) == 0 then
Self.Cast(words2, mana)
Self.UseItemWithTarget(runeid)
wait(1000)
if Self.GetSpellCooldown(words3) == 0 then
Self.Cast(words3, mana)
Self.UseItemWithTarget(runeid)
wait(1000)
if Self.GetSpellCooldown(words4) == 0 then
Self.Cast(words4, mana)
Self.UseItemWithTarget(runeid)
end
end
end
end
end
end)

tjucken
02-07-2016, 01:52 PM
Anyone here who can help me? really need this script, also i want it to be executed when i use a certain word like "combobreaker"