PQR - Rotation Bot menu

User Tag List

Page 45 of 116 FirstFirst ... 41424344454647484995 ... LastLast
Results 661 to 675 of 1739
  1. #661
    Ashton187's Avatar Member
    Reputation
    7
    Join Date
    Aug 2007
    Posts
    67
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mavmins View Post
    if you aren't using PQI then the profile isn't for you, immolate wont hit unless you set the immolate threshold in PQI and as you dont use PQI you cant set the value
    Mavmins, lets move this discussion to your thread instead of clogging up this one.

    PQR - Rotation Bot
  2. #662
    WWF's Avatar Active Member
    Reputation
    31
    Join Date
    Jul 2010
    Posts
    215
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found this code in the old thread:
    PHP Code:
            elseif playerClass == "WARRIOR" then
                
    if PQR_SpellAvailable(6552then
                    
    return 6552
                
    elseif PQR_SpellAvailable(102060) and PQR_SpellAvailable(6552) == false then
                    
    return 102060
                
    elseif PQR_SpellAvailable(57755) and PQR_SpellAvailable(102060) == false and PQR_SpellAvailable(6552) == false then
                    
    return 57755
                end 
    but it's not working for me, interrupter always uses Pummel only why?
    I have tried to determine spell cd, but it did not help.
    Last edited by WWF; 11-21-2013 at 11:15 PM.

  3. #663
    cpowroks's Avatar Contributor
    Reputation
    180
    Join Date
    Oct 2007
    Posts
    623
    Thanks G/R
    1/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there an easier way to create a table then this:

    Code:
    --Function Check if unit is CC'ed--
    dispellableCCids             = { }
    table.insert(dispellableCCids,{Spell =    110698,    Dispeltime = 5    })    -- Hammer of Justice  
    table.insert(dispellableCCids,{Spell =    44572, Dispeltime = 5})        -- Deep Freeze
    table.insert(dispellableCCids,{Spell =    118, Dispeltime = 5})        -- Polymorph
    table.insert(dispellableCCids,{Spell =    61305, Dispeltime = 5})        -- Polymorph: Black Cat
    table.insert(dispellableCCids,{Spell =    28272, Dispeltime = 5})        -- Polymorph: Pig
    table.insert(dispellableCCids,{Spell =    61721, Dispeltime = 5})        -- Polymorph: Rabbit
    table.insert(dispellableCCids,{Spell =    61780, Dispeltime = 5})        -- Polymorph: Turkey
    table.insert(dispellableCCids,{Spell =    28271, Dispeltime = 5})        -- Polymorph: Turtle
    table.insert(dispellableCCids,{Spell =    122, Dispeltime = 5})        -- Frost Nova
    table.insert(dispellableCCids,{Spell =    82691,    Dispeltime = 5})    -- Ring of Frost
    table.insert(dispellableCCids,{Spell =    105593, Dispeltime = 5})    -- Fist of Justice
    table.insert(dispellableCCids,{Spell =    853, Dispeltime = 5})        -- Hammer of Justice
    table.insert(dispellableCCids,{Spell =    64044, Dispeltime = 5})        -- Psychic Horror
    table.insert(dispellableCCids,{Spell =    8122, Dispeltime = 5})        -- Psychic Scream
    table.insert(dispellableCCids,{Spell =    113792, Dispeltime = 5})    -- Psychic Terror 
    table.insert(dispellableCCids,{Spell =    118905,    Dispeltime = 5})    -- Static Charge 
    table.insert(dispellableCCids,{Spell =    5782, Dispeltime = 5})        -- Fear 
    table.insert(dispellableCCids,{Spell =    118699,    Dispeltime = 5})    -- Fear
    table.insert(dispellableCCids,{Spell =    5484, Dispeltime = 5})        -- Howl of Terror
    table.insert(dispellableCCids,{Spell =    3355, Dispeltime = 5})        -- Freezing Trap
    Edit, Not really "easier" but cleaner.
    WoW LUA Script Developer
    Need Something Custom? WarmaneScripts.com
    Skype - grapejuice111

  4. #664
    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)
    Originally Posted by cpowroks View Post
    Is there an easier way to create a table then this:

    Code:
    --Function Check if unit is CC'ed--
    dispellableCCids             = { }
    table.insert(dispellableCCids,{Spell =    110698,    Dispeltime = 5    })    -- Hammer of Justice  
    table.insert(dispellableCCids,{Spell =    44572, Dispeltime = 5})        -- Deep Freeze
    table.insert(dispellableCCids,{Spell =    118, Dispeltime = 5})        -- Polymorph
    table.insert(dispellableCCids,{Spell =    61305, Dispeltime = 5})        -- Polymorph: Black Cat
    table.insert(dispellableCCids,{Spell =    28272, Dispeltime = 5})        -- Polymorph: Pig
    table.insert(dispellableCCids,{Spell =    61721, Dispeltime = 5})        -- Polymorph: Rabbit
    table.insert(dispellableCCids,{Spell =    61780, Dispeltime = 5})        -- Polymorph: Turkey
    table.insert(dispellableCCids,{Spell =    28271, Dispeltime = 5})        -- Polymorph: Turtle
    table.insert(dispellableCCids,{Spell =    122, Dispeltime = 5})        -- Frost Nova
    table.insert(dispellableCCids,{Spell =    82691,    Dispeltime = 5})    -- Ring of Frost
    table.insert(dispellableCCids,{Spell =    105593, Dispeltime = 5})    -- Fist of Justice
    table.insert(dispellableCCids,{Spell =    853, Dispeltime = 5})        -- Hammer of Justice
    table.insert(dispellableCCids,{Spell =    64044, Dispeltime = 5})        -- Psychic Horror
    table.insert(dispellableCCids,{Spell =    8122, Dispeltime = 5})        -- Psychic Scream
    table.insert(dispellableCCids,{Spell =    113792, Dispeltime = 5})    -- Psychic Terror 
    table.insert(dispellableCCids,{Spell =    118905,    Dispeltime = 5})    -- Static Charge 
    table.insert(dispellableCCids,{Spell =    5782, Dispeltime = 5})        -- Fear 
    table.insert(dispellableCCids,{Spell =    118699,    Dispeltime = 5})    -- Fear
    table.insert(dispellableCCids,{Spell =    5484, Dispeltime = 5})        -- Howl of Terror
    table.insert(dispellableCCids,{Spell =    3355, Dispeltime = 5})        -- Freezing Trap
    Edit, Not really "easier" but cleaner.
    just create it over table insert?

    Code:
    dispellableCCids = {
    [1] = {Spell = 110698, Dispeltime = 5},
    [2] = {Spell = 44572, Dispeltime = 5} --etc etc
    }
    the [1] is the table index and if you don't have that it will throw errors

    so you could use it like

    for i=1, #dispellableCCids do
    if UnitBuffID("player", dispellableCCids[i].Spell) and dispellableCCids[i].DispelTime < CastTimeofdispellspellorsomethingelse then
    return true
    end
    end

    Please if someone helped you donate rep to them.

  5. #665
    cpowroks's Avatar Contributor
    Reputation
    180
    Join Date
    Oct 2007
    Posts
    623
    Thanks G/R
    1/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah thats what i was looking for, Thanks
    WoW LUA Script Developer
    Need Something Custom? WarmaneScripts.com
    Skype - grapejuice111

  6. #666
    vitalic's Avatar Contributor CoreCoins Purchaser
    Reputation
    182
    Join Date
    Jun 2010
    Posts
    3,527
    Thanks G/R
    8/3
    Trade Feedback
    10 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Not sure why you would ever define a table like that:

    Code:
    dispellableCCids = {
        {Spell = 110698, Dispeltime = 5}, -- Hammer of Justice
        {Spell = 44572, Dispeltime = 5},  -- Deep Freeze
        {Spell = 118, Dispeltime = 5},    -- Hammer of Justice
    }

  7. #667
    cpowroks's Avatar Contributor
    Reputation
    180
    Join Date
    Oct 2007
    Posts
    623
    Thanks G/R
    1/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by vitalic View Post
    Not sure why you would ever define a table like that:

    Code:
    dispellableCCids = {
        {Spell = 110698, Dispeltime = 5}, -- Hammer of Justice
        {Spell = 44572, Dispeltime = 5},  -- Deep Freeze
        {Spell = 118, Dispeltime = 5},    -- Hammer of Justice
    }
    thats the first thing i tried and it caused syntax errors
    WoW LUA Script Developer
    Need Something Custom? WarmaneScripts.com
    Skype - grapejuice111

  8. #668
    vitalic's Avatar Contributor CoreCoins Purchaser
    Reputation
    182
    Join Date
    Jun 2010
    Posts
    3,527
    Thanks G/R
    8/3
    Trade Feedback
    10 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cpowroks View Post
    thats the first thing i tried and it caused syntax errors
    'tis fine for me:


  9. #669
    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)
    Originally Posted by vitalic View Post
    'tis fine for me:

    try dumping 2 or check to see if the id was tied to a var in the profile

    Please if someone helped you donate rep to them.

  10. #670
    nfx's Avatar Member
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    i have just startet to create a custom rota with pqr. But im struggling always with the same problem:

    I use a PQR_XXX.lua to create some global functions like:

    Code:
    function IsValidTarget(_spellid)
    	if UnitAffectingCombat("player") ~= nil 					-- in combat !
    	and IsSpellInRange(GetSpellInfo(_spellid),"target") == 1 	-- Rangecheck !
    	then
    		return true
    	else
    		return false
    	end
    end
    or
    (from Partykilla)
    Code:
    function cdRemains(_spellid)
    	if select(2,GetSpellCooldown(_spellid)) + (select(1,GetSpellCooldown(_spellid)) - GetTime()) > 0
    	then 
                   return select(2,GetSpellCooldown(_spellid)) + (select(1,GetSpellCooldown(_spellid)) - GetTime())
    	else
                   return 0
    	end
    end

    The cdRemains function works ! The IsValidTarget function not...

    I tried using it at Plague Strike:
    Code:
    -- 45462 Plague Strike
    -- 59921 Frost fever
    
    	if not UnitDebuffID("target",55078) == true  
    		or UnitDebuffID("target",59921) == true
    	then
    		if cdRemains(45462) == 0
    		then
    			if IsValidTarget(45462) == true
    			then
    				CastSpellByName(GetSpellInfo(45462))
    			end
    		end
    	end

    Im always getting a Lua Error:
    Code:
    Message: [string "-- 45462 Plague Strike ..."]:17: attempt to call global 'IsValidTarget' (a nil value)
    Time: 11/23/13 18:28:57
    Count: 331
    Stack: [string "-- 45462 Plague Strike ..."]:17: in function `?'
    [string "if PQR_Addon_Loaded == nil then..."]:765: in function `PQR_NextAbility'
    [string "if PQR_Addon_Loaded == nil then..."]:534: in function `PQR_ExecuteRotation'
    [string "if PQR_Addon_Loaded == nil then..."]:287: in function <[string "if PQR_Addon_Loaded == nil then..."]:214>
    
    Locals: (*temporary) = nil
    (*temporary) = 45462
    (*temporary) = "attempt to call global 'IsValidTarget' (a nil value)"
    Any Ideas ?

  11. #671
    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)
    Morphed spellid prob the problem, just pass a baseline spellid in the isspellinrange part
    Last edited by crystal_tech; 11-23-2013 at 03:49 PM.

    Please if someone helped you donate rep to them.

  12. #672
    nfx's Avatar Member
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still the same error. There must be something else.. Because if i gonna reuse _castSpell from PartyKilla it has the same error.
    (it only happens at function calls with a parameter)

    Code:
    function _castSpell(spellid,tar)
    	if UnitCastingInfo("player") == nil
    	and UnitChannelInfo("player") == nil
    	and IsPlayerSpell(spellid) == true
    	and cdRemains(spellid) == 0
    	then
    		if tar ~= nil
    		and rangeCheck(spellid,tar) == nil
    			then
    			return false
    		elseif tar ~= nil
    		and rangeCheck(spellid,tar) == true
    			then
    			CastSpellByName(GetSpellInfo(spellid),tar)
    			return true
    		elseif tar == nil
    			then
    			CastSpellByName(GetSpellInfo(spellid))
    			return true
    		else
    	return false
    	end
    end
    end

    Error:

    Code:
    Message: [string "-- 45462 Plague Strike ..."]:17: attempt to call global '_castSpell' (a nil value)
    Time: 11/24/13 01:41:59
    Count: 24
    Stack: [string "-- 45462 Plague Strike ..."]:17: in function `?'
    [string "if PQR_Addon_Loaded == nil then..."]:765: in function `PQR_NextAbility'
    [string "if PQR_Addon_Loaded == nil then..."]:534: in function `PQR_ExecuteRotation'
    [string "if PQR_Addon_Loaded == nil then..."]:287: in function <[string "if PQR_Addon_Loaded == nil then..."]:214>
    
    Locals: (*temporary) = nil
    (*temporary) = 45462
    (*temporary) = "attempt to call global '_castSpell' (a nil value)"
    Last edited by nfx; 11-23-2013 at 08:50 PM.

  13. #673
    troxxer's Avatar Member
    Reputation
    3
    Join Date
    May 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems like your function isn't getting initialized - hence the "a nil value". You should check if the ability your function is getting initialized in is actually in your rotation and if it indeed is you should check the ability itself for lua-errors. use something like Lua: demo or download luac to validate it.
    Last edited by troxxer; 11-24-2013 at 06:04 AM.

  14. #674
    nfx's Avatar Member
    Reputation
    1
    Join Date
    Nov 2013
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Finally i got it !

    Its seems to be a problem that PQR is not reloading the PQR_xxx.Lua file.
    I was adding functions to the lua and saved it. To test it i was starting the routine again, however all new added functions in the lua file where not initilized.
    Thats why i always got this type of errors. The easiest way to fix it was to exit pqr, relog and start the routine.

  15. #675
    CharleyWex's Avatar Member
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay guys, been writing my own profiles behind the scenes for a while now but I'm stuck and can't get this to work properly, some help would be appreciated

    local pc1 = "focus"
    local range = 40

    if PQR_UnitDistance(pc1, "player") < range then
    if 100 * UnitHealth("focus") / UnitHealthMax("focus") < 90 then
    if 100 * UnitHealth("focus") / UnitHealthMax("focus") > 2 then
    if PQR_IsOutOfSight("focus", 0.1) then
    RunMacroText("/MACRO")
    RunMacroText("/stopspelltarget")
    return true
    end
    end
    end
    end

    I want it to cast a spell using my specific macro while a focus is both in LoS and in range. This coding works perfectly until I add the LoS check, then it doesn't cast the macro. If I remove the LoS check, it works just fine. Any help would be apprecaiated.

    This doesn't cause the profile to hang or drop the framerate, it just causes the macro not to cast. A little perplexed.

Similar Threads

  1. [Bot] PQR PE Next Steps / Future of Rotation Botting
    By Chevrolet1 in forum World of Warcraft Bots and Programs
    Replies: 120
    Last Post: 10-21-2014, 11:47 AM
  2. [Selling] 3 Lifetime Session Keys For Sale, Great for the PQR user looking for a rotation bot
    By cukiemunster in forum World of Warcraft Buy Sell Trade
    Replies: 13
    Last Post: 03-11-2014, 07:18 AM
  3. rotation bot leveling (PQR)
    By classdog in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 09-17-2013, 06:13 PM
  4. [Release] PQR - Rotation Bot
    By Xelper in forum World of Warcraft Bots and Programs
    Replies: 11680
    Last Post: 09-16-2013, 07:47 PM
  5. [HELP] PQR Rotation Bot Profile Making
    By Missu in forum Programming
    Replies: 0
    Last Post: 10-22-2012, 06:27 AM
All times are GMT -5. The time now is 05:18 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