pqr code for de-curse menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    tinyblaze's Avatar Contributor CoreCoins Purchaser
    Reputation
    171
    Join Date
    May 2012
    Posts
    573
    Thanks G/R
    0/0
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pqr code for de-curse

    what i am trying to do is make an ability in the pqr rotation that will check the whole raid and prioritize the people in range and de-curse them (i am a mage) from the debuff on horridon heroic if anyone can guide me to somewhere or paste a similiar ability i would be grateful

    pqr code for de-curse
  2. #2
    Nerder's Avatar Contributor
    Reputation
    117
    Join Date
    Aug 2012
    Posts
    263
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tinyblaze View Post
    what i am trying to do is make an ability in the pqr rotation that will check the whole raid and prioritize the people in range and de-curse them (i am a mage) from the debuff on horridon heroic if anyone can guide me to somewhere or paste a similiar ability i would be grateful
    Code:
    if IsInRaid() then 
        group = "raid"
    elseif IsInGroup() then 
        group = "party" 
    end
    
    for i=1, GetNumGroupMembers() do
         if UnitDebuffID(group..i, SpellID of Curse) then
              if IsSpellInRange(SpellID of De-Curse, group..i) == 1 then
                     CastSpellByName(GetSpellInfo(Name or SpellID of De-Curse), group..i)
                     PQR_CustomTarget = group..i
              end
        end
    end
    I dont have the spell IDs or names of what you need, but just plug the ids in where it is underlined, and make sure on the ability the target is "custom"
    Last edited by Nerder; 04-14-2013 at 06:59 AM.

  3. #3
    tinyblaze's Avatar Contributor CoreCoins Purchaser
    Reputation
    171
    Join Date
    May 2012
    Posts
    573
    Thanks G/R
    0/0
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot, will report asap if i get it to work

  4. #4
    808's Avatar Member
    Reputation
    4
    Join Date
    Jun 2012
    Posts
    39
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would you tweak this code to make it use detox for any poison or disease debuff for any situation?

    Thanks,
    808

  5. #5
    tinyblaze's Avatar Contributor CoreCoins Purchaser
    Reputation
    171
    Join Date
    May 2012
    Posts
    573
    Thanks G/R
    0/0
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tested it in a raid with a lock dueling that does curse of elements on me, and doesn't work, i have set the spellid correctly and the "custom" at the ability

  6. #6
    Nerder's Avatar Contributor
    Reputation
    117
    Join Date
    Aug 2012
    Posts
    263
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So everyone knows, I did some testing after tiny told me the issue, and came up with this for ti to work...

    Code:
    if IsInRaid() then 
        group = "raid"
    elseif IsInGroup() then 
        group = "party" 
    end
    
    for i=1, GetNumGroupMembers() do
         if UnitDebuffID(group..i, 80354) ~= nil then --80354 is the temporal displacement debuff, just to get a debuff on and test quickly. Make sure its whatever harmful one you need dispelled
              PQR_CustomTarget = group..i
              if PQR_UnitDistance("player", PQR_CustomTarget) <= 40 then
                     CastSpellByName(GetSpellInfo(475), PQR_CustomTarget) --475 is the mage dispell, so change that to what you need
              end
        end
    end

  7. #7
    Nerder's Avatar Contributor
    Reputation
    117
    Join Date
    Aug 2012
    Posts
    263
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 808 View Post
    How would you tweak this code to make it use detox for any poison or disease debuff for any situation?

    Thanks,
    808
    I'm actually very interested in knowing if it works also, I just threw this together. You should test and let me know
    Code:
    if IsInRaid() then
        group = "raid"
    elseif IsInGroup() then
        group = "party"
    end
    
    for i = 1, GetNumGroupMembers() do
        for d = 1, 40 do
            if ( select(5, UnitDebuff(group..i, d)) == "Poison"
             or select(5, UnitDebuff(group..i, d)) == "Disease" ) then
                PQR_CustomTarget = group..i
                if PQR_UnitDistance("player", PQR_CustomTarget) <= 40 then
                    CastSpellByName(GetSpellInfo("Detox"), PQR_CustomTarget)
                end
            end
        end
    end

  8. #8
    tinyblaze's Avatar Contributor CoreCoins Purchaser
    Reputation
    171
    Join Date
    May 2012
    Posts
    573
    Thanks G/R
    0/0
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot and best of luck

  9. #9
    808's Avatar Member
    Reputation
    4
    Join Date
    Jun 2012
    Posts
    39
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nerder View Post
    I'm actually very interested in knowing if it works also, I just threw this together. You should test and let me know
    Code:
    if IsInRaid() then
        group = "raid"
    elseif IsInGroup() then
        group = "party"
    end
    
    for i = 1, GetNumGroupMembers() do
        for d = 1, 40 do
            if ( select(5, UnitDebuff(group..i, d)) == "Poison"
             or select(5, UnitDebuff(group..i, d)) == "Disease" ) then
                PQR_CustomTarget = group..i
                if PQR_UnitDistance("player", PQR_CustomTarget) <= 40 then
                    CastSpellByName(GetSpellInfo("Detox"), PQR_CustomTarget)
                end
            end
        end
    end
    This worked for me. thanks!
    808

Similar Threads

  1. [PQR] Looking for someone to code a profile for me. 3.3.5a Will pay.
    By JomGod in forum WoW Bot Maps And Profiles
    Replies: 0
    Last Post: 08-27-2013, 02:36 PM
  2. [PQR] Coding guide for Profiles
    By Yagamilight in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 11-21-2012, 06:04 AM
  3. Can someone give me the Codes for this weapon?
    By pepsi in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 09-14-2007, 07:51 PM
  4. Need CE wall walking code for 2.0.3
    By mwo in forum World of Warcraft General
    Replies: 3
    Last Post: 01-11-2007, 11:34 PM
  5. Codes for CE Mountain climb and No damage fall =D
    By FoRbIdDeN in forum World of Warcraft Bots and Programs
    Replies: 23
    Last Post: 10-28-2006, 09:21 AM
All times are GMT -5. The time now is 02:23 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