http://www.ownedcore.com/forums/worl...ation-bot.html is required
Greetings everyone!
This info will be useful to PQR PvP profile authors. I've created a code to automatically reveal stealthers in bgs/rbgs/arenas and you can easily put it into your profiles!
Principle of work
It's very simple. It tracks all invisible stealthers (those who cannot be targeted at the moment) and scans the area for them. List of invisible stealthers is updated every 2 seconds. It won't interrupt your spellcasting/channeling with stealth-breaker ability or target change. /target spam won't affect performance of your game.
How to use it
You can create a new ability in your pvp profile and put my code there.
This part is responsible for stealthed list update period:
and this defines stealth-breaker spell for each class:Code:local rescan_period = 2 --how often stealthed list is repopulated
BONUS - AUTO FLAG PICKUP/RETURNCode:local function Breaker() --instant stealth breaker, class dependent local _, playerClass = UnitClass("player") ... end
Auto flag pickup/return with option of running to the flag if Shift is pressed.
All-Purpose Stealthers' Bane
Random BG-Only Stealthers' Bane
Auto flag pickup/return
I'm looking forward to get your feedback and tips on improvement!
HALL OF FAME
link
@holinka please look at this and make it not work http://www.ownedcore.com/forums/worl...hers-bane.htmlUpdates:@Ghostcrawler please take a look at this and stahp it from functioning http://www.ownedcore.com/forums/worl...hers-bane.html
07/06/13 Code cleanup+slightly improved logic
12/06/13 A new small code cleanup+logic improvement. Added distance check to prevent annoying /target spam glitch
17/06/13 Name collisions partially fixed
20/06/13 A final nail in the coffin of name collisions
05/07/13 A small but important logic update: your target now switches to spotted stealther instead of returning to the last target
09/07/13 Slightly optimized performance
19/07/13 Code cleanup + improved performance + improved logic for druids
22/07/13 Serpent Sting is hunter's default spell now. It costs only 15 focus making it the cheapest instant ability.
20/08/13 Stealther's Bane is split in two versions: All-purpose stealth breaker working in Arenas/RBGs/Random BGs and Random BG-Only version with optimized performance. Added PetAttack() so stealthers out of LoS won't be unreachable.
10/09/13 Improved spell selection for hunter.
14/09/13 Spellcast Fake is updated. Added a fancy alert of interrupt attempts.
20/10/13 Stealthers' Bane: perforamnce is improved. Added a GY camp mode: rogues and druids are preventively hit with the stealth-breaker spell after rezzing. They won't slip away if your latency is good enough!