PQR: Spam heal while debuff x menu

User Tag List

Results 1 to 2 of 2
  1. #1
    itseme's Avatar Site Donator
    Reputation
    1
    Join Date
    May 2013
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PQR: Spam heal while debuff x

    Hey dudes,

    I'm pretty new at writing pqr scripts. Now I'm stuck..
    I want to write a script that does the following thing:

    "Cast Spell x while debuff is on raid member"


    I tried several things and my closest was:
    if UnitDebuff(PQR_CustomTarget, "InsertSpellNameHere") then return true end

    But it just spams my healing spell if the named debuff is on me but pqr doesnt realize when its on raid members and nothing happens..

    I use PQR_CustomTarget as variable for member count.
    This is my targeting/member count script I'm using:

    Code:
    if UnitExists("target") 
      and UnitIsDead("target") == nil
      and UnitIsFriend("player", "target") 
      and UnitCanCooperate("player","target")
      and UnitHasVehicleUI("target") == false
      then PQR_CustomTarget = "target"
              PQR_CustomTargetHP = 100 * UnitHealth("target") / UnitHealthMax("target")
    else 
    
    PQR_CustomTarget = "player"
    PQR_CustomTargetHP = 100 * UnitHealth("player") / UnitHealthMax("player")
    local group = "party"
    local members = GetNumPartyMembers()
    lowhpmembers = 0
    
    if GetNumRaidMembers() > 0 then
      group = "raid"
      members = GetNumRaidMembers()
    end
    
    for i = 1, members, 1 do
      local member = group..tostring(i)
      local memberhp = 100 * UnitHealth(member) / UnitHealthMax(member)
      if UnitInRange(member) 
      and UnitIsFriend("player", member)
      and UnitIsDeadOrGhost(member) == nil  then
        if UnitGroupRolesAssigned(member) == "TANK" then memberhp = memberhp - 1 end
        if UnitThreatSituation(member) == 3 then memberhp = memberhp - 3 end
        if UnitBuffID(member, 53563) ~= nil then memberhp = memberhp + 7 end
        if memberhp < 85 then lowhpmembers = lowhpmembers +1 end
        if memberhp < PQR_CustomTargetHP then
          PQR_CustomTarget = member
          PQR_CustomTargetHP = memberhp
        end
      end
    end
    
    end
    Last edited by itseme; 11-26-2016 at 07:25 PM.

    PQR: Spam heal while debuff x
  2. #2
    Numba1stunna1's Avatar Active Member
    Reputation
    70
    Join Date
    Dec 2013
    Posts
    182
    Thanks G/R
    1/34
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to be more specific. What is this debuff and how do you want to prioritize healing? Debuff > HP filter?
    Last edited by Numba1stunna1; 12-05-2016 at 04:04 PM.

Similar Threads

  1. Never stop to heal while questing in Sholazar Basin
    By traxis in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 11-28-2008, 01:42 AM
  2. Get rid of afk debuff while afk
    By ds678 in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 02-03-2008, 12:16 AM
  3. Heal your minion while attacking ;) (Warlocks)
    By Kiara in forum WoW EMU Exploits & Bugs
    Replies: 0
    Last Post: 01-08-2008, 07:00 PM
  4. [hunter/warlock] fully heal pet without using mana while out of combat
    By TomPetty in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 05-26-2007, 12:04 PM
All times are GMT -5. The time now is 12:41 PM. 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