Updated to 1.2.1 and added some new rotations (thanks everyone!)
SC.PlayerCountBuff(name): returns player buff stack count (like shadow priest's orbs)
Added bursting logic
Added some more settings
Settings are now saved per character instead of one single file
SC.TargetCountDebuff(name): returns player debuff stack count on target
SC.BurstLevel: returns current burst level (default 0)
SC.CombatTimeElapsed: returns time elapsed since combat started
SC.UseBagItem(name): uses item in player's bags if not on cooldown
SC.UseEngineerGloves: uses engineer's gloves enchant (1min cooldown pseudo trinket)
Fixed SC.PlayerHasBuff when buff has no duration
Fixed facing math bug
AOE behaviors and helpers:
SC.CountEnnemiesInRange(WoWPoint fromLocation, double maxRange): returns number of hostile units in range of given location
SC.GetSpellRadius(name): returns spell's area radius
SC.CastSpellAtLocation: casts a spell at a given location (like hunter's trap throwing)
SC.CastSpellAtTargetLocation: exactly the same as the previous one, but on your current target location.
SC.CastAreaSpell: automatically find packed units and cast an area spell on them. Does nothing if not enough targets
SC.ChannelAreaSpell: same as the previous one, but channels an area spell (like rain of fire)
About burst levels:
- The idea is to split your common rotation and your burst one. It allows the user to pop every cooldown needed on burst phases.
- You can manage burst phases by yourself or let the bot handle your cooldowns on the class settings panel
- If managing them by yourself, you'll find two general in-game macros once you started the bot.
- Macro 'burst more': increase burst level by one
- Macro 'reset burst': reset burst level to 0
- Burst level is automatically reset to 0 after you leave combat
- If the bot is managing your burst level, it will wait 10 seconds after entering combat before bursting.
Example:
I've added the demonology warlock burst sequence in two levels:
burst=1: pop trinkets and short/medium cooldowns
burst=2: pop doomguard (10min cooldown)
Code example:
Code:
return new Sequence(
//this is the burst phase pre-rotation. Called if and only if SC.BurstLevel > 0
SC.BurstSequence(
SC.CastSpell("Doomguard", a => true, "Doomguard - burst!"),
),
//and here's our normal rotation, which is always called, even while bursting
new PrioritySelector(
SC.CastSpell("Shadow Bolt", a => true, "Shadow Bolt"),
SC.CastSpell("Fel Flame", a => Me.IsMoving, "Fel flame while moving")
)
);
Please switch to this thread for comments/questions/etc: http://www.thebuddyforum.com/honorb...ing-cc-lazyraider-combat-bots.html#post344038
The current thread is no more related to this CC.