Need help with PQR, stuck on writing a profile. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    shrink1991's Avatar Member
    Reputation
    6
    Join Date
    Jul 2009
    Posts
    18
    Thanks G/R
    4/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with PQR, stuck on writing a profile.

    Hey,

    As the title says, I am currently stuck in trying to write my own PQR profile, I don't have a lot of experience with .lua but I understand most of it when I read it.
    Anyway let's get to the problem, I'm writing a profile to automatically use hand of sacrifice my teammate when he has certain debuffs.

    What I've got so far is:

    if UnitExists("party1") then
    if PQR_SpellAvailable(6940)
    and IsSpellInRange("Hand of Sacrifice", "party1") == 1
    and PQR_IsOutOfSight("party1", 0.1) == false then
    then
    if UnitDebuffID("party1", 1499) then
    CastSpellByID(6940, "party1")
    end
    end
    end

    I get it to load in-game, but when my teammate has the the debuff specified in the code above, it does not sacrifice him for some reason.

    Could anyone help me out here?

    Kind regards,

    Need help with PQR, stuck on writing a profile.
  2. #2
    MrHeroe's Avatar Member
    Reputation
    3
    Join Date
    May 2013
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if UnitExists("party1") then -- party1 is a static unit - try to work with a dynamic pointer like a table with all members and iterate through it via for i = 1, #members
    if PQR_SpellAvailable(6940) and IsSpellInRange("Hand of Sacrifice", "party1") == 1 -- try to work with spell ids otherwise it wont work on non english clients
    and PQR_IsOutOfSight("party1", 0.1) == false then
    then -- to much then Will throw errors
    if UnitDebuffID("party1", 1499) then
    CastSpellByID(6940, "party1") -- try "CastSpellByName(GetSpellInfo(6940),party1)" spell ids wont if the the CastSpellByName awaits a string
    end
    end
    end

Similar Threads

  1. [PQR] I need help with my spellreflect
    By jackus in forum WoW Bots Questions & Requests
    Replies: 4
    Last Post: 09-22-2013, 02:53 PM
  2. I need help with a PQR warrior profile
    By jackus in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 09-10-2013, 09:12 AM
  3. [PQR] Need help with Code
    By spawnpl in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 04-23-2013, 12:32 AM
  4. Need help with writing code that is version independent
    By whitea2 in forum GW2 Memory Editing
    Replies: 4
    Last Post: 10-02-2012, 02:23 AM
All times are GMT -5. The time now is 12:46 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