promotional bannermobile promotional banner

arjLib

Abandoned
arjLib

big thanks to Snorgrind and the makers of Zorlen's library for inspiration.

first off, this mod has no screenies so don't ask! =P

secondly, this mod is used for making macro writing much easier and more powerful. there's functions to check buffs, check debuffs, cast buffs if they're not already active, check party/raid members for a buff and cast it if available, etc.



here's a list of the functions this mod provides. for a better description of each function open 'arjLib.lua' in notepad and look at the function headers...

--[[ arjLib functions:

parameters in brackets ([parameter]) are optional.
for all functions <target> will default to 'target' except buffing functions ('ibuff','cbuff') which defaults to 'player' if 'target' is hostile.
also, party spells ('pbuff','pres','pheal') will always return current target if valid.

-- cast / use functions
cact(action, [target]) - use action by name
cattack() - cast attack if not active and target in range
cinfo([channel], [target]) - say target info into a channel
citem(item, [target], [inv]) - use ineventory/bag item
cpet(spell, [toggle]) - cast pet spell
cshape([shape]) - cast shape/stance
ctop(spell, [target], [rank]) - cast top rank of spell
ctrack([track, ...]) - list of tracking spells to sequence

-- buff / debuff functions
ibuff([spell], [target], [index]) - is buff active?
cbuff(spell, [target], [max]) - cast buff if not active
idebuff([spell], [target], [index]) - is debuff active?
cdebuff(spell, [target], [max]) - cast debuff if not active

-- raid / party functions
pbuff(spell, [class]) - buff target & raid/party members
pdebuff(spell, [debuff]) - cast spell if target/raid/party members have debuff
pchat(text, [target]) - say in raid/party
pheal([spell], [thold], [max]) - heal lowest target/party member
pres([spell]) - cast spell on dead raid/party member

-- miscellaneous
rsay(text, [...]) - list of strings, one is randomly said
wsay(text, target) - whisper text to target

]]--



here's a few example macros from the 'examples.lua' file:

-- hunter ranged damage spam with pull...
/script if(not UnitAffectingCombat('target')) then ctop('Arcane Shot') end cbuff('Aspect of the Hawk','player') cdebuff('Serpent Sting') ctop('Aimed Shot')

-- warrior battle stance melee spam
/script cact('Charge') if(cattack()) then cact('Execute') cact('Overpower') cbuff('Bloodrage') cdebuff('Rend') cact('Heroic Strike') end cbuff('Battle Shout')

-- buff spam for an undead priest
/script local t=pbuff('Power Word: Fortitude') if(t) then pchat('May the Fort be with you.',t) end cbuff('Inner Fire','player') cbuff('Touch of Weakness','player') cbuff('Shadow Protection')

-- priest heal for lowest party member
/script if(IsAltKeyDown()) then pheal('Lesser Heal') elseif(IsControlKeyDown()) then pheal('Flash Heal') else pheal('Heal') end

enjoy.
- arJUna

The arjLib Team

profile avatar
  • 4
    Projects
  • 565.1K
    Downloads

More from _ForgeUser61135