Loot-a-rator 1.0.1 This is a simple plugin that will use the Loot-a-rang items when the plugin detects lootable mobs and the character stops moving. (Can't use the item when you're moving.) I used almost the same code in my Baiterator plugin, and found some people found a use for it, so I made a separate plugin for people that just want the loot-a-rang functionality. Feedback is greatly appreciated. Changes - Added Sleep to stop bot running to loot while loot-a-rang is on cd. (yes i know its bad, blah blah. But seeing as plugins have no control over movement, this is the only way) - Changed the range to 25 yards. Basically the plugin will only throw the loot-a-rang if there is loot within 25 yards. Prevents unnecessary sleeps, and log spam. Download
As I wrote in the baiterator thread: when farming mobs which are lowlvl (so that my hunter one shots them) and that are quite close to each other, it can happen that the 3sec cool down isn't over yet, when this happens, instead of waiting for lootarang to be usable it runs to the mob's corpse and uses lootarang defeating the purpose of looting from distance. The module I'm using is questing. Any way to make it just wait for cd? Thx!
StyxWoW.Sleep() is absolutely evil and freezing the whole bot. Moreover, it is an obsolete method. Better use a Stopwatch together with Pulse(). StyxWoW.Sleep Method
I am aware its obsolete, and I'm aware of the proper method (Timer would be better, I don't need to measure nanoseconds). However, in this particular case, we need to sleep the whole bot to stop it running to the other mobs to loot. It's only 3 seconds, and it only executes that 3 second wait after it finds loot and throws the rang. If you're dying it has nothing to do with the plugin. Unless you happen to have loot out of range of the loot-a-rangs, in which case it will keep sleeping. I have already fixed that, and updated the top post. Please note, I made this with level 100 farming toons in mind.
If the plugin is used in places with fast respawn you risk to die. Your char will not be able to protect himself. I love your plugin but I prefer to use the first version without sleeping.
Glad you like it. Just to re-iterate, the newest version will only sleep when it detects loot within 25 yards, to prevent what you're describing. If there is no loot within range, it won't loot/sleep till the bot moves into range. I am in the process of making it selectable or not. I use it with a 691 blood dk, so I have no issues with dying.
Why don't you simply switch off looting for that given time? Targeting.MaxTargets Property Get actual MaxTargets, set it to 0 and restore it after 3 seconds. Or set the loot radius to 0 for 3 seconds Profile.LootRadius Property Combined with a timer this will be a neat solution.