Soandso2
Well-known member
- Joined
- Mar 13, 2023
- RedCents
- 937¢
Yet another brainfart that I cannot figure out. I cant see what is wrong. It is straight forward as nothing else, but still it elludes me. Perhaps it is too early in the morning, i dont know. Any insights?
I get an error whenever this kicks in. Compare to/with nil on line 23.
[CODE lang="Lua" highlight="23"]mq = require('mq')
require("utils")
local repDeath = spell("Defy Death").RankName()
local defensive = spell("Earthforce Discipline").RankName()
while true do
if me.PctHPs() < 30 then
if utils.goodToGo() and me.AltAbilityReady("Armor of Experience")() then
mq.cmd("/alt act 2000")
printf("[%s] \atRapids:: Armor of Experience",os.date('%H:%M:%S'))
end
if utils.goodToGo() and me.AbilityReady("Mend")() then
mq.cmd("/doability mend")
printf("[%s] \atRapids:: Mend",os.date('%H:%M:%S'))
end
if utils.goodToGo() and me.CombatAbilityReady(repDeath)() then
mq.cmdf('/doability "%s"',repDeath)
printf("[%s] \atRapids:: %s",os.date('%H:%M:%S'),repDeath)
end
if utils.goodToGo() and me.CombatAbilityReady(defensive)() then
if me.ActiveDisc.ID() > 0 and me.ActiveDisc.Name() ~= defensive then
mq.cmd("/stopdisc")
end
mq.cmdf('/doability "%s"',defensive)
printf("[%s] \atRapids:: %s",os.date('%H:%M:%S'),defensive)
mq.delay(500)
end
end
end[/CODE]
I get an error whenever this kicks in. Compare to/with nil on line 23.
[CODE lang="Lua" highlight="23"]mq = require('mq')
require("utils")
local repDeath = spell("Defy Death").RankName()
local defensive = spell("Earthforce Discipline").RankName()
while true do
if me.PctHPs() < 30 then
if utils.goodToGo() and me.AltAbilityReady("Armor of Experience")() then
mq.cmd("/alt act 2000")
printf("[%s] \atRapids:: Armor of Experience",os.date('%H:%M:%S'))
end
if utils.goodToGo() and me.AbilityReady("Mend")() then
mq.cmd("/doability mend")
printf("[%s] \atRapids:: Mend",os.date('%H:%M:%S'))
end
if utils.goodToGo() and me.CombatAbilityReady(repDeath)() then
mq.cmdf('/doability "%s"',repDeath)
printf("[%s] \atRapids:: %s",os.date('%H:%M:%S'),repDeath)
end
if utils.goodToGo() and me.CombatAbilityReady(defensive)() then
if me.ActiveDisc.ID() > 0 and me.ActiveDisc.Name() ~= defensive then
mq.cmd("/stopdisc")
end
mq.cmdf('/doability "%s"',defensive)
printf("[%s] \atRapids:: %s",os.date('%H:%M:%S'),defensive)
mq.delay(500)
end
end
end[/CODE]

