Help with code please? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Zyraxian's Avatar Sergeant
    Reputation
    3
    Join Date
    Sep 2012
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with code please?

    Hi guys,

    I found a PQR PvP Ret profile that I like quite a lot (Dominium Ret PvP - http://dl.dropbox.com/u/46903116/Domi%20premop%20v4.rar) - credit to the author. It was made for Pre-MOP, but it still works perfectly so far as I can tell. I was hoping someone could help me edit one small thing in this area of code -
    PHP Code:
    local sh select(4UnitAura("player""Selfless Healer"))

    local myHp 100 UnitHealth("player") / UnitHealthMax("player")
    local tarHp 100 UnitHealth("target") / UnitHealthMax("target")
    local p1Hp 100 UnitHealth("party1") / UnitHealthMax("party1")
    local p2Hp 100 UnitHealth("party2") / UnitHealthMax("party2")
    local p3Hp 100 UnitHealth("party3") / UnitHealthMax("party3")
    local p4Hp 100 UnitHealth("party4") / UnitHealthMax("party4")
    local p5Hp 100 UnitHealth("party5") / UnitHealthMax("party5")



    if 
    myHp 60 and sh == 3 then
        CastSpellByName
    (GetSpellInfo(19750), "player")
    end

    if sh == and p1Hp 65 and PQR_IsOutOfSight("party1") == false and IsSpellInRange("Word of Glory""party1") == and not UnitIsEnemy("party1""player"then
    CastSpellByName
    (GetSpellInfo(19750), "party1")
    end

    if sh == and p2Hp 65 and PQR_IsOutOfSight("party2") == false and IsSpellInRange("Word of Glory""party2") == and not UnitIsEnemy("party2""player"then
    CastSpellByName
    (GetSpellInfo(19750), "party2")
    end

    if sh == and p3Hp 65 and PQR_IsOutOfSight("party3") == false and IsSpellInRange("Word of Glory""party3") == and not UnitIsEnemy("party3""player"then
    CastSpellByName
    (GetSpellInfo(19750), "party3")
    end

    if sh == and p4Hp 65 and PQR_IsOutOfSight("party4") == false and IsSpellInRange("Word of Glory""party4") == and not UnitIsEnemy("party4""player"then
    CastSpellByName
    (GetSpellInfo(19750), "party4")
    end

    if sh == and p5Hp 65 and PQR_IsOutOfSight("party5") == false and IsSpellInRange("Word of Glory""party5") == and not UnitIsEnemy("party5""player"then
    CastSpellByName
    (GetSpellInfo(19750), "party5")
    end 
    This is his way of handling Selfless Healer stacks. It works perfectly, but I'm wondering is, is there a way to change this code so you can target a specific player name rather than "Party1", etc. Reason being, you don't always get put in the same party slots when you join BG's or raids. I'd rather be able to target the exact character names for my group.

    Thanks

    Help with code please?
  2. #2
    Zyraxian's Avatar Sergeant
    Reputation
    3
    Join Date
    Sep 2012
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump!

    No suggestions? Surely there's a way to target a specific character name instead of party slot?

Similar Threads

  1. Need help with code on dk rune check for scourge strike please :)
    By godlike86 in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 04-30-2013, 05:49 AM
  2. Somebody help with donations please
    By Legola in forum Community Chat
    Replies: 5
    Last Post: 03-27-2007, 08:03 PM
  3. Help with sig please
    By staggy in forum Community Chat
    Replies: 0
    Last Post: 03-01-2007, 03:11 AM
  4. Help with fraps please!!
    By jimmy2222 in forum World of Warcraft General
    Replies: 1
    Last Post: 01-02-2007, 10:30 AM
  5. Help with editing please!
    By Rombot in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 11-13-2006, 09:48 AM
All times are GMT -5. The time now is 01:44 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