[PQR] Help fine tuning profile! menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Nomfeld's Avatar Member
    Reputation
    1
    Join Date
    Sep 2013
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] Help fine tuning profile!

    Hey again,

    I've been working on some profiles for older versions of the game, mostly using examples from other profiles and piecing things together as I go. There are a couple of things I can't find examples of that I'm hoping someone can help me with.

    First, is there a way to cast an ability based on the type of target? Undead, Demon, etc. Some of the older abilities (Holy Wrath, for example) only work on Undead or Demon targets. I want to add these to my AoE rotation, but only fire if I'm targeting those types of mobs.

    Second, same goes for "boss" level targets. I'd like to be able to add certain abilities to my rotations that only fire if I'm attacking a boss (5man instance or raid).

    Third, is there a simple mouseover decurse function? The examples I've found so far don't seem to work on the game version I play on. All I want is that, if my mouseover target has a certain type of debuff (magic, disease, curse, etc) then it casts. Otherwise it does nothing. This is what I've been trying to get to work, not sure if it's completely wrong -

    Code:
    local i = 1
    local bad = UnitDebuff("PQR_CustomTarget",i)
    local type = select(5, UnitDebuff("PQR_CustomTarget",i))
    
    if bad ~= nil and type == "Magic" or type == "Poison" or type == "Disease" then
    return true
    end
    Thanks in advance for the help!
    Last edited by Nomfeld; 11-05-2013 at 11:38 AM.

    [PQR] Help fine tuning profile!
  2. #2
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UnitCreatureType("target") ~= "Totem"

    You can switch it do demons, or undeads
    API UnitCreatureType - WoWWiki - Your guide to the World of Warcraft


    try to change whatever PQR_CustomTarget is
    UnitDebuff("PQR_CustomTarget",i)
    into
    UnitDebuff(PQR_CustomTarget,i)


    For bosses try out for example
    UnitLevel("target") == -1

    -1 is for raid bosses or everything with SKULL level
    Last edited by G0tha; 11-05-2013 at 08:02 PM.

  3. #3
    Nomfeld's Avatar Member
    Reputation
    1
    Join Date
    Sep 2013
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I have another question. The version of PQR I'm using is from before the
    Code:
    PQR_IsMoving
    option was added. Is there any way to import this function to older versions of PQR, or a way to simulate this function in older scripts?

    I can see in the WoW API that there's a GetUnitSpeed command. Could you, for example, check the unit speed and, if it's 0, cast? That would do pretty much the same thing, I think?

    API GetUnitSpeed - WoWWiki - Your guide to the World of Warcraft

    Can't figure out the correct format to use this in PQR, though.

Similar Threads

  1. [PQR] Kuukuu's Brewmaster Profile Feedback and Suggestions
    By kuukuu in forum WoW Bot Maps And Profiles
    Replies: 553
    Last Post: 01-09-2014, 01:08 PM
  2. [PQR] 3.3.5 Profiles?
    By Zyraxian in forum WoW Bot Maps And Profiles
    Replies: 5
    Last Post: 12-31-2012, 10:19 AM
  3. [Bot] PQR Help!
    By TheEmptyOne in forum World of Warcraft Bots and Programs
    Replies: 1
    Last Post: 06-19-2012, 03:31 PM
  4. [Request] Help with honorbuddy profile (Custombehavior)
    By greenhorn in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 05-12-2012, 01:32 AM
  5. i need help with glider profiles
    By Deadlyslob in forum World of Warcraft General
    Replies: 0
    Last Post: 03-21-2008, 02:33 PM
All times are GMT -5. The time now is 05:58 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