[Minor] Safely get alerted when a unit spawns in a predictable location menu

User Tag List

Results 1 to 8 of 8
  1. #1
    StillAVirgin64's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    28
    Join Date
    Nov 2019
    Posts
    62
    Thanks G/R
    34/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Minor] Safely get alerted when a unit spawns in a predictable location

    Not so much an exploit, but probably not intended this way. This addon is a simple mouseover script to check for a particular unit name. I'm posting this because it's a safe way of camping a unit and gives you a better reaction time without having to look over your shoulder constantly. You could send messages to the client or use a keyboard macro to not be limited to a mouseover, but that could get you banned for automation. Something like Rarescanner will detect spawns based on the icon showing up on your map, but this attached addon works for any unit and not just rares. Obviously, it works best for units that are idle or walk in predictable locations. I recommend running this on an alternate PC preferably a nearby laptop since the mouse needs to stay in place.

    I searched OC for similar stuff, but mainly just found outdated scanners or targeting macro type things. To use, enter the unit's name and it will alert you with a popup and sound.

    UD.jpg

    UnitDetector.zip

    addon.lua
    Code:
    local run = false
    local playSound = false
    local ticker = nil
    local TICK_RATE = 0.1
    local initialized = false
    
    local targetUnit = ""
    
    function reset()
        playSound = false
    end
    
    function unitFound()
        return UnitExists('mouseover') and UnitName('mouseover') == targetUnit and not UnitIsDead('mouseover')
    end
    
    function checkUnit()
        if not run then
            return
        end
    	if initialized and not playSound and unitFound() then
    		playSound=true
            PlaySound(SOUNDKIT.UI_RAID_BOSS_WHISPER_WARNING)
            StaticPopup_Show("RD_UNIT_RESET")
    	end
    end
    
    StaticPopupDialogs["RD_UNIT_INPUT"] = {
        text = "Enter the unit's name",
        button1 = "Confirm",
        button2 = "Cancel",
        OnShow = function (self, data)
            self.editBox:SetText("")
        end,
        OnAccept = function (self)
            run = true
            local input = self.editBox:GetText()
            targetUnit = input
            initialized = true
            C_Timer.NewTicker(TICK_RATE, checkUnit)
        end,
        hasEditBox = true,
        OnCancel = function (self)
            run = false
            print('Scanner stopped.')
        end,
        timeout = 0,
        whileDead = true,
        hideOnEscape = true,
        preferredIndex = 3,  -- avoid some UI taint, see http://www.wowace.com/announcements/how-to-avoid-some-ui-taint/
      }
    
      StaticPopupDialogs["RD_UNIT_RESET"] = {
        text = "Unit found! Click 'Ok' to reset the scanner",
        button1 = "Ok",
        button2 = "Cancel",
        OnShow = function (self, data)
            self.editBox:SetText("")
        end,
        OnAccept = function (self)
            C_Timer.After(2.0, reset)
        end,
        OnCancel = function (self)
            run = false
            print('Scanner stopped.')
        end,
        timeout = 0,
        whileDead = true,
        hideOnEscape = true,
        preferredIndex = 3,  -- avoid some UI taint, see http://www.wowace.com/announcements/how-to-avoid-some-ui-taint/
      }
    
    StaticPopup_Show("RD_UNIT_INPUT")
    
    print('UnitDetector loaded successfully')
    edit: The addon will just auto-load and it's still running in the background if you click cancel, just not alerting you. So edit the code with ticker::cancel or disable the addon if you care about those precious cpu cycles.
    Last edited by StillAVirgin64; 08-06-2020 at 03:41 PM. Reason: blip

    These ads disappear when you log in.

  2. Thanks Yavanna, tmanowen, ~Z~, jimmys96 (4 members gave Thanks to StillAVirgin64 for this useful post)
  3. #2
    Kellerbier1991's Avatar Member
    Reputation
    1
    Join Date
    Aug 2020
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for sharing, but how can i run this addon on bfa? i have already unzipped the addon into my addons folder

  4. #3
    StillAVirgin64's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    28
    Join Date
    Nov 2019
    Posts
    62
    Thanks G/R
    34/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kellerbier1991 View Post
    Thanks for sharing, but how can i run this addon on bfa? i have already unzipped the addon into my addons folder
    It should work as long as you have the addon enabled. I've been away from WoW, but when I was using this I just had to drop it in the addons folder. Make sure the game is closed the first time you add the addon. Let me know if that helps.

  5. #4
    Limes's Avatar Contributor
    Reputation
    111
    Join Date
    Jul 2016
    Posts
    75
    Thanks G/R
    62/39
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the advantage of using this over the SilverDragon addon? SD can detect mobs instantly via mouseover, target, vignette (minimap icon), or nameplates and all it requires you to do is add the mob's ID to the custom list, if it's not already provided.

    The one exception are Voidtalon portals, which can't be detected by anything other than mouseover, but for just a single instance, a macro is fine.

    I'm just curious as to why I'd ever use this. Is there something I'm not thinking of?

  6. #5
    StillAVirgin64's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    28
    Join Date
    Nov 2019
    Posts
    62
    Thanks G/R
    34/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Limes View Post
    What's the advantage of using this over the SilverDragon addon? SD can detect mobs instantly via mouseover, target, vignette (minimap icon), or nameplates and all it requires you to do is add the mob's ID to the custom list, if it's not already provided.

    The one exception are Voidtalon portals, which can't be detected by anything other than mouseover, but for just a single instance, a macro is fine.

    I'm just curious as to why I'd ever use this. Is there something I'm not thinking of?
    Thanks for providing that name I would have just used that, but I made the above because I couldn't find anything for mouseovers. That addon is probably more robust, this one was just to fulfill a simple need. Probably the best use of it is just an example of what can be done for writing a custom addon that uses dialogs since its a short use case.

  7. #6
    delkin's Avatar Active Member
    Reputation
    26
    Join Date
    Sep 2013
    Posts
    14
    Thanks G/R
    1/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look same as npcscan and rarescanner . What diff?

  8. #7
    jimmys96's Avatar Legendary
    Reputation
    617
    Join Date
    Aug 2008
    Posts
    1,120
    Thanks G/R
    179/166
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by delkin View Post
    look same as npcscan and rarescanner . What diff?
    Did you read the post?
    "Something like Rarescanner will detect spawns based on the icon showing up on your map, but this attached addon works for any unit and not just rares."

  9. #8
    delkin's Avatar Active Member
    Reputation
    26
    Join Date
    Sep 2013
    Posts
    14
    Thanks G/R
    1/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jimmys96 View Post
    Did you read the post?
    "Something like Rarescanner will detect spawns based on the icon showing up on your map, but this attached addon works for any unit and not just rares."
    npcscan alarm by mouseover too and allow adding custom npc, i using it for some npcs and 1 lvl critter in nazjatar and mechagon.


    and fixing npcscan if it not works easy:

    \World of Warcraft\_retail_\Interface\addons\NPCScan\Preferences\

    Start at line 108 in alerts.lua

    Replace the sound lines with this:

    LibSharedMedia:Register("sound", "NPCScan Killed", 567394) -- Sound\Interface\RaidBossWarning.ogg
    LibSharedMedia:Register("sound", "NPCScan Chimes", 1489461) -- Sound\Interface\UI_Legendary_Item_Toast.ogg
    LibSharedMedia:Register("sound", "NPCScan Gruntling Horn", 598196) -- Sound\Events\gruntling_horn_bb.ogg
    LibSharedMedia:Register("sound", "NPCScan Ogre War Drums", 567275) -- Sound\Event Sounds\Event_wardrum_ogre.ogg
    LibSharedMedia:Register("sound", "NPCScan Scourge Horn", 567386) -- Sound\Events\scourge_horn.ogg

Similar Threads

  1. dont get booted when flying fast!!
    By jlhkgjfhd in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 01-08-2008, 12:27 PM
  2. [EMU] how to get gold when items are free FOR NOOBS
    By XxSanchenxX in forum WoW EMU Exploits & Bugs
    Replies: 1
    Last Post: 01-04-2008, 09:30 PM
  3. how long time befor you get mail when ppl send to you`?
    By fiskerfisk in forum World of Warcraft General
    Replies: 9
    Last Post: 11-04-2007, 12:49 PM
  4. getting error when trying to change size
    By kanezfan in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 07-31-2007, 08:57 PM
  5. GUIDE: How to get unstuck when exploring
    By Fault in forum World of Warcraft Exploration
    Replies: 3
    Last Post: 12-24-2006, 03:07 PM
All times are GMT -5. The time now is 10:07 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search