[PQR] Help with flame shock menu

User Tag List

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

    [PQR] Help with flame shock

    Hello everyone. First of all, thanks for this wonderful site and all of the profiles!

    I've been using Cpoworks enhancement profile for quite some time now, good dps and good customization.

    he does appear to be MIA at the time though. Made a request on his thread, but no answer so far.

    Been trying to alter his Flame Shock coding, without luck, since my coding skills are minimal.

    This is what I'm trying to achieve:

    Apply Flame Shock if:

    it is not applied on your target and Unleash Flame is up (buff granted by using Unleash Elements);
    it is applied on your target and Unleash Flame is up;
    it is not applied on your target, but Unleash Flame is not up and Unleash Elements will not come off cooldown in the next 5 seconds.


    got 2 abilities right now:

    Flame shock:

    Code:
    local Flameshock = select(7,UnitDebuffID("target",8050,"PLAYER"))  
    
    if not AoE then
        if cdRemains(73680) < 5 then --Unleash elements
    		return false
        end
    	if not Flameshock then
    		_castSpell(8050, "Target")
    	end
    else
        if cdRemains(73680) < 5 then --Unleash elements
    		return false
        end
    	if not Flameshock then
    		_castSpell(8050, "Target")
    	end
    end
    and Flame Shock (UE)

    Code:
    local Flameshock = select(7,UnitDebuffID("target",8050,"PLAYER"))  
    local UF = select(7,UnitBuffID ("player",73683))
    
    if not AoE then
    	if Flameshock - GetTime() < 7
    	and UF then
    		_castSpell(8050, "Target")
    	end
    else
        if Flameshock - GetTime() < 13
    	and UF then 
    		_castSpell(8050, "Target")
    	end
    end
    When I initiate combat I get a Lua error

    Code:
    Date: 2013-10-30 02:16:58
    ID: 2
    Error occured in: Global
    Count: 43
    Message: [string "local Flameshock = select(7,UnitDebuffID("t..."] line 9:
       attempt to perform arithmetic on local 'Flameshock' (a nil value)
    Debug:
       [C]: ?
       [string "local Flameshock = select(7,UnitDebuffID("t..."]:9: ?()
       [string "if PQR_Addon_Loaded == nil then..."]:765: PQR_NextAbility()
       [string "if PQR_Addon_Loaded == nil then..."]:534: PQR_ExecuteRotation()
       [string "if PQR_Addon_Loaded == nil then..."]:287:
          [string "if PQR_Addon_Loaded == nil then..."]:214
    Can anybody tell me what i should change to make this work?

    [PQR] Help with flame shock
  2. #2
    crystal_tech's Avatar Elite User
    Reputation
    468
    Join Date
    Feb 2008
    Posts
    1,033
    Thanks G/R
    1/6
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this line:

    if Flameshock - GetTime() < 7

    add

    if Flameshock and Flameshock - GetTime() < 7

    try that.

    and add it to the < 13 as well

    Please if someone helped you donate rep to them.

  3. #3
    alexxjr's Avatar Sergeant
    Reputation
    5
    Join Date
    Oct 2012
    Posts
    67
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mate! appreciated! gonna try that out tomorrow when the servers come back online!

  4. #4
    alexxjr's Avatar Sergeant
    Reputation
    5
    Join Date
    Oct 2012
    Posts
    67
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It worked perfectly, thanks for the help mate! +Rep

  5. #5
    crystal_tech's Avatar Elite User
    Reputation
    468
    Join Date
    Feb 2008
    Posts
    1,033
    Thanks G/R
    1/6
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not a problem.

    Please if someone helped you donate rep to them.

Similar Threads

  1. [PQR] help with spellreflect/mass spell reflection
    By jackus in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 10-06-2013, 04:55 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. [PQR] Help with Eclipse mechanic! (3.3.5)
    By Zyraxian in forum WoW Bots Questions & Requests
    Replies: 8
    Last Post: 11-25-2012, 11:06 AM
All times are GMT -5. The time now is 02:35 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