Trying an old raid with a few friends and thought I would try to make a Lua for mezzing and charming on Captain Tita. I am not a coder. I pulled some script from the Shei lau for mezzing.
Will this work?
[CODE lang="Lua" title="Tita"]local mq = require("mq")
while true
do
if mq.TLO.SpawnCount("aggressive carcass npc")() > 0 then
mq.cmd("/rg off")
mq.cmd("/twist 5 10")
mq.cmd("/target clear")
while mq.TLO.SpawnCount("aggressive carcass npc")() > 0 do
mq.cmd("/tar aggressive carcass npc")
end
mq.cmd("/rg on")
mq.cmd("/chaseon")
end
if mq.TLO.SpawnCount("malleable worker npc")() > 0 then
mq.cmd("/rg off")
mq.cmd("/twist 1")
while mq.TLO.SpawnCount("malleable worker npc")() > 0 do
mq.cmd("/tar malleable worker npc")
end
mq.cmd("/rg on")
mq.cmd("/chaseon")
end
mq.delay(10)
end[/CODE]
Will this work?
[CODE lang="Lua" title="Tita"]local mq = require("mq")
while true
do
if mq.TLO.SpawnCount("aggressive carcass npc")() > 0 then
mq.cmd("/rg off")
mq.cmd("/twist 5 10")
mq.cmd("/target clear")
while mq.TLO.SpawnCount("aggressive carcass npc")() > 0 do
mq.cmd("/tar aggressive carcass npc")
end
mq.cmd("/rg on")
mq.cmd("/chaseon")
end
if mq.TLO.SpawnCount("malleable worker npc")() > 0 then
mq.cmd("/rg off")
mq.cmd("/twist 1")
while mq.TLO.SpawnCount("malleable worker npc")() > 0 do
mq.cmd("/tar malleable worker npc")
end
mq.cmd("/rg on")
mq.cmd("/chaseon")
end
mq.delay(10)
end[/CODE]

