PQR - Rotation Bot menu

Shout-Out

User Tag List

Page 249 of 779 FirstFirst ... 149199245246247248249250251252253299349749 ... LastLast
Results 3,721 to 3,735 of 11681
  1. #3721
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by averykey View Post
    Have two questions, How can I get the spec and class of the player? and can we get what rotation the user is currently using in pqr?

    Any help is greatly appreciated, rep++.
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value

    Class = UnitClass("player")

    PQR - Rotation Bot
  2. #3722
    kclux's Avatar Active Member
    Reputation
    16
    Join Date
    Jun 2011
    Posts
    199
    Thanks G/R
    2/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way that I can run a macro AFTER a spell was cast? PQR offers the macro before but how can I do something after, like say ability was used and then /use potion . Thanks.

    Forget about this, I tried to approach something the wrong way.
    Last edited by kclux; 09-08-2012 at 09:12 AM.

  3. #3723
    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 kclux View Post
    Is there a way that I can run a macro AFTER a spell was cast? PQR offers the macro before but how can I do something after, like say ability was used and then /use potion . Thanks.
    Can you say exactly what you are trying to do? What spell?

  4. #3724
    kclux's Avatar Active Member
    Reputation
    16
    Join Date
    Jun 2011
    Posts
    199
    Thanks G/R
    2/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lawlmoto View Post
    Can you say exactly what you are trying to do? What spell?
    Nothing thanks, I had a stupid thought Fixed already.

  5. #3725
    11452939's Avatar Member
    Reputation
    1
    Join Date
    Sep 2012
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can someone write. Where can I get a new client version Offsets 16048???

  6. #3726
    yourson's Avatar Member
    Reputation
    4
    Join Date
    Feb 2012
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 11452939 View Post
    Can someone write. Where can I get a new client version Offsets 16048???
    They are not yet up. Patience.

  7. #3727
    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)
    Anyone know what's wrong with this?

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
    	if UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    				end
    			end
    		end
    	end
    end
    thanks for your help LazyLazy

    Originally Posted by LazyLazy View Post
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value

    Class = UnitClass("player")
    Can you show me an example of the code in use?

    Class == "PALADIN"?

    I don't understand how to return the second value, do I just need to print it out in WoW? and if so how?
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value
    My Svn - https://subversion.assembla.com/svn/averykeys-svn/

  8. #3728
    Bgreen12's Avatar Banned
    Reputation
    32
    Join Date
    Aug 2012
    Posts
    128
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by averykey View Post
    Anyone know what's wrong with this?

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
    	if UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    				end
    			end
    		end
    	end
    end
    thanks for your help LazyLazy



    Can you show me an example of the code in use?

    Class == "PALADIN"?

    I don't understand how to return the second value, do I just need to print it out in WoW? and if so how?
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value


    Your hasSeal is always returning true regardless of if you have the spells or not..

    Should be for _,v in ipairs(Spells) do if UnitBuffID("player",v) then hasSeal = true end end

    It's like you defined the v variable as whatever the spells are and you didn't use it at all lol..

    I didn't really look at the rest of your coding but let me know if this fixes it


    Edit: idk if spells is a buff or debuffs that you're checking for. I didnt bother to look up the spellids but this should point you in the right direction


    Editedit: you can clean up some of your loops if you use "and" in your if loops.

    Like so:

    if hasSeal
    and UnitExists("focus")
    and (UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0)

    then
    CastSpellByName(GetSpellInfo(20271), "focus")

    end


    if hasSeal
    and UnitExists("target")
    and (UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0)

    then
    CastSpellByName(GetSpellInfo(20271), "target")

    end
    Last edited by Bgreen12; 09-08-2012 at 12:19 PM.

  9. #3729
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by averykey View Post
    Anyone know what's wrong with this?

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
    	if UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    				end
    			end
    		end
    	end
    end
    thanks for your help LazyLazy



    Can you show me an example of the code in use?

    Class == "PALADIN"?

    I don't understand how to return the second value, do I just need to print it out in WoW? and if so how?
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value
    if UnitClass("player") == "PALADIN" then
    -- do something
    end

    As for the GetSpecializationInfo(GetSpecialization()), you can do

    if (select(2, GetSpecializationInfo(GetSpecialization()))) == "Frost" then
    -- Do something
    end

    "Frost" for a Frost DK, if you want to know what to put in == "Frost" just do this in game
    /dump (select(2, GetSpecializationInfo(GetSpecialization())))

  10. #3730
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [QUOTE=averykey;2488341]Anyone know what's wrong with this?

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
        if UnitExists("focus") then
            if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
                CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
        if UnitExists("target") then
            if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
                    CastSpellByName(GetSpellInfo(20271), "target")    
                    end
                end
            end
        end
    end
    As Paladin's Seals are you moved to the Stancebar, they are accesible with GetShapeshiftForm and CastShapeshiftForm, so with that in mind, your code could be simplified to

    -- DELETE THE 3 LINES BELOW ---
    local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    -- DELETE THE 3 LINES ABOVE ---
    local CS = GetSpellInfo(35395)
    if GetShapeshiftForm("player") ~= 0 and UnitPower("player", 9) < 5 then
    if UnitExists("focus") or IsSpellInRange(CS, "focus") == 0 then
    CastSpellByName(GetSpellInfo(20271), "focus")
    elseif UnitExists("target") or IsSpellInRange(CS, "target") == 0 then
    CastSpellByName(GetSpellInfo(20271), "target")
    end
    end

    I don't understand why you do this tho
    if UnitExists("focus") or IsSpellInRange(CS, "focus") == 0 then
    CastSpellByName(GetSpellInfo(20271), "focus")

    You're saying: If i have a focus or i'm to far away to cast Crusader Strike on focus, then cast Crusader Strike on focus
    Don't you want to cast on target if you focus exists and is to far away?

  11. #3731
    firepong's Avatar Elite User
    Reputation
    384
    Join Date
    Jan 2008
    Posts
    955
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by averykey View Post
    Anyone know what's wrong with this?

    Code:
    local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
    	if UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    				end
    			end
    		end
    	end
    end
    thanks for your help LazyLazy



    Can you show me an example of the code in use?

    Class == "PALADIN"?

    I don't understand how to return the second value, do I just need to print it out in WoW? and if so how?
    Spec = GetSpecializationInfo(GetSpecialization())
    It's the second return value
    Originally Posted by Bgreen12 View Post
    Your hasSeal is always returning true regardless of if you have the spells or not..

    Should be for _,v in ipairs(Spells) do if UnitBuffID("player",v) then hasSeal = true end end

    It's like you defined the v variable as whatever the spells are and you didn't use it at all lol..

    I didn't really look at the rest of your coding but let me know if this fixes it


    Edit: idk if spells is a buff or debuffs that you're checking for. I didnt bother to look up the spellids but this should point you in the right direction


    Editedit: you can clean up some of your loops if you use "and" in your if loops.

    Like so:

    if hasSeal
    and UnitExists("focus")
    and (UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0)

    then
    CastSpellByName(GetSpellInfo(20271), "focus")

    end


    if hasSeal
    and UnitExists("target")
    and (UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0)

    then
    CastSpellByName(GetSpellInfo(20271), "target")

    end
    Originally Posted by LazyLazy View Post
    if UnitClass("player") == "PALADIN" then
    -- do something
    end

    As for the GetSpecializationInfo(GetSpecialization()), you can do

    if (select(2, GetSpecializationInfo(GetSpecialization()))) == "Frost" then
    -- Do something
    end

    "Frost" for a Frost DK, if you want to know what to put in == "Frost" just do this in game
    /dump (select(2, GetSpecializationInfo(GetSpecialization())))
    All of this seems to look right. What I don't get though Avery is why you do your "end" that way. With it going that way, your leaving loops open until it hits that last end, in turn using up memory. The bigger the rotation you get with the end's this way, the more memory the rotation will use. For me, I would do it this way:

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    
    for i=1,#Spells do
    	if UnitBuffID("Player",Spells[i]) then
    		hasSeal = true
    	end
    end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    		end
    	elseif UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    		end
    	end
    end
    This way, it closes all those loose ends. Again, as green stated, don't know if its a Buff or Debuff, so change to your content up there (just added in what bgreen already stated. But on that subject, for the life of me, I don't get why people still use ipairs. It's also a big waste of memory.). I changed it to the way I would do it. No reason in having a elseif for hasSeal when both of the if's were checking to see if it was true anyways.

  12. #3732
    firepong's Avatar Elite User
    Reputation
    384
    Join Date
    Jan 2008
    Posts
    955
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by LazyLazy View Post
    Originally Posted by averykey View Post
    Anyone know what's wrong with this?

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
        if UnitExists("focus") then
            if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
                CastSpellByName(GetSpellInfo(20271), "focus")
    elseif hasSeal then
        if UnitExists("target") then
            if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
                    CastSpellByName(GetSpellInfo(20271), "target")    
                    end
                end
            end
        end
    end
    As Paladin's Seals are you moved to the Stancebar, they are accesible with GetShapeshiftForm and CastShapeshiftForm, so with that in mind, your code could be simplified to

    -- DELETE THE 3 LINES BELOW ---
    local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    for _,v in ipairs(Spells) do hasSeal = true end
    -- DELETE THE 3 LINES ABOVE ---
    local CS = GetSpellInfo(35395)
    if GetShapeshiftForm("player") ~= 0 and UnitPower("player", 9) < 5 then
    if UnitExists("focus") or IsSpellInRange(CS, "focus") == 0 then
    CastSpellByName(GetSpellInfo(20271), "focus")
    elseif UnitExists("target") or IsSpellInRange(CS, "target") == 0 then
    CastSpellByName(GetSpellInfo(20271), "target")
    end
    end

    I don't understand why you do this tho
    if UnitExists("focus") or IsSpellInRange(CS, "focus") == 0 then
    CastSpellByName(GetSpellInfo(20271), "focus")

    You're saying: If i have a focus or i'm to far away to cast Crusader Strike on focus, then cast Crusader Strike on focus
    Don't you want to cast on target if you focus exists and is to far away?
    It's the PLAYER'S Focus. If the player has a enemy set to his Focus, it will cast Judgement on that target instead, to keep the CS debuff up on that target for added DPS. This has been done for a while and in multi-target situation's, it's shown about 500-1k DPS increase depending on circumstances.
    Last edited by firepong; 09-08-2012 at 02:49 PM.

  13. #3733
    Bgreen12's Avatar Banned
    Reputation
    32
    Join Date
    Aug 2012
    Posts
    128
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by firepong View Post
    All of this seems to look right. What I don't get though Avery is why you do your "end" that way. With it going that way, your leaving loops open until it hits that last end, in turn using up memory. The bigger the rotation you get with the end's this way, the more memory the rotation will use. For me, I would do it this way:

    Code:
     local hasSeal = false
    local Spells = { 31801, 20154, 20164, 20165 }
    
    for i=1,#Spells do
    	if UnitBuffID("Player",Spells[i]) then
    		hasSeal = true
    	end
    end
    
    local CS = GetSpellInfo(35395)
    
    if hasSeal then
    	if UnitExists("focus") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "focus") == 0 then
    			CastSpellByName(GetSpellInfo(20271), "focus")
    		end
    	elseif UnitExists("target") then
    		if UnitPower("player", 9) < 5 or IsSpellInRange(CS, "target") == 0 then
    				CastSpellByName(GetSpellInfo(20271), "target")	
    		end
    	end
    end
    This way, it closes all those loose ends. Again, as green stated, don't know if its a Buff or Debuff, so change to your content up there (just added in what bgreen already stated. But on that subject, for the life of me, I don't get why people still use ipairs. It's also a big waste of memory.). I changed it to the way I would do it. No reason in having a elseif for hasSeal when both of the if's were checking to see if it was true anyways.
    Nice tip on not using ipairs. I don't got much coding exp so ill be changing all my ipairs to the way you have them.

  14. #3734
    PIPOL13's Avatar Banned
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    firepong
    forums write that into the rotation can be "thrashing" plug and DPS goes up

  15. #3735
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [QUOTE=firepong;2488463]
    Originally Posted by LazyLazy View Post

    It's the PLAYER'S Focus. If the player has a enemy set to his Focus, it will cast Judgement on that target instead, to keep the CS debuff up on that target for added DPS. This has been done for a while and in multi-target situation's, it's shown about 500-1k DPS increase depending on circumstances.
    You're right ofc, i'm jusr used to working with SpellID's like that: CastSpellByName(GetSpellInfo(20271)
    I should ofc have checked what 20271 was ^^

Similar Threads

  1. [Bot] PQR PE Next Steps / Future of Rotation Botting
    By Chevrolet1 in forum World of Warcraft Bots and Programs
    Replies: 120
    Last Post: 10-21-2014, 11:47 AM
  2. [Bot] PQR - Rotation Bot
    By Xelper in forum World of Warcraft Bots and Programs
    Replies: 1738
    Last Post: 10-15-2014, 11:00 AM
  3. [Selling] 3 Lifetime Session Keys For Sale, Great for the PQR user looking for a rotation bot
    By cukiemunster in forum World of Warcraft Buy Sell Trade
    Replies: 13
    Last Post: 03-11-2014, 07:18 AM
  4. rotation bot leveling (PQR)
    By classdog in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 09-17-2013, 06:13 PM
  5. [HELP] PQR Rotation Bot Profile Making
    By Missu in forum Programming
    Replies: 0
    Last Post: 10-22-2012, 06:27 AM
All times are GMT -5. The time now is 04:32 AM. 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