[BETA] PQRotation - an automated ability priority queue. menu

Shout-Out

User Tag List

Page 725 of 731 FirstFirst ... 225625675721722723724725726727728729 ... LastLast
Results 10,861 to 10,875 of 10955
  1. #10861
    teariki's Avatar Private
    Reputation
    1
    Join Date
    Aug 2011
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could someone plz repost Dragonfires event driven ret profile?

    [BETA] PQRotation - an automated ability priority queue.
  2. #10862
    taker's Avatar Member
    Reputation
    10
    Join Date
    Jul 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any help would be most welcome.
    Originally Posted by taker View Post
    Shaman request - Chain heal (id 1064)

    Hi everyone, i have not very much hope but i need your help for making this ability to work (its the best chain heal code i have found so far, its based on GridStatusChainHealTarget) i have clean the code but it remains very complex.

    source: GridStatusChainHealTarget - WoW AddOns - CurseForge

    Code:
    local QuickHealth = LibStub and LibStub("LibQuickHealth-2.0", true) -- don't error if not found
    local MapFiles = LibStub("LibMapData-1.0")
    local GridStatus = Grid:GetModule("GridStatus")
    
    -- upvalues
    local GridRoster = Grid:GetModule("GridRoster")
    local GridFrame = Grid:GetModule("GridFrame")
    local UnitGUID = UnitGUID
    local GetPlayerMapPosition = GetPlayerMapPosition
    local SetMapToCurrentZone = SetMapToCurrentZone
    local GetCurrentMapDungeonLevel = GetCurrentMapDungeonLevel
    local GetMapInfo = GetMapInfo
    local UnitHealth = QuickHealth and QuickHealth.UnitHealth or UnitHealth
    local UnitHealthMax = UnitHealthMax
    local UnitIsVisible = UnitIsVisible
    local UnitIsDeadOrGhost = UnitIsDeadOrGhost
    local UnitIsConnected = UnitIsConnected
    local UnitIsEnemy = UnitIsEnemy
    local UnitIsCharmed = UnitIsCharmed
    local math_min = math.min
    local math_floor = math.floor
    local tinsert = table.insert
    local tsort = table.sort
    
    -- local data
    local update_timer = 0
    local ch_testrange_sq = 12.5 ^ 2
    
    
    
    local settings = {
            enable = true,
            showjumps = true,
            range = true,
            cycle_time = 0.5,
            minjumps = 2,
            maxhealth = 85,
        }
    
    
    local refresh_state = {
        map_width = 0,
        map_height = 0,
        player_x = 0,
        player_y = 0,
        player_data = nil
    }
    
    function GridStatusChainHealTarget:UnitsInRange(x1, y1, x2, y2, test_dist_sq)
        local xx = (x2 - x1) * refresh_state.map_width
        local yy = (y2 - y1) * refresh_state.map_height
        local dist_sq = xx*xx + yy*yy
    
        if dist_sq <= test_dist_sq then
            return true
        end
        return false
    end
    
    function GridStatusChainHealTarget:IsValidTarget(unitid)
        return not UnitIsDeadOrGhost(unitid) and
                UnitIsConnected(unitid) and
                UnitIsVisible(unitid) and
                not (UnitIsCharmed(unitid) and UnitIsEnemy("player", unitid))
    end
    
    function GridStatusChainHealTarget:RefreshMapData()
        -- check player position
        refresh_state.player_x, refresh_state.player_y = GetPlayerMapPosition("player")
        if refresh_state.player_x <= 0 and refresh_state.player_y <= 0 then
            if WorldMapFrame:IsVisible() then
                return false
            end
    
        -- continue only if map supported
        if (refresh_state.player_x > 0 or refresh_state.player_y > 0) then
            local fileName = GetMapInfo()
            local currentLevel = GetCurrentMapDungeonLevel()
            refresh_state.map_width, refresh_state.map_height = MapFiles:MapArea(fileName, currentLevel)
            if refresh_state.map_width ~= 0 and refresh_state.map_height ~= 0 then
                return true
            end
        end
    
        return false
    end
    
    function GridStatusChainHealTarget:RefreshAll()
        local refresh_state = refresh_state
    
        if not self:RefreshMapData() then
            self:ClearChStatus()
        else
            -- cache player data
            refresh_state.player_data = {}
    
            for cguid, unitid in GridRoster:IterateRoster() do
                local cx, cy = GetPlayerMapPosition(unitid)
                if (cx ~= 0 or cy ~= 0) and self:IsValidTarget(unitid) then
                    local health = UnitHealth(unitid)
                    local health_max = UnitHealthMax(unitid)
    
                    local pdata = {
                        guid = cguid,
                        x = cx,
                        y = cy,
                        deficit = health_max - health,
                        percent = health / health_max,
                        inrange = {} -- list of unitids candidates to jump to
                    }
    
                    -- make list of players in range of everyone
                    for tunitid, tdata in pairs(refresh_state.player_data) do
                        -- Only include targets below maxhealth %
                        if unitid ~= tunitid and self:UnitsInRange(pdata.x, pdata.y, tdata.x, tdata.y, ch_testrange_sq) then
                            if tdata.percent < (85 * 0.01) then
                                tinsert(pdata.inrange, tunitid)
                            end
                            if pdata.percent < (85 * 0.01) then
                                tinsert(tdata.inrange, unitid)
                            end
                        end
                    end
    
                    refresh_state.player_data[unitid] = pdata
                end
            end
    
    
            self:RefreshCh()
        end
    end
    
    function GridStatusChainHealTarget:RefreshCh()
        local refresh_state = refresh_state
    
        local ch_best_uid = nil
        local ch_best_pdata = nil
        local ch_best_jumps = 0
    
        -- check all
        for unitid, p1 in pairs(refresh_state.player_data) do
            if not settings.range or GridFrame:UnitInRange(unitid, 40) then
    
                local curbest = nil
                local curbest_unitid = nil
                local curjumps = math_min(#(p1.inrange), 3)
                -- We're only interested in players that will generate at least minjumps number of jumps
                if curjumps >= settings.minjumps then
    
                    for _, tunitid in pairs(p1.inrange) do
                        local p2 = refresh_state.player_data[tunitid]
                        if (not curbest) or (p2.deficit > curbest.deficit) then
                            curbest = p2
                            curbest_unitid = tunitid
                        end
                    end
    
                    -- Check if we found a better target, based on number of jumps and health deficit
                    if curbest and (curjumps >= ch_best_jumps) and ((not ch_best_pdata) or (curbest.deficit > ch_best_pdata.deficit)) then
                        ch_best_pdata = curbest
                        ch_best_uid = curbest_unitid
                        ch_best_jumps = curjumps
                    end
                end
            end
        end
    
        -- Clear and update status
        self:ClearChStatus()
    
        if ch_best_pdata then
            self.core:SendStatusGained(	ch_best_pdata.guid,
            tostring(ch_best_jumps))
            if settings.showjumps then
                for _, tunitid in pairs(ch_best_pdata.inrange) do
                    if tunitid ~= ch_best_uid then
                        local p1 = refresh_state.player_data[tunitid]
                        if mana >= 4404 and moving == 0 then
        -- return true
                            SilentCast(1064,p1)  ??
                end
            end
                end
            end
        end
    end
    end

  3. #10863
    Xelper's Avatar ★ Elder ★
    Reputation
    1024
    Join Date
    Mar 2007
    Posts
    860
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PQR 2.1.4 is now on the updater.

    -Added support for MOP Beta ObjectManager. You can now use PQR_UnitFacing() and PQR_UnitDistance() on beta.

    NOTE: If you ran 2.1.3 in the same session you need to restart WoW.
    Last edited by Xelper; 05-05-2012 at 07:12 PM.

  4. #10864
    zeloch's Avatar Member
    Reputation
    1
    Join Date
    Oct 2011
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey Shauron, can you add to resto druid rotation:
    - turn on/off function key to enabling/disabling decurse (on Zon'ozz HM)
    - on Yor'sahj the Unsleeping (HM) heal mode on purple debuff
    - Spine of Deathwing debuff overheal mode

    Thnx =)

  5. #10865
    safranzi's Avatar Corporal
    Reputation
    11
    Join Date
    Oct 2011
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zeloch View Post
    hey Shauron, can you add to resto druid rotation:
    - turn on/off function key to enabling/disabling decurse (on Zon'ozz HM)
    - on Yor'sahj the Unsleeping (HM) heal mode on purple debuff
    - Spine of Deathwing debuff overheal mode

    Thnx =)
    can you go alone on Toilet ?
    Special Thanks to crystal_tech, sheuron, and Xelper! (PS: need PQR for 64x Client xD)

  6. #10866
    zeloch's Avatar Member
    Reputation
    1
    Join Date
    Oct 2011
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by safranzi View Post
    can you go alone on Toilet ?
    ))))

    function to enabling/disabling decurse then need must have IMHO, every profile update add it manualy - useless work for me

    others - not required, but will be good =)

    PS: i can post my fixes for sheuron's profiles here, if Sheuron interested for it
    Last edited by zeloch; 05-05-2012 at 07:10 PM.

  7. #10867
    jlmccown's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone please help me out....I have searhed and read tons of pages lookin for another resto druid profile...I currently have ashe's.....are there any other on here??

  8. #10868
    xLegendx's Avatar Member
    Reputation
    14
    Join Date
    Sep 2011
    Posts
    827
    Thanks G/R
    3/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jlmccown View Post
    Can someone please help me out....I have searhed and read tons of pages lookin for another resto druid profile...I currently have ashe's.....are there any other on here??
    For a Resto druid?
    Here you go,

    [ Sheuron PQR Profiles Pack ] http://goo.gl/rseZ0

  9. #10869
    bu_ba_911's Avatar Elite User
    Reputation
    552
    Join Date
    May 2006
    Posts
    1,638
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jlmccown View Post
    Can someone please help me out....I have searhed and read tons of pages lookin for another resto druid profile...I currently have ashe's.....are there any other on here??
    Eff has a decent raiding one. Sheurons is the newest and is still supported tho

    Sent from my Xoom using Tapatalk 2
    ^0^Team Nova's PQR NCC ^0^

    If you think someone did something good, take the time to show your appreciation!

  10. #10870
    sheuron's Avatar Knight-Champion
    Reputation
    319
    Join Date
    Aug 2011
    Posts
    504
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Profiles are intended for general use. I recomend you to create a profile copy for specific fights and make custom modifications. All my profile code is shorter and clean as possible to let anyone modify it.
    [ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
    If you like this piece of code feel free to invite me a beer making a donation.
    My paypal account: [email protected]

  11. #10871
    Ralphiuss's Avatar Active Member
    Reputation
    44
    Join Date
    Sep 2011
    Posts
    230
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zeloch View Post
    hey Shauron, can you add to resto druid rotation:
    - turn on/off function key to enabling/disabling decurse (on Zon'ozz HM)
    - on Yor'sahj the Unsleeping (HM) heal mode on purple debuff
    - Spine of Deathwing debuff overheal mode

    Thnx =)
    For most of those fights, I either turn off the profile and do it my self..lol I use this program, but it doesn't mean I don't know how to play the game ;p

  12. #10872
    ptudia's Avatar Private
    Reputation
    3
    Join Date
    Jun 2010
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello everyone, for some reason, Sheuron's profiles have stopped working for me recently; I get occasional LUA errors that cause PQR to stop working until I reload. Other profiles crash PQR entirely. I have the latest version of Sheuron's profiles, as well as the latest version of PQR. They stop working with AND without addons. One of the errors is forbidden function cast spell by id or something like that.

    The profiles worked a few weeks ago; anyone know what could be up?
    Thanks.

  13. #10873
    sheuron's Avatar Knight-Champion
    Reputation
    319
    Join Date
    Aug 2011
    Posts
    504
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ptudia View Post
    Hello everyone, for some reason, Sheuron's profiles have stopped working for me recently; I get occasional LUA errors that cause PQR to stop working until I reload. Other profiles crash PQR entirely. I have the latest version of Sheuron's profiles, as well as the latest version of PQR. They stop working with AND without addons. One of the errors is forbidden function cast spell by id or something like that.

    The profiles worked a few weeks ago; anyone know what could be up?
    Thanks.
    Most common mistake is overwrite old profiles and try to use them without wow restart.

    Another common mistake is to copy new profiles and use old data file.

    About addons, nobody reported to have conflicts with any addon recently, i guess the issue is fixed. Anyone having troubles try to be explocit about your errors and enviroment, report "my pqr stop working" will not help to fix it.
    Last edited by sheuron; 05-06-2012 at 01:49 AM.
    [ Sheuron PQR Profiles Pack ] https://goo.gl/lfAMC
    If you like this piece of code feel free to invite me a beer making a donation.
    My paypal account: [email protected]

  14. #10874
    lawlmoto's Avatar Active Member
    Reputation
    20
    Join Date
    Feb 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by sheuron View Post
    Most common mistake is overwrite old profiles and try to use them without wow restart.

    Another common mistake is to copy new profiles and use old data file.

    About addons, nobody reported to have conflicts with any addon recently, i guess the issue is fixed. Anyone having troubles try to be explocit about your errors and enviroment, report "my pqr stop working" will not help to fix it.
    Getting something like

    BugSack - Development Tools - World of Warcraft Addons - Curse

    And then posting the full log will help troubleshooting as well.

  15. #10875
    tozededao's Avatar Member
    Reputation
    9
    Join Date
    May 2009
    Posts
    166
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    onya_resto2_SHAMAN found in here pqr-svn-profiles - Revision 24: /Shaman/Restoration
    Is making my game turn on sounds when I manually cast a spell, and sometimes even when I dont do anything.

    Any ideas of what it might be?

Similar Threads

  1. [Buying] Planetside 2 Priority Beta Key
    By isit123 in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 07-21-2012, 06:34 AM
  2. [Selling] PLANETSIDE 2 Priority/Early Access Beta Account
    By Kabraxiss in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 07-18-2012, 10:20 AM
  3. [Selling] Planetside 2 Priority/Early access Beta Keys
    By mrsluf in forum General MMO Buy Sell Trade
    Replies: 3
    Last Post: 07-17-2012, 04:45 AM
  4. [Selling] Planetside 2 Priority Access beta key codes
    By fatalefout in forum General MMO Buy Sell Trade
    Replies: 1
    Last Post: 06-26-2012, 04:08 PM
  5. [Bot] Automated dungeon queue / Justice Point leecher(Auto-it source)
    By s_e_a_n_66 in forum World of Warcraft Bots and Programs
    Replies: 36
    Last Post: 01-17-2011, 11:50 AM
All times are GMT -5. The time now is 03:51 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search