|
|
Source code |
1 2 |
{ name = "Fireball", use = (EnergyBar1 >= 330) or (pvp) },
{ name = "Rising Tide", use = (EnergyBar1 >= 318) or (pvp) },
|
Quoted from "Auros;589192"
Not an expert, but as far as I know, you cannot call a macro from within a macro
Quoted from "BloodyArrow;589187"
Hey,
I am wondering how I can use a macro into my DIYCE rotation. I am using the macro for thunderstorm.
And I would like to create a PvP rotation which contain 3 spells. Those are, first Thunderstorm (the macro) then Fireball and at last Rising Tide. But I dont know how to define the macro for Thunderstorm in DIYCE.
- B
|
|
Source code |
1 2 3 4 |
/script CastSpellByName("Thunderstorm")
/wait 0.15
/script CastSpellByName("Thunderstorm")
/script SpellTargetUnit()
|
Quoted from "arkanic;589211"
What would be the corresponding DIYCE skill lines for commands like: /use and /cast ?
Quoted from "BloodyArrow;589208"
The macro I use is:
![]()
Source code
1 2 3 4/script CastSpellByName("Thunderstorm") /wait 0.15 /script CastSpellByName("Thunderstorm") /script SpellTargetUnit()
And I must say that I dont know how to duplicate the work the macro is doing in DIYCE. So I would appreciate some help if thats possible.
Thanks in advance,
- B
.|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function StartWithThunderstorm()
[I]put vars you need here[/I]
Skill = {
{name = "Thunderstorm", use = [I]put whatever condition you need here as normal[/I]},
}
if MyCombat(Skill) then
UsedTStorm = true -- This variable MUST remain global
else
UsedTStorm = false
end
end
|
|
|
Source code |
1 2 3 4 |
/run if not UsedTStorm then StartWithThunderstorm() end
/run if not UsedTStorm then KillSequence() end
/wait 0.15
/run if UsedTStorm then CastSpellByName("Thunderstorm") SpellTargetUnit() UsedTStorm = false end
|
|
|
Source code |
1 2 3 4 |
function StartWithThunderstorm() [I]put vars you need here[/I]
Skill = { {name = "Thunderstorm", use = [I]put whatever condition you need here as normal[/I]}, }
if MyCombat(Skill) then UsedTStorm = true -- This variable MUST remain global
else UsedTStorm = false end end
|
Quoted from "BloodyArrow;589274"
Ok Peryl. First of all this is a huge step for me hehe. I'm not very good at programming. But if I start with the first function you posted.
![]()
Source code
1 2 3 4function StartWithThunderstorm() [I]put vars you need here[/I] Skill = { {name = "Thunderstorm", use = [I]put whatever condition you need here as normal[/I]}, } if MyCombat(Skill) then UsedTStorm = true -- This variable MUST remain global else UsedTStorm = false end end
The place where you said "put vars you need here". Is here the place where I write the required mana to cast it etc? If it is that, how to I write it there, is it between the parameters at StartWithTunderstorm("") or? And then we move to the skill row. You said put condition you need here, and my conditions are for farming and PvP. So that means it should look like: use = (EnergyBar1 >= 570) or (pvp) }, I guess. I just dont know and dont understand how to write the variables after the StartWithThunderstorm().
Thanks in advance,
- B
|
|
Source code |
1 |
/run if not UsedTStorm then StartWithThunderstorm() end |
|
|
Source code |
1 |
/run if not UsedTStorm then KillSequence() end |
|
|
Source code |
1 |
/run if UsedTStorm then CastSpellByName("Thunderstorm") SpellTargetUnit() UsedTStorm = false end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
function KillSequence(arg1, TS, healthpot, manapot, foodslot)
--then in skll list
if mainClass == "MAGE" and subClass == "WARRIOR" then
if (TS == "roguestalker") then
Skill = {
{ name = "Thunderstorm", use =true },
elseif enemy then
Skill = {
blah blah
|
Quoted from "BloodyArrow;589300"
Done all you said Peryl, it's working! But this is only the part for the Thunderstorm Macro I used to have right? The question now is how do I combine this with the other skills. Currently it is using Thunderstorm whole the time when I'm spamming the macro in game. My goal is like this, for example, use Thunderstorm to find/locate a player in PvP, after I used Thunderstorm use Fireball and if the target isnt dead it use Rising Tide. So the order will be Thunderstorm, Fireball, Rising Tide.
Thanks in advance,
- B
Quoted from "Peryl;589378"
It should call the remainder of the skill list (effectively the old KillSequence() function) if it didn't use Thunderstorm. Therefore, adjust the conditions under which Thunderstorm is to be used. Since it is for PvP, make sure there is an and pvp in the use clause so that it will only trigger in PvP to begin with. You'll also probably want other conditions so that it doesn't always select Thunderstorm.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function StartWithThunderstorm(arg1, goat2, healthpot, manapot, foodslot)
local Skill = {}
local Skill2 = {}
local i = 0
-- Player and target status.
local EnergyBar1 = UnitMana("player")
local pvp = (zoneid == 402 or zoneid == 442)
Skill = {
{name = "Thunderstorm", use = (EnergyBar1 >= 570) or (pvp) },
}
if MyCombat(Skill) then
UsedTStorm = true -- This variable MUST remain global
else
UsedTStorm = false
end
end
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
elseif ((enemy) and (goat2 == "2")) then
Skill2 = {
{ name = "Silence", use = silenceThis and EnergyBar1 >= 50 and (pvp or party) },
{ name = "Lightning", use = (EnergyBar1 >= 212) and (pvp) },
{ name = "Fireball", use = (EnergyBar1 >= 330) and (pvp) },
{ name = "Rising Tide", use = (EnergyBar1 >= 318) and (pvp) },
}
end
|
Quoted from "BloodyArrow;589622"
It uses Thunderstorm when I press the macro. And I set the conditions to and PvP. But for PvP, I want Thunderstorm to be used when press the macro and the AoE affects a player, I want the target/mob automaticlly targeted and when I press the macro again I want Fireball and Rising Tide to be used.
|
|
Source code |
1 |
{ name = "Thunderstorm", use = EnergyBar1 >= 570 and pvp and not LockedOn },
|
Quoted from "pazuzzu;589639"
to have TS in diyce like that, automated, u would need it to force u to stop moving...otherwise u get a little blip of TS and cancel it![]()
Quoted from "BloodyArrow;589738"
True that, did all that Peryl said in the code now. It casts the other KillSequence() when TS is used. But when I keep spamming the macro I am suddenly moving to the side. Could that be of the TargetNearestEnemy or?
-B
Quoted from "RoMage;589745"
There is something with TS that does that. I have TS macro, and every once in a while my character would move, even I did not click anywhere, just holding mouse over area I like to cast TS. It has to do with skill, not DIYCE.