- Joined
- Jan 29, 2021
- RedCents
- 193¢
I have my buffing routines setup like the following. 1 buffing file for each class. I am showing the Druid one. I am leaving out all the details of each function as it's not important
[CODE title="druid.petBuff = function()"]local mq = require('mq')
local casting = require('casting')
local buffing = require('buffing')
local druid = {}
druid.selfBuff = function()
druid.partyBuff = function()
druid.petBuff = function()
druid.resistBuff = function()
druid.invisBuff = function()
return druid[/CODE]
When I want to have my party invis themselves, I do the following
From EQ
And my invis_routine file looks like
I was wondering if there was a way to do away with the invis_routine file and somehow call the functions directly from EQ. Something like
[CODE title="druid.petBuff = function()"]local mq = require('mq')
local casting = require('casting')
local buffing = require('buffing')
local druid = {}
druid.selfBuff = function()
druid.partyBuff = function()
druid.petBuff = function()
druid.resistBuff = function()
druid.invisBuff = function()
return druid[/CODE]
When I want to have my party invis themselves, I do the following
From EQ
Code:
/bcga //lua run invis_routine
And my invis_routine file looks like
Code:
local class_name = mq.TLO.Me.Class.Name()
print(class_name)
if(class_name == "Druid") then
druid.invisBuff()
elseif (class_name == "Beastlord") then
beastlord.invisBuff()
elseif (class_name == "Enchanter") then
enchanter.invisBuff()
elseif (class_name == "Magician") then
mage.invisBuff()
else
print('No invis buff routine for this ' .. class_name)
end
I was wondering if there was a way to do away with the invis_routine file and somehow call the functions directly from EQ. Something like
Code:
/bct Druid //lua run druid.invisBuff
/bct Mage //lua run mage.invisBuff
/bct Enchanter //lua run enchanter.invisBuff
/bct Beastlord //lua run beastlord.invisBuff
Last edited:

