[PQR] I need help with my spellreflect menu

User Tag List

Results 1 to 5 of 5
  1. #1
    jackus's Avatar Active Member
    Reputation
    58
    Join Date
    Aug 2006
    Posts
    802
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] I need help with my spellreflect

    Code:
    --SpellReflect--
    for i=1, #custTars do
    if (autoSpellReflect == true
    and spellReflect(custTars[i]) == true)
    or reflectKey == 1
    then
        sRcheck = true
        bgreen_Notify("Attempting to reflect "..UnitCastingInfo(custTars[i]).." from "..UnitName(custTars[i]))
    end
    end
    if sRcheck == true
    and cdRemains(23920) == 0
    and UnitBuffID("player",23920) == nil
    then
        if UseEquipmentSet("2HSet") ~= nil
            then
            CastSpellByName(GetSpellInfo(23920),nil)
    
            return true
        end
    end
    how do I tell PQR if spellid 23920 (Spellreflect) is on CD then use Spellid 114028 (mass spellreflect)

    [PQR] I need help with my spellreflect
  2. #2
    Mavmins's Avatar Contributor
    Reputation
    165
    Join Date
    Oct 2012
    Posts
    606
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if PQR_SpellAvailable(23920) == false and PQR_SpellAvailable(114028) == true then
    CastSpellByName(GetSpellInfo(114028),nil)
    end

  3. #3
    jackus's Avatar Active Member
    Reputation
    58
    Join Date
    Aug 2006
    Posts
    802
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. But where should I put it into the code?

  4. #4
    Partykilla's Avatar Contributor
    Reputation
    107
    Join Date
    Jan 2011
    Posts
    129
    Thanks G/R
    5/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh dear, please set urself into the class your coding
    As of 5.4 you no longer need to equip anything to cast spell reflect.

    for i=1, #custTars do
    This scirpt is coded with a list of targets and a list of spells to match befor it casts spell reflect,
    ull need to get the other parts from it within the data file.

  5. #5
    jackus's Avatar Active Member
    Reputation
    58
    Join Date
    Aug 2006
    Posts
    802
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Partykilla View Post
    Oh dear, please set urself into the class your coding
    As of 5.4 you no longer need to equip anything to cast spell reflect.


    This scirpt is coded with a list of targets and a list of spells to match befor it casts spell reflect,
    ull need to get the other parts from it within the data file.
    I know it dont need shiled for spellreflect but if remove

    if UseEquipmentSet("2HSet") ~= nil

    Then the rotation wont work. So I just saved 2Hset and ShieldSet with my 2hander and it works. But I dont know very much about coding. Thats why I ask where to input:


    Code:
    if PQR_SpellAvailable(23920) == false and PQR_SpellAvailable(114028) == true then
    CastSpellByName(GetSpellInfo(114028),nil)
    end
    in the:


    Code:
    for i=1, #custTars do
    if (autoSpellReflect == true
    and spellReflect(custTars[i]) == true)
    or reflectKey == 1
    then
        sRcheck = true
        bgreen_Notify("Attempting to reflect "..UnitCastingInfo(custTars[i]).." from "..UnitName(custTars[i]))
    end
    end
    if sRcheck == true
    and cdRemains(23920) == 0
    and UnitBuffID("player",23920) == nil
    then
        if UseEquipmentSet("2HSet") ~= nil
            then
            CastSpellByName(GetSpellInfo(23920),nil)
    
            return true
        end
    end
    Or do I put it into PQR_JackusPVPDATA.lua file in:
    Code:
    function spellReflect(unit)
    if UnitCastingInfo(unit) ~= nil
        and UnitIsEnemy("player", unit) ~= nil
        and IsSpellInRange(GetSpellInfo(57755), unit) == 1
        and select(2,GetSpellCooldown(23920)) == 0
        and UnitBuffID("player",23920) == nil
        then
            for i=1, #reflectCC do
                if UnitCastingInfo(unit) == GetSpellInfo(reflectCC[i])
                    then
                    local _, _, _, _,  startTimer, endTimer = UnitCastingInfo(unit)
                    local timeSinceStart = (GetTime() * 1000 - startTimer) / 1000
                    local castTime = endTimer - startTimer
                    local currentPercent = timeSinceStart / castTime * 100000
                        if currentPercent > 45
                            then
                                    return true
                            end
                    end
            end
            for i=1, #reflectDMG do
                if UnitCastingInfo(unit) == GetSpellInfo(reflectDMG[i])
                and UnitIsUnit("player",unit.."target")
                    then
                    local _, _, _, _,  startTimer, endTimer = UnitCastingInfo(unit)
                    local timeSinceStart = (GetTime() * 1000 - startTimer) / 1000
                    local castTime = endTimer - startTimer
                    local currentPercent = timeSinceStart / castTime * 100000
                        if currentPercent > 90
                        and getHp("player") >= 95
                            then
                                    return true
                            end
                    end
            end
        end
    end
    Last edited by jackus; 09-22-2013 at 03:13 PM.

Similar Threads

  1. [PQR] 3.3.5 Need help with me demolock profile
    By Feraleo in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 02-22-2015, 01:45 AM
  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. Need help with PQR, stuck on writing a profile.
    By shrink1991 in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 08-26-2013, 12:11 AM
  4. [PQR] Need help with Code
    By spawnpl in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 04-23-2013, 12:32 AM
  5. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
All times are GMT -5. The time now is 01:05 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