- Joined
- Dec 17, 2016
- RedCents
- 270¢
I took the Macro Czarman made here:
www.redguides.com
and I'm modifying it to be a Lua so that it can be run in tandem with existing macro / plugins. The current plan is to just run the toons with Blunt weapons and not worry about swapping at this time. Later after I get it working, I'm planning on using a bandolier so that players can just make a common bando and use it across all their toons.
It's not working correctly at the moment and if anyone would like to correct my mistakes, I would greatly appreciate it. I'm way too tired at the moment to see what I'm doing wrong. I'll pick it back up tomorrow.
Thanks Knightly and Lemons for the code samples.
[CODE lang="Lua" title="Vish.Lua"]local mq = require('mq')
local CureDoom = function ()
if mq.TLO.Me.Buff(Creeping Doom)() ~= nil then return end
mq.cmd('/boxr pause')
if mq.TLO.Me.Sitting() then
mq.cmd('/stand')
end
::NavToCloud::
mq.cmd('/nav id ${NearestSpawn[${Math.Rand[${SpawnCount["mournful spirit"]}]},"mournful spirit"].ID} | dist=10')
while mq.TLO.Nav.Active() do mq.delay(1) end
mq.cmd('/target id ${NearestSpawn[npc "mournful spirit"].ID}')
mq.delay(5)
if mq.TLO.Target.Distance() < 20 then
mq.cmd('/say Shoulder My Burden')
mq.cmd('/boxr unpause')
else
goto NavToCloud
end
end
end
local KillEggs = function ()
if mq.TLO.Me.Buff('Creeping Doom')() == nil and mq.TLO.Spawn('npc "a tainted egg"')() ~= nil then return end
mq.cmd('/boxr pause')
mq.cmd('/nav id ${Spawn[npc "a tainted egg"].ID}')
mq.cmd('/target id ${Spawn[npc "a tainted egg"].ID}')
::Kill_Egg::
if mq.TLO.Me.Combat() and mq.TLO.Target.Distance() < mq.TLO.Target.MaxRangeTo() then
mq.cmd('/attack on')
end
mq.cmd('/delay 3')
local myTarget = mq.TLO.Target()
if myTarget ~= nil and myTarget.CleanName() == 'a tainted egg'then
goto Kill_Egg
mq.cmd('/boxr unpause')
end
end
while true do
CureDoom()
mq.delay(10)
KillEggs()
mq.delay(10)
end
end[/CODE]
Help with a Macro.....
Help with a Visimtar Egg/DT (Creeping Doom) Macro..... Hey all. Really looking for a snippet to use during Vishimtar. It is very important that "a tainted egg" gets targeted and killed fast....1 hand blunt ONLY dmg on the mob. I figured out how to add a line to Rogue macro (RH.mac) that just...
It's not working correctly at the moment and if anyone would like to correct my mistakes, I would greatly appreciate it. I'm way too tired at the moment to see what I'm doing wrong. I'll pick it back up tomorrow.
Thanks Knightly and Lemons for the code samples.
[CODE lang="Lua" title="Vish.Lua"]local mq = require('mq')
local CureDoom = function ()
if mq.TLO.Me.Buff(Creeping Doom)() ~= nil then return end
mq.cmd('/boxr pause')
if mq.TLO.Me.Sitting() then
mq.cmd('/stand')
end
::NavToCloud::
mq.cmd('/nav id ${NearestSpawn[${Math.Rand[${SpawnCount["mournful spirit"]}]},"mournful spirit"].ID} | dist=10')
while mq.TLO.Nav.Active() do mq.delay(1) end
mq.cmd('/target id ${NearestSpawn[npc "mournful spirit"].ID}')
mq.delay(5)
if mq.TLO.Target.Distance() < 20 then
mq.cmd('/say Shoulder My Burden')
mq.cmd('/boxr unpause')
else
goto NavToCloud
end
end
end
local KillEggs = function ()
if mq.TLO.Me.Buff('Creeping Doom')() == nil and mq.TLO.Spawn('npc "a tainted egg"')() ~= nil then return end
mq.cmd('/boxr pause')
mq.cmd('/nav id ${Spawn[npc "a tainted egg"].ID}')
mq.cmd('/target id ${Spawn[npc "a tainted egg"].ID}')
::Kill_Egg::
if mq.TLO.Me.Combat() and mq.TLO.Target.Distance() < mq.TLO.Target.MaxRangeTo() then
mq.cmd('/attack on')
end
mq.cmd('/delay 3')
local myTarget = mq.TLO.Target()
if myTarget ~= nil and myTarget.CleanName() == 'a tainted egg'then
goto Kill_Egg
mq.cmd('/boxr unpause')
end
end
while true do
CureDoom()
mq.delay(10)
KillEggs()
mq.delay(10)
end
end[/CODE]


If your code does do this and I just miss understood my appolologies.