Shankyas12
Member
- Joined
- Jan 2, 2017
- RedCents
- 110¢
Hi Guys,
I am just starting to script and write in Lua. I have been basically trying different ones you all have posted and then changing the script to meet my custom needs. I have really enjoyed all of them and learning how to do this. I am currently attempting to make a run away emote through Lua and honestly im stumped on how to do it properly. Basically what i would want is the character to react to an emote that happens then run to 4 different locations. I honestly do not know how to start the command off because what i currently am doing wont even keep the script up it keeps failing immediately. I am sure it's something super obvious but i am just missing some information. This is what i have so far that defiantly is not working. I pulled this from one of the Lua scripts i saw then input some information for the event that i want to do. Any assistance would be helpful. If you could just point me on a path that would also be great. Thank you all in advanced.
-Shankyas
I am just starting to script and write in Lua. I have been basically trying different ones you all have posted and then changing the script to meet my custom needs. I have really enjoyed all of them and learning how to do this. I am currently attempting to make a run away emote through Lua and honestly im stumped on how to do it properly. Basically what i would want is the character to react to an emote that happens then run to 4 different locations. I honestly do not know how to start the command off because what i currently am doing wont even keep the script up it keeps failing immediately. I am sure it's something super obvious but i am just missing some information. This is what i have so far that defiantly is not working. I pulled this from one of the Lua scripts i saw then input some information for the event that i want to do. Any assistance would be helpful. If you could just point me on a path that would also be great. Thank you all in advanced.
Lua:
local mq = require("mq")
if ##Insects begin to swarm. They seem to be drawn to #1###
do
if not mq.TLO.Zone.ShortName() == 'Zelnithak_Raid' then return end
local my_class = mq.TLO.Me.Class.ShortName()
local i_am_ma = mq.TLO.Group.Member(0).MainAssist()
local my_name = mq.TLO.Me.CleanName()
local ma_name = mq.TLO.Group.MainAssist.CleanName()
-- Run away if I am the target and I am not the MA, or if the MA is the target and I am not the MA
if not i_am_ma and (target == my_name or target == ma_name) then
mq.cmdf('/%s mode 0', my_class) -- pause CWTN and other sorts of automation
if my_class == 'BER' and mq.TLO.Me.ActiveDisc.Name() == mq.TLO.Spell('Frenzied Resolve Discipline').RankName() then
mq.cmd('/stopdisc') -- Stop BER disc that roots you in place so you can run if you are a BER
end
mq.cmd('/nav locyxz -717, -589, -31')
mq.delay(100)
mq.cmd('/nav locyxz -581, -354, -48')
mq.delay(100)
mq.cmd('/nav locyxz -581, -136, -51')
mq.delay(100)
mq.cmd('/nav locyxz -777, -143, -16')
mq.delay(100)
mq.cmd('/nav locyxz -892, -407, -32')
mq.delay(100)
mq.cmd('/nav locyxz -871, -604, -34')
mq.delay(100)
mq.cmd('/mqp off')
mq.cmd('/twist on')
end
end
Last edited by a moderator:


