someone made this for psion bashing. it doesnt work very well. was wondering what i could do to make it better. im not good with coding at all.
keneanung.bashing.battlerage.psion = function(rage, battlerageSkills)
if keneanung.bashing.attacking == 0 then
return
end
local razed = false
if keneanung.bashing.shield then
if keneanung.bashing.configuration[class].autorageraze and keneanung.bashing.rageAvailable(1) then send(battlerageSkills[1].command:format(keneanung.bashing.targetList[keneanung.bashing.attacking].id), false)
keneanung.bashing.shield = false
local system = keneanung.bashing.systems[keneanung.bashing.configuration.system]
if system.brokeShield then
system.brokeShield()
end
razed = true
end
end
if not razed then
if keneanung.bashing.rageAvailable(2) then send(battlerageSkills[2].command:format(keneanung.bashing.targetList[keneanung.bashing.attacking].id), false)
elseif keneanung.bashing.rageAvailable(1) and ((not battlerageSkills[2].skillKnown) or rage >= (battlerageSkills[1].rage) ) then
send(battlerageSkills[1].command:format(keneanung.bashingtargetList[keneanung.bashing.attacking].id), false)
end
end
end
Comments
if gmcp.Char.Status.class ~= "Psion" then battlerageSkills = {} else battlerageSkills = {"Barbedblade", "Devastate", "Regrowth", "Pulverise", "Whirlwind", "Terror"} end
I haven't tested it, but that might make the script think that 'Pulverise' is your fourth ability instead of the third and thus use it correctly