Behind target check (proof of concept) menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Ultraviolence's Avatar Active Member
    Reputation
    15
    Join Date
    Aug 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Behind target check

    Here's a new method of checking your position relative to your target (sort of). Basically, it'll parse an error frame, and when the message "You must be behind your target" fires it'll run your code (or return true or false if you want).

    Rogue example:

    Code:
    if not behindCheck then
        behindCheck = CreateFrame("Frame")
    end
    
    local frame = behindCheck
    frame:RegisterEvent("UI_ERROR_MESSAGE")
    frame:SetScript("OnEvent", function(self, event, ...)
    	if (select(1,...):find("behind") ~= nil) then
    		CastSpellByName("Gouge") --do stuff here
    	end
    end)
    
    CastSpellByName("Backstab");
    It may be useful to add a timer function to this as well.
    Last edited by Ultraviolence; 02-07-2013 at 04:11 AM.

    Behind target check (proof of concept)
  2. #2
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ultraviolence View Post
    The only problem with this code example is that it is kinda ineffeciant, and will cause frame lag. I haven't found a workaround yet (or at least not one I could understand), so if a more experienced addon developer could chime in or PM me, that would be awesome.
    Every time you run the macro you create a new frame. So after a while you'll have hundreds of frames processing combat log events.

  3. #3
    CrazyCactuaR's Avatar Contributor
    Reputation
    84
    Join Date
    Sep 2008
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Every time you run the macro you create a new frame. So after a while you'll have hundreds of frames processing combat log events.
    Would you know how to close/delete the frame once it's finished? On a whim i guess;

    Code:
    a:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
    may work but untested.
    Last edited by CrazyCactuaR; 07-14-2011 at 12:56 AM.

  4. #4
    wowsc4p3's Avatar Active Member
    Reputation
    59
    Join Date
    Nov 2007
    Posts
    380
    Thanks G/R
    0/2
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Making it cast stealth is pointless; it will require standing behind the enemy and in stealth. make it cast shadowstep

  5. #5
    CrazyCactuaR's Avatar Contributor
    Reputation
    84
    Join Date
    Sep 2008
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by wowsc4p3 View Post
    Making it cast stealth is pointless; it will require standing behind the enemy and in stealth. make it cast shadowstep
    It's for assasination spec isn't it?

  6. #6
    Ultraviolence's Avatar Active Member
    Reputation
    15
    Join Date
    Aug 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CrazyCactuaR View Post
    Would you know how to close/delete the frame once it's finished? On a whim i guess;

    Code:
    a:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
    may work but untested.
    Thanks for reminding me about that, I added it in and it helped a lot, although there is still a frame rate dip (40-50 frames lost), at least it doesn't freeze the screen. It's not too big a problem for me but I don't know how it would affect an older system. I should also note that it's always good to have an addon such as Combat Log Fix which automatically resets the combat log if it ever bugs out.

    Originally Posted by _Mike View Post
    Every time you run the macro you create a new frame. So after a while you'll have hundreds of frames processing combat log events.
    Do you have a solution?
    Last edited by Ultraviolence; 07-15-2011 at 10:00 AM.

  7. #7
    Ultraviolence's Avatar Active Member
    Reputation
    15
    Join Date
    Aug 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updated the main post with the new working script.

  8. #8
    d3deadl0rd's Avatar Member CoreCoins Purchaser
    Reputation
    1
    Join Date
    Dec 2012
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone plz explain how to use that? What should i add to paste it in macro and use?

  9. #9
    Iaccidentallytwink's Avatar Elite User
    Reputation
    590
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am quite surprised this didn't get any attention when it was posted... does this still work? It's quite good.


  10. #10
    d3deadl0rd's Avatar Member CoreCoins Purchaser
    Reputation
    1
    Join Date
    Dec 2012
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wonder i could have any script working the same way. I need hemo infront and ambush from behind/ guess there is something like that just cant find it for sad.

  11. #11
    Ultraviolence's Avatar Active Member
    Reputation
    15
    Join Date
    Aug 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Iaccidentallytwink View Post
    I am quite surprised this didn't get any attention when it was posted... does this still work? It's quite good.
    Yes, it still works. It was implemented into PQRotation as well.

Similar Threads

  1. Replies: 0
    Last Post: 10-20-2011, 09:20 PM
  2. Proof of Concept: dwFindPattern TLS [C#]
    By Shynd in forum WoW Memory Editing
    Replies: 14
    Last Post: 05-28-2010, 09:46 AM
  3. [Proof of Concept] Anti Ban
    By ashleyww in forum World of Warcraft Bots and Programs
    Replies: 24
    Last Post: 05-18-2009, 07:21 PM
  4. [help]Proof of Concept: dwFindPattern TLS
    By babodx in forum WoW Memory Editing
    Replies: 1
    Last Post: 04-21-2009, 07:26 AM
  5. [Showoff][Proof-of-Concept]WMO-Editing+Maininterface
    By Tigurius in forum World of Warcraft Model Editing
    Replies: 26
    Last Post: 01-16-2009, 01:47 AM
All times are GMT -5. The time now is 10:50 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search