Auto-Retarget Feign Death LUA script menu

User Tag List

Results 1 to 8 of 8
  1. #1
    dealerx's Avatar Member
    Reputation
    9
    Join Date
    May 2016
    Posts
    124
    Thanks G/R
    14/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Auto-Retarget Feign Death LUA script

    I remember maybe someone asking for it, here you go in case you need, not tested but should work pretty good. (Only in arenas)
    You can add "arena4" and "arena5" in the list, if you play 5v5 bracket.

    Code:
    local atar = {
    "arena1",
    "arena2",
    "arena3"
    }
    
    local Target = UnitExists("target")
    
    for i=1, #atar do
    
    if UnitBuff(atar[i],"Feign Death")
    and not Target
    then
    TargetUnit(atar[i])
    end
    
    end
    Enjoy

    Auto-Retarget Feign Death LUA script
  2. #2
    bynike's Avatar Member
    Reputation
    10
    Join Date
    Mar 2010
    Posts
    50
    Thanks G/R
    26/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good idea, i will try this. tyvm. :P

  3. #3
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use COMBAT_LOG_EVENT_UNFILTERED on type UNIT_DIED from targetGUID sourceGUID from a hunter class. That way, you only target your current target and don't constantly iterate a list.

  4. Thanks bynike (1 members gave Thanks to Numba1stunna1 for this useful post)
  5. #4
    dealerx's Avatar Member
    Reputation
    9
    Join Date
    May 2016
    Posts
    124
    Thanks G/R
    14/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Numba1stunna1 View Post
    Use COMBAT_LOG_EVENT_UNFILTERED on type UNIT_DIED from targetGUID sourceGUID from a hunter class. That way, you only target your current target and don't constantly iterate a list.
    Sure it can be done like that, but correct me if I'm wrong, isn't the combat log frame script hooked into the game permanently until you close the game or do /reload? I remember time ago when turning off PQR it was still trying to do combat log events like "stop casting on kick", "vanish blind", and so on. Now I don't exactly remember the details of the script/rotation, but not only the "toolkit" (this was the name) was not working, but also it was permanently attached to wow even after closing pqr and that was really annoying to be honest.

    Can you confirm this?

  6. #5
    bynike's Avatar Member
    Reputation
    10
    Join Date
    Mar 2010
    Posts
    50
    Thanks G/R
    26/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    exactly, u have to do reloadui or relog game to quit the events script.

  7. #6
    dealerx's Avatar Member
    Reputation
    9
    Join Date
    May 2016
    Posts
    124
    Thanks G/R
    14/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bynike View Post
    exactly, u have to do reloadui or relog game to quit the events script.
    Alright, that's why I wrote that code without the event handler, I didn't like the idea of a script running in background even after closing the injector (pqr), but that's a matter of preferences, it can be done both ways as you said, so thanks for the tip

  8. #7
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No. You can set it to enable/disable on macro or set it to only work when PQR is running (ex. PQR_RotationStarted). You can also register/unregister specific events of a frame. Learning basic object oriented programming and basic WoW frames/handlers will drastically make a PQR profile much more efficient.

  9. #8
    dealerx's Avatar Member
    Reputation
    9
    Join Date
    May 2016
    Posts
    124
    Thanks G/R
    14/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if PQR_RotationStarted or other similar command work with pqr 1.1. (3.3.5)? Like PQR_IsOutOfSight or PQR_DelayRotation(or what was that) for example don't work.

Similar Threads

  1. [Bot] auto loger ,selectserver,support martix card lua script
    By debiangrub3 in forum WoW Memory Editing
    Replies: 5
    Last Post: 10-28-2011, 12:14 AM
  2. [Guide] Deaths Lua Guide for Teleporters,Custom Bosses and Item scripts!
    By Deathbringer123 in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 10-11-2011, 12:26 PM
  3. Replies: 2
    Last Post: 06-01-2010, 05:29 AM
  4. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  5. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
All times are GMT -5. The time now is 05:12 PM. 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