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

User Tag List

Page 219 of 731 FirstFirst ... 119169215216217218219220221222223269319719 ... LastLast
Results 3,271 to 3,285 of 10955
  1. #3271
    cokx's Avatar Banned
    Reputation
    92
    Join Date
    Dec 2008
    Posts
    896
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cause the PQR_IsMoving function is buggy at the Arena i tried a different way.

    GetUnitSpeed("Player") > 0

    this is with zero delay and should also work with targets

    ---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------

    yep tried it, it works with target

    [BETA] PQRotation - an automated ability priority queue.
  2. #3272
    Createaa's Avatar Contributor
    Reputation
    125
    Join Date
    Mar 2010
    Posts
    103
    Thanks G/R
    8/50
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, could someone help me create a code so my arms warrior would use knockdown when a certain spell is active on my enemy? (in this case, inner focus @ priests)

    Big thx

    Createaa

    (i have no knowledge in codes)

  3. #3273
    cokx's Avatar Banned
    Reputation
    92
    Join Date
    Dec 2008
    Posts
    896
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if UnitBuffID("target", 89485) ~= nil
    then return true end


    its easy as this but i dont know if its the right spellid

    ---------- Post added at 07:51 AM ---------- Previous post was at 07:40 AM ----------


    local spell, _, _, _, _, endTime = UnitCastingInfo("target")
    if spell then
    local castingTime = (endTime - GetTime()) / endTime
    end

    if UnitBuffID("target", 89485) ~= nil and castingTime >= 70
    then return true end


    ok try this, it should only interrupt if the target is casting. that would make more sense
    but i dont garantee that it works
    Last edited by cokx; 12-18-2011 at 08:50 AM.

  4. #3274
    Createaa's Avatar Contributor
    Reputation
    125
    Join Date
    Mar 2010
    Posts
    103
    Thanks G/R
    8/50
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cokx View Post
    if UnitBuffID("target", 89485) ~= nil
    then return true end


    its easy as this but i dont know if its the right spellid

    ---------- Post added at 07:51 AM ---------- Previous post was at 07:40 AM ----------

    local spell, _, _, _, _, castSTime = UnitCastingInfo("target")
    if spell then
    local castingTime = castSTime/100
    end

    if UnitBuffID("target", 89485) ~= nil and castingTime >= 70
    then return true end


    ok try this, it should only interrupt if the target is casting. that would make more sense
    but i dont garantee that it works
    THx!

    But if i want to use it anyways, wheter its casting or active?

  5. #3275
    cokx's Avatar Banned
    Reputation
    92
    Join Date
    Dec 2008
    Posts
    896
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just this >
    if UnitBuffID("target", 89485) ~= nil
    then return true end

  6. #3276
    Createaa's Avatar Contributor
    Reputation
    125
    Join Date
    Mar 2010
    Posts
    103
    Thanks G/R
    8/50
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cokx View Post
    just this >
    if UnitBuffID("target", 89485) ~= nil
    then return true end
    Many thanks to you, sir.

  7. #3277
    averykey's Avatar Contributor
    Reputation
    158
    Join Date
    Dec 2011
    Posts
    448
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone help me? I do not know lua. I am sure this would be easy for someone who knows lua and it would be easy to take these skills and improve all the other profiles.

    Trying to make my ret paladin profile do better dps

    For templar
    What i need is if 2 holy power and divine purpose proc? crusader strike or judgement if crusader strike is not up

    exorcism, is dot up on mob? if yes wait; if no exorcism.

    Current templar

    local sDivinePurpose = UnitBuffID("player", 90174)

    if IsSpellInRange("Templar's Verdict", "target") ~= 1 then
    return false
    end


    if UnitPower("player", 9) == 3 or sDivinePurpose ~= nil then
    return true
    end
    Current exorcism

    sAoW = UnitBuffID("player", 5957

    if IsSpellInRange("Exorcism", "target") ~= 1 then
    return false
    end


    if sAoW ~= nil then
    return true
    end
    I want my guardian of ancient kings to pop at the beginning of the fight after 10 secs avenging and zealotry pops

    Current goak

    if IsSpellInRange("Crusader Strike", "target") ~= 1 then
    return false
    end

    return true
    avenging wrath
    if IsSpellInRange("Crusader Strike", "target") ~= 1 then
    return false
    end


    return true
    Current zealotry
    local sDivinePurpose = UnitBuffID("player", 90174)
    local sAW = UnitBuffID("player", 31884)

    if IsSpellInRange("Crusader Strike", "target") ~= 1 then
    return false
    end

    if UnitPower("player", 9) < 2 or sDivinePurpose ~= nil or sAW ~=nil then
    return true
    end
    for hand of freedom i need it to do every man for himself if hand of freedom is down and to work for all spells? i am not sure if there is a lua function for libary access so it knows all the spells.

    current hand of freedom
    local debuff = { 45524, 1715, 3408, 59638, 20164, 25809, 31589, 51585, 50040, 50041, 31126, 31124, 122, 44614, 1604, 45524, 50040, 339, 45334, 58179, 61391, 19306, 19185, 35101, 5116, 61394, 2974, 54644, 50245, 50271, 54706, 4167, 33395, 83302, 55080, 11113, 6136, 120, 116, 44614, 31589, 63529, 20170, 87194, 31125, 3409, 26679, 64695, 63685, 8056, 8034, 18118, 18223, 63311, 23694, 1715, 12323, 39965, 55536, 13099, 29703 }


    for i,v in ipairs(debuff) do
    if UnitDebuffID("player",v) then return true end
    end
    Thank you for the help and reading my post.
    Last edited by averykey; 12-18-2011 at 01:46 PM.

  8. #3278
    paveley's Avatar Member
    Reputation
    4
    Join Date
    May 2010
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bubbas blood tanking profile still work ok?.

  9. #3279
    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)
    Originally Posted by cokx View Post
    Cause the PQR_IsMoving function is buggy at the Arena i tried a different way.

    GetUnitSpeed("Player") > 0

    this is with zero delay and should also work with targets

    ---------- Post added at 07:31 AM ---------- Previous post was at 07:30 AM ----------

    yep tried it, it works with target
    GetUnitSpeed does not return info about whether the unit specified is moving. It simply returns the speed at which they can move. If they can move at 115%, but they are standing still, I believe it will return 115.

    ---------- Post added at 10:57 AM ---------- Previous post was at 10:52 AM ----------

    Originally Posted by fenetic View Post
    sheuron, thanks for the update, however the targeting issue is yet to be resolved.
    for example, in the normal Warmaster Blackthorn fight, the rotation stops when targeting the Twilight Sappers and Gorinoa. There is more but thats all I can think of off the top of my head.
    I believe sheuron uses an ability to determine whether to attack or not, this ability has a list of mobs that do not effect combat. I believe it is called --- offensive spells ---. You need to add any mob that does not effect combat to this list.

    sheuron, an idea: Why not add a UnitAffectingCombat("boss1") - "boss4" check to supplement your additional checks. This would ensure that the bot attacks anything while the player is engaged with a boss. It won't fully resolve the issue, but it is a start.

    EDIT: Maybe you don't even need to check if the boss is in combat, just check if the unit exists. This would make it also detect Gunship which I think is the boss frame until Warmaster jumps down.

    Code:
    local fightingboss = nil
    
    
    for i=1,4 do
        if UnitAffectingCombat("boss"..i) then
            fightingboss = true
        end
    end

    Code:
    if UnitIsDead("target")
    or immunity
    or UnitCanAttack("player","target") == nil
    or (UnitAffectingCombat("target") == nil and noaggromobs == nil and UnitIsPlayer("target") == nil and fightingboss == nil)
    or tonumber(UnitGUID("target"):sub(5,5),16) == 4
    then 
    return true
    end
    Last edited by Xelper; 12-18-2011 at 12:20 PM.

  10. #3280
    cokx's Avatar Banned
    Reputation
    92
    Join Date
    Dec 2008
    Posts
    896
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xelper View Post
    GetUnitSpeed does not return info about whether the unit specified is moving. It simply returns the speed at which they can move. If they can move at 115%, but they are standing still, I believe it will return 115.[COLOR=Silver]
    You are wrong, it does return the actually speed from the unit and not the possible.
    So if you are standing still, it returns 0

    check out this macro:
    /script x=GetUnitSpeed("player") DEFAULT_CHAT_FRAME:AddMessage(format("Speed: %d yds/sec, %.1f kph, %.1f mph, %d%% normal run speed",x,x*3600/1093.6133,x*45/22,x/7*100))


    so GetUnitSpeed/7*100 is the Percentage
    Last edited by cokx; 12-18-2011 at 12:26 PM.

  11. #3281
    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)
    Originally Posted by cokx View Post
    You are wrong, it does return the actually speed from the unit and not the possible.
    So if you are standing still, it returns 0

    check out this macro:
    /script x=GetUnitSpeed("player") DEFAULT_CHAT_FRAME:AddMessage(format("Speed: %d yds/sec, %.1f kph, %.1f mph, %d%% normal run speed",x,x*3600/1093.6133,x*45/22,x/7*100))
    Interesting, I could have sworn I looked into this before. I'll think of how I could use this. Obviously this function doesn't give you the time a given unit has been moving, so I need to figure out the best way to handle this. Do I just keep track of the movement of every known unit? Record if they have been moving at certain intervals (100ms maybe).

    raid1-40, arena1-5, boss1-4, player, target, focus...
    Last edited by Xelper; 12-18-2011 at 12:27 PM.

  12. #3282
    cokx's Avatar Banned
    Reputation
    92
    Join Date
    Dec 2008
    Posts
    896
    Thanks G/R
    0/0
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I havent thought about the time a unit has been walked but it seems to be easy to create.
    Then we could create an intelligent Freedom and snare effects. It sucks that he always apply hamstring even if the target isnt walking, but if the target was walking ~500ms before he should apply it.

  13. #3283
    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)
    Sometimes is better not auto attack those mobs without aggro table.

    By example ragnaros adds (192k hp), i dont use my main dps rotation to kill those, im using a nuke rotation. Since those mobs dont have aggro table the rotation stops and i can manually dps them.

    The list of mobs to dps is working fine, the only incovenient is not working on non english clients. Anyway the check for boss frames is a great idea.

  14. #3284
    jadethread1's Avatar Member
    Reputation
    -14
    Join Date
    Dec 2011
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone got 3.3.5a offsets that can PM them?

  15. #3285
    jackus's Avatar Active Member
    Reputation
    58
    Join Date
    Aug 2006
    Posts
    802
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by sheuron View Post
    Easy fix, this ll dispel everyting but Unstable Affliction

    Code:
    function CheckMagic(unitid)
      local i = 1
      local buff,_,_,count,bufftype,duration = UnitDebuff(unitid, i)
      while buff do
        if bufftype == "Magic" then return true end
        i = i + 1;
        buff,_,_,count,bufftype,duration = UnitDebuff(unitid, i)
      end
    end
    
    
    PQR_CustomTarget = "player"
    local group = "party"
    local members = GetNumPartyMembers()
    
    if GetNumRaidMembers() > 0 then
      group = "raid"
      members = GetNumRaidMembers()
    end
    
    for i = 1, members, 1 do
      local member = group..tostring(i)
      if UnitInRange(member) 
      and UnitIsCharmed(member) == nil
      and UnitIsDeadOrGhost(member) == nil 
      and PQR_IsOutOfSight(member) == false then
        if CheckMagic(member) then PQR_CustomTarget = member end
      end
    end
    
    if CheckMagic(PQR_CustomTarget) and UnitDebuffID(PQR_CustomTarget,30108) == nil then return true end
    how do i add 34914 thats Vampiric Touch.

    I tested it, but it need your self to target the target u want to dispel. Cant you make it so it dispells without me targeting?
    Last edited by jackus; 12-18-2011 at 02:30 PM.

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 11:27 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