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

Shout-Out

User Tag List

Page 122 of 731 FirstFirst ... 2272118119120121122123124125126172222622 ... LastLast
Results 1,816 to 1,830 of 10955
  1. #1816
    onya's Avatar Member
    Reputation
    67
    Join Date
    May 2008
    Posts
    152
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SilentWarrior View Post
    Hello guys.

    I have made a "find clusters, rank them and heal them" type of code, and here it is :

    Code:
    local sqrt = sqrt
    local GetPlayerMapPosition = GetPlayerMapPosition
    local table = table
    local twipe = table.wipe
    local tsort = table.sort
    local groupType = "raid"--"raid" --"party"
    local groupSize = 10
    local minHealthForGrowth = 7000 -- 10k for 5ppl min, deficit 0 means full health
    local growthHealsHowManyTargets = 6
    --
    
    local function determineDistanceBetween(aUnit, anotherUnit)
    
    	local tX1, tY1 = GetPlayerMapPosition(aUnit)
    	if (tX1 + tY1 <= 0) then
    		return nil -- not valid
    	end
    
    	local tX2, tY2 = GetPlayerMapPosition(anotherUnit)
    	if (tX2 + tY2 <= 0) then
    		return nil -- not valid
    	end
    
      local xd = tX2-tX1
    	local yd = tY2-tY1
    	return sqrt(xd*xd + yd*yd)
    end
    
    local function IsInRange(u1,u2)
        local range = determineDistanceBetween(groupType..u1,groupType..u2) -- groupType used
        if range ~= nil and range<30 then
            return true
        end
        return false  
    end
    local function IsInRangeOfPlayer(u1)
        local range = determineDistanceBetween("player",groupType..u1) -- groupType used
        if range ~= nil and range<30 then
            return true
        end
        return false 
    end
    
    local function getDefHealth(unit)
      return UnitHealthMax(groupType..unit) - UnitHealth(groupType..unit) -- groupType used
    end
    
    local function sortDefHealth(aUnit, anotherUnit)
    	return getDefHealth(aUnit) > getDefHealth(anotherUnit)
    end
    
    local function averageClusterDefHealth(unit)
       local playersInRange = {}
       local groupCount = 0
       for x=1, groupSize do   
           if IsInRange(unit,x) then -- count oneself
              table.insert(playersInRange, x)
              groupCount = groupCount + 1
           end
       end     
       tsort(playersInRange, sortDefHealth)
       local sumHP = 0
       groupCount = math.min(growthHealsHowManyTargets, groupCount) -- possible targets
       for x=1, groupCount do 
          sumHP = sumHP + getDefHealth(playersInRange[x])
       end
       return sumHP/groupCount
    end
    
    local function findGoodTarget()
       local goodTarget = nil
       local maxDefHealth = minHealthForGrowth -- 10k for 5ppl min, deficit 0 means full health
       local tempDef = 0 -- temporary var to help performance
       for player=1, groupSize do   
        if IsInRangeOfPlayer(player) then
            tempDef=averageClusterDefHealth(player)         
            if tempDef > maxDefHealth then
               goodTarget = player
               maxDefHealth = tempDef
            end
        end    
       end --for
       return goodTarget
    end
    
    local start, duration, enabled = GetSpellCooldown("Wild Growth")
    if (enabled ~= nil and enabled == 0) then
        return false
    elseif ( (start ~= nil and start > 0) and ( duration ~= nil and duration > 0)) then
        return false   
    else
       local target = findGoodTarget()
       if target ~=nil then
          print ("Casting Wild Growth on "..UnitName(groupType..target))
          CastSpellByID(48438,groupType..target) 
       end
    end
    
    
    
    return false

    Right now, I noticed it likes to cast on the first member of raid or party alot, maybe because he is always the lowest (beeing tank and all), hopefully it isnt a bug
    I'd love to see this working, would be great for chain heal. I don't think you're accounting for the fact that GetPlayerMapPosition returns a value from 0 to 1 and is based on the current zone map, seems you're assuming it returns a value in yards?

    [BETA] PQRotation - an automated ability priority queue.
  2. #1817
    Ninjaderp's Avatar Banned
    Reputation
    199
    Join Date
    Dec 2010
    Posts
    1,847
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Xelper, is there any way you could make PQR work on PTR-servers? I can only edit when I start it while Im using the public test realm.

  3. #1818
    winkle21's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In shueron holy profile, if the warrior has commanding shout it just keeps spamming Fort. Anyone else having this problem?

  4. #1819
    ticklets's Avatar Member
    Reputation
    51
    Join Date
    Jun 2009
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey buba, me again :P

    for your holy PVE, i can shift-focus a target...but it never seems to cast judgement on them.

    Anyone else have this similar issue?

  5. #1820
    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 winkle21 View Post
    In shueron holy profile, if the warrior has commanding shout it just keeps spamming Fort. Anyone else having this problem?
    if thats the case, then it's because he only runs a check against fort being up, and not if theres already a buff up that would cover his fort buff as well

    in his autotargetting ability he runs a check against if fort is up on a target, if not then he'll cast fort

    if commanding shout is overwriting fort then of course fort wont be up

    ---------- Post added at 03:34 PM ---------- Previous post was at 03:33 PM ----------

    Originally Posted by ticklets View Post
    Hey buba, me again :P

    for your holy PVE, i can shift-focus a target...but it never seems to cast judgement on them.

    Anyone else have this similar issue?
    i wrote it so u have to be in combat for it to cast.... imagine pulling a boss just because u focused him i just healed an entire za/zg and it was working how i wrote it..... also been practicing beacon fix in bg's
    ^0^Team Nova's PQR NCC ^0^

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

  6. #1821
    ticklets's Avatar Member
    Reputation
    51
    Join Date
    Jun 2009
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bu_ba_911 View Post
    if thats the case, then it's because he only runs a check against fort being up, and not if theres already a buff up that would cover his fort buff as well

    in his autotargetting ability he runs a check against if fort is up on a target, if not then he'll cast fort

    if commanding shout is overwriting fort then of course fort wont be up

    ---------- Post added at 03:34 PM ---------- Previous post was at 03:33 PM ----------



    i wrote it so u have to be in combat for it to cast.... imagine pulling a boss just because u focused him i just healed an entire za/zg and it was working how i wrote it..... also been practicing beacon fix in bg's
    Man I must be on crack then because I've been trying it for so long...

    It does focus the target...it just never cast's judgement

  7. #1822
    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 ticklets View Post
    Man I must be on crack then because I've been trying it for so long...

    It does focus the target...it just never cast's judgement
    lol well as soon as i find out why lua errors blow up in my face due to the beacon of light ability, im going to release the latest version. maybe that will be nicer to u

    *edit*
    i hate coding :'(
    i find error after error as im testing this beacon code more indepth lol

    without it my code runs perfectly fine, with it, it all goes to hell
    WHYYYYY! might just flat out remove auto-cast/check beacon until i figure out another way to do it, to many bugs with the current way..... works perfectly if u never target the person with it and then target some1 else..... that's where it breaks the most.... or if you are targetting the person who currently has it and then use the mouseover cast on some1 else.... or or or..... yea targetting system is breaking it and i can't figure out how to fix that yet lol
    Last edited by bu_ba_911; 09-30-2011 at 06:27 PM.
    ^0^Team Nova's PQR NCC ^0^

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

  8. #1823
    Ninjaderp's Avatar Banned
    Reputation
    199
    Join Date
    Dec 2010
    Posts
    1,847
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any of you guys playing the PTR-version? I would love to be able to use PQR with it, as you can try out premade characters with full fl-gear with gems & enchants ^^

  9. #1824
    Untouchablekill's Avatar Member
    Reputation
    1
    Join Date
    Sep 2011
    Posts
    46
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone make code for hunters where you press say right control or something and it will throw out a trap?

  10. #1825
    Unasrage's Avatar Member
    Reputation
    6
    Join Date
    Oct 2009
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Untouchablekill View Post
    Can someone make code for hunters where you press say right control or something and it will throw out a trap?
    m8 just donwload the latest sheuron pack a couple of pages ago and read the readme file in the .rar file ... all your anwser will be there

    ---------------edit--------------------

    http://www.ownedcore.com/forums/worl...ml#post2132079 ([BETA] PQRotation - an automated ability priority queue.) here you have the link m8

  11. #1826
    Untouchablekill's Avatar Member
    Reputation
    1
    Join Date
    Sep 2011
    Posts
    46
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using the survival one and I just need the immolation trap and ice/frost trap one.

  12. #1827
    Unasrage's Avatar Member
    Reputation
    6
    Join Date
    Oct 2009
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok them just add this new skills :


    Explosive Trap -- Rigth Alt Pressed

    Code:
    if IsRightAltKeyDown() and tostring(select(2,GetSpellCooldown(82939))) == "0" then
      if GetSpellCooldown(77769) == 0 then CastSpellByName(tostring(GetSpellInfo(77769))) end
      if IsUsableSpell(82939) then CastSpellByName(tostring(GetSpellInfo(82939))) end
      if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
      return true
    end
    Freezing Trap -- Rigth Control Pressed

    Code:
    if IsRightControlKeyDown() and tostring(select(2,GetSpellCooldown(60192))) == "0" then
      if GetSpellCooldown(77769) == 0 then CastSpellByName(tostring(GetSpellInfo(77769))) end
      if IsUsableSpell(60192) then CastSpellByName(tostring(GetSpellInfo(60192))) end
      if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
      return true
    end
    Ice Trap -- Rigth Shift Pressed

    Code:
    if IsRightShiftKeyDown() and tostring(select(2,GetSpellCooldown(82941))) == "0" and GetCurrentKeyBoardFocus() == nil then
      if GetSpellCooldown(77769) == 0 then CastSpellByName(tostring(GetSpellInfo(77769))) end
      if IsUsableSpell(82941) then CastSpellByName(tostring(GetSpellInfo(82941))) end
      if SpellIsTargeting() then CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
      return true
    end
    This is the code from Sheuron skills after making the skills remenber to add them to rotacion just add the 3 skill on top all all.

    all the credit of this code is from Sheuron i'm just posting it for your easy access

    Last edited by Unasrage; 09-30-2011 at 06:37 PM.

  13. #1828
    Kinky's Avatar Banned CoreCoins Purchaser
    Reputation
    481
    Join Date
    Nov 2008
    Posts
    500
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Playing around with the new version of PQR right now and fixing the Discipline/Shadow Priest profiles (and testing them before I upload them), keep up the awesome work Xelper!

  14. #1829
    SilentWarrior's Avatar Member
    Reputation
    7
    Join Date
    Sep 2008
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by onya View Post
    I'd love to see this working, would be great for chain heal. I don't think you're accounting for the fact that GetPlayerMapPosition returns a value from 0 to 1 and is based on the current zone map, seems you're assuming it returns a value in yards?
    Meh! Have to check that out.

    Any ideas on how to solve this? Prob gona check out Vuhdo's code, i think thats where i got the original idea for doing it from, maybe even the code works too.
    Ex-Ppather dev. Creator of BigSister, a multi-session relogger/restarter and manager, BigSeries CCs for WowRobot and Yoink's unstuck thingy (made sustainable fly gathering possible, yay!).
    Creator of Destructu, a AAA quality 3D RTS game (similar to Company of Heroes).

    If you think my work as useful, please consider the rep button.

  15. #1830
    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 winkle21 View Post
    In shueron holy profile, if the warrior has commanding shout it just keeps spamming Fort. Anyone else having this problem?
    Ty, ll fix that on next profile released.

    Tested rotation today on a full firelands run, worked flawless. The only fight with Out of sight issue is first boss and the new PQR feature worked fine.

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 06:31 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