Hello all!
So, after loong time trying to figure this out, I just can't. That's why I come here to ask for the community's wisdom! Ok, I'm trying to revive some old LUA scripts for automated rotations to use in a private server, there was an addon that had a couple rotations but it was "Legal" to the point that even if all the code to make it automated is there, it is restricted because it only enables a "print" function which shows what spell to use in the raid frames. It has to be coded to use with a LUA unlocker in order to be automated, but I've tried and dunno how.
Thing looks like this:
Code:
function VAS_Cast(t,u)
if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
if u == nil or u == "target" then u = "player" end
print("\124cFFFF55FFCast queue: "..GetSpellInfo(t).." at "..UnitName(u))
end
if PQI_VachiusaGeneral_RotationEngine_value == 4 then
if u == nil or u == "target" then u = "player" end
raidfu = u
vicon = select(3,GetSpellInfo(t))
CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
return true
--Blizzard Frame
elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
if u == nil or u == "target" then u = "player" end
raidfu = u
vicon = select(3,GetSpellInfo(t))
HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
return true
--Healbot
elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
if u == nil or u == "target" then u = "player" end
raidfu = u
vicon = select(3,GetSpellInfo(t))
ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
--ElvUI
end
So, to my understanding, what this does:
Code:
if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
if u == nil or u == "target" then u = "player" end
print("\124cFFFF55FFCast queue: "..GetSpellInfo(t).." at "..UnitName(u))
end
Is exactly calling the spellinfo and putting it into the raid frame, that way, it shows me what to use, to what target frame. (btw the rest, healbot, blizzard frames, ElvUI its just the same spellicon printing but in those frames). As I said before, I'm trying to find a way that instead of printing and getting the spellinfo it casts the spell, so I can automate the rotation and it will do it by its own.
Any suggestions?
Thanks!