Post Reply Home » Forums » MMO Forums » Age of Conan » Age of Conan Guides, Bots & Tools

LUA-script for combo iteration for G15 users : Age of Conan Guides, Bots & Tools

Posted: December 10th, 2009
Total Posts:1 Joined:2009
var=1
var1=1
var2=1
var3=1
var4=1
var5=1
--name of the variables, can be anything really I named them varX for simplicity
varIterateLastRun = 0

function OnEvent(event, arg)
--Reset var if function was called over 6 seconds ago otherwise it will continue the combo from where it last was even though the combo wasnt finnished
if (varIterateLastRun + (6 * 1000)) < GetRunningTime() then
var = 1
var1 = 1
var2 = 1
var3 = 1
var4 = 1
var5 = 1
end

varIterateLastRun = GetRunningTime()

if (event=="G_PRESSED" and arg==1) then Iterate4() --Trigger macro iterator with G1...
end
if (event=="G_PRESSED" and arg==2) then Iterate5() --Trigger macro iterator with G2...
end
if (event=="G_PRESSED" and arg==3) then Iterate6() --Trigger macro iterator with G3...
end
if (event=="G_PRESSED" and arg==4) then Iterate() --Trigger macro iterator with G4...
end
if (event=="G_PRESSED" and arg==5) then Iterate2() --Trigger macro iterator with G5...
end
if (event=="G_PRESSED" and arg==6) then Iterate3() --Trigger macro iterator with G6...
end
end

function Iterate()
if var==1 then
PlayMacro("Hellstrikes") --Replace Hellstrikes with name of desired macro...
end
if var==2 then
PlayMacro("Attack Down Right") --And so on...
end
if var==3 then
PlayMacro("Attack Down Left")
end
if var==4 then
PlayMacro("Attack Front")
end

var=(var+1) --Increment variable.
if var==5 then var=1; end --After four, go back to one.
end

function Iterate2()
if var1==1 then
PlayMacro("Molten Steel Slash") --Replace Molten Steel Slash with name of desired macro...
end
if var1==2 then
PlayMacro("Attack Left") --And so on...
end
if var1==3 then
PlayMacro("Attack Front")
end

var1=(var1+1) --Increment variable.
if var1==4 then var1=1; end --After four, go back to one.
end

function Iterate3()
if var2==1 then
PlayMacro("Burn To Death") --Replace Burn To Death with name of desired macro...
end
if var2==2 then
PlayMacro("Attack Front") --And so on...
end
if var2==3 then
PlayMacro("Attack Right")
end
if var2==4 then
PlayMacro("Attack Left")
end

var2=(var2+1) --Increment variable.
if var2==5 then var2=1; end --After five, go back to one.
end

function Iterate4()
if var3==1 then
PlayMacro("Pillar Of Infernal Flame") --Replace Pillar Of Intfernal Flame with name of desired macro...
end
if var3==2 then
PlayMacro("Attack Down Left") --And so on...
end
if var3==3 then
PlayMacro("Attack Front")
end

var3=(var3+1) --Increment variable.
if var3==4 then var3=1; end --After four, go back to one.
end


function Iterate5()
if var4==1 then
PlayMacro("I Eat Your Heart") --Replace I Eat Your Heart with name of desired macro...
end
if var4==2 then
PlayMacro("Attack Front") --And so on...
end

var4=(var3+1) --Increment variable.
if var4==4 then var3=1; end --After four, go back to one.
end


function Iterate6()
if var5==1 then
PlayMacro("Fire Lance") --Replace Fire Lance with name of desired macro...
end
if var5==2 then
PlayMacro("Attack Left") --And so on...
end
if var5==3 then
PlayMacro("Attack Front")
end

var5=(var5+1) --Increment variable.
if var5==4 then var53=1; end --After four, go back to one.
end
Posted: December 13th, 2009
User avatar
administrator
Total Posts:29891 Joined:2002
Can members say yay or nay to this so we may give tu bucks and/or premium. If you nay the submission remember to include as to why.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 7 guests
Post Reply