arjLib Author:arJUna | 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 functionswill 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.
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],[percent],[party]) - heal lowest target/party member pres([spell],[class]) - cast spell on dead raid/party member
-- miscellaneous rsay(text,[...]) - list of strings, one is randomly said
]]--
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 Development Status: stable Added: 2006-10-05 17:36:14 Version: 18
Rate this Package: 1 2 3 4 5 6 7 8 9 10
No Screenshots available.
| |
|