Anyone know how it worked? Trying to get an idea if its something I can build off of. Forget how it worked, anyone remember? I forget how to get it to pull up an affliction list.
Here is the deadeyes function and below it are the names of some of the affliction tables for the function. I know one that should work is the focus one, but not sure how to get that table pulled:
--DEADEYES FUNCTION function deadeyes() afflist = {} for i in ipairs(eneeds) do for h in ipairs(afflictions) do if afflictions[h].affliction == eneeds[i] then if afflictions[h].state == "healed" then table.insert(afflist, eneeds[i]) end end end end if (#afflist == 1) and (not eward) then table.insert(afflist, "epilepsy") end send("order loyals passive") send("order loyals attack "..target) if (afflist[1] == nil) then if stack == "tlock" then if ehemo and eslick then echo(C.R.."[ TARGET LOCKED! ]"..C.x) echo(C.R.."[ TARGET LOCKED! ]"..C.x) echo(C.R.."[ TARGET LOCKED! ]"..C.x) elseif eward then aff1 = extralist[1] table.remove(extralist, 1) send("deadeyes "..target.." breach "..aff1) echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x) else aff1 = extralist[1] table.remove(extralist, 1) aff2 = extralist[1] table.remove(extralist, 1) send("deadeyes "..target.." "..aff1.." "..aff2) echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x) end elseif stack == "focus" then send("contemplate "..target) else echo(C.R.."[ Stack done, not sure what to send! ]"..C.x) end end if #afflist > 1 then if eward then aff1 = afflist[1] send("deadeyes "..target.." breach "..aff1) echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x) else aff1 = afflist[1] aff2 = afflist[2] send("deadeyes "..target.." "..aff1.." "..aff2) echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x) end end end
Comments
--DEADEYES FUNCTION
function deadeyes()
afflist = {}
for i in ipairs(eneeds) do
for h in ipairs(afflictions) do
if afflictions[h].affliction == eneeds[i] then
if afflictions[h].state == "healed" then
table.insert(afflist, eneeds[i])
end
end
end
end
if (#afflist == 1) and (not eward) then
table.insert(afflist, "epilepsy")
end
send("order loyals passive")
send("order loyals attack "..target)
if (afflist[1] == nil) then
if stack == "tlock" then
if ehemo and eslick then
echo(C.R.."[ TARGET LOCKED! ]"..C.x)
echo(C.R.."[ TARGET LOCKED! ]"..C.x)
echo(C.R.."[ TARGET LOCKED! ]"..C.x)
elseif eward then
aff1 = extralist[1]
table.remove(extralist, 1)
send("deadeyes "..target.." breach "..aff1)
echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x)
else
aff1 = extralist[1]
table.remove(extralist, 1)
aff2 = extralist[1]
table.remove(extralist, 1)
send("deadeyes "..target.." "..aff1.." "..aff2)
echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x)
end
elseif stack == "focus" then
send("contemplate "..target)
else
echo(C.R.."[ Stack done, not sure what to send! ]"..C.x)
end
end
if #afflist > 1 then
if eward then
aff1 = afflist[1]
send("deadeyes "..target.." breach "..aff1)
echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x)
else
aff1 = afflist[1]
aff2 = afflist[2]
send("deadeyes "..target.." "..aff1.." "..aff2)
echo(C.R.."[ Sending "..C.B..aff1.." "..aff2..C.R.." ]"..C.x)
end
end
end
--TABLES
eneeds = {}
extrastack = {}
tlock = {
"paralyse",
"impatience",
"asthma",
"anorexia",
"stupid"
}
focus = {
"paralyse",
"anorexia",
"asthma",
"masochism",
"epilepsy",
"stupid"
}
priest = {
"anorexia",
"masochism",
"epilepsy",
"stupid"
}
knight = {
"paralyse",
"asthma",
"anorexia",
"stupid"