AtenCS.lua to help you on the Calming the Stones in TOL Aten Ha Ra Mission

KingArthur

AutoBots
Joined
Dec 15, 2009
Messages
525
Reaction score
31
Points
28
Use when you fighting Aten Ha Ra the mission, this will help your bard to mez all 4 gargs, thus to finish the achievement of "Calm the Stones".

You HAVE TO memorize you song "Slumber of the Diabo" as mez spell, spell gem order doesn't matter thoug.

Usage: Save the following code as AtenCS.lua, and put the lua script in your lua folder in MQNext folder.
Then /lua run AtenCS on your bard before the fighting.

Code:
--Written by KingArthur

local mq = require("mq")

local SMezSong = mq.TLO.Spell('Slumber of the Diabo').RankName()
local SMezGem = mq.TLO.Me.Gem(SMezSong)

local function StopDPS()
    mq.cmd('/mqp on')
    mq.delay(100)
    mq.cmd('/boxr pause')
    mq.delay(1000)
    mq.cmd('/twist off')
    while mq.TLO.Me.Casting.ID() do
      mq.delay(500)
    end 
end

local function ResumeDPS()
   mq.cmd('/mqp off')
   mq.delay(100)
   mq.cmd('/boxr unpause')
   mq.delay(1000)
end

local function TarNPC(npcid)
 if mq.TLO.Target.ID() ~= npcid then
       mq.cmdf('/tar id %s', npcid)
       mq.delay(1000)
       while mq.TLO.Target.BuffsPopulated() ~= true do
         mq.delay(200)
       end
    end
end   

local function SingSMez()
  mq.cmdf('/twist once %s', SMezGem)
  mq.delay(4000)
  mq.cmd('/echo SMez on %s for Calming Stones', mq.TLO.Target.Name())
end

StopDPS()
while true do
  for i=1,4 do
    if mq.TLO.NearestSpawn(i..',npc smirk los').ID() and mq.TLO.NearestSpawn(i..',npc smirk los').Animation() ~= 110 then
      mq.delay(100)
      TarNPC(mq.TLO.NearestSpawn(i..',npc smirk los').ID())
      if mq.TLO.Target.Name.Find('smirk')() then
         SingSMez()
      end
    end
  end 
    mq.delay(10)
end
 
  • Like
Reactions: maximoh
The explanation of where to put it and how to use it was a huge help ty sir
 
  • Like
Reactions: KingArthur
does this code work for the enchanter ??
tried to find lua folder > found folder then more subfolders >examples or integrated test.
My question which subfolder and do I copy and paste
 
does this code work for the enchanter ??
tried to find lua folder > found folder then more subfolders >examples or integrated test.
My question which subfolder and do I copy and paste

You will need to modify the spell to the one you want your chanter to use and change how to cast it.
 
does this code work for the enchanter ??
tried to find lua folder > found folder then more subfolders >examples or integrated test.
My question which subfolder and do I copy and paste
Just in Lua folder not those subfolders