[PQR] targeting everything menu

User Tag List

Results 1 to 5 of 5
  1. #1
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] targeting everything

    if not everything
    then
    for i=1,40 do
    everything= {
    "target",
    "focus",
    "mouseover",
    "pettarget"
    "party"..i.."target",
    "partypet"..i.."target",
    "raid"..i .."target",
    "raidpet"..i.."target",
    "arena"..i..,
    "boss"..i..
    }
    end
    end
    any chance to make it work? Im trying to make those codes abit more clear and that would help me alot
    Last edited by G0tha; 10-17-2013 at 02:11 PM.

    [PQR] targeting everything
  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)
    Problem is its not setup right and the way lua works it will break on the first nil. However, let me think a bit and I might come up with something that you can use.

    Please if someone helped you donate rep to them.

  3. #3
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If for i=1 , #everything do

    if UnitExists(everything[i]) then
    --variables
    return true
    end
    end
    is there any nice way, command or something that will show me witch one returns nil?
    My guesses are it returns nil on arena 6-40 and boss 5-40 that is impossible and cannot exist in the game or on first
    "party"..i.."target"
    that party member doesn't exist right now?



    EDIT:
    if not everything
    then
    for i=1,40 do
    everything= {
    "target",
    "focus",
    "mouseover",
    "pettarget",
    "party1target", "party2target", "party3target", "party4target", "party5target",
    "partypet1target", "partypet2target", "partypet3target", "partypet4target", "partypet5target",
    "raid"..i .."target",
    "raidpet"..i.."target",
    "arena1","arena2","arena3","arena4","arena5",
    "arenapet1","arenapet2","arenapet3","arenapet4","arenapet5",
    "boss1","boss2","boss3","boss4"
    }
    end
    end
    Rotation works now in party, i missed the "," in first code but i guess this wouldn't make it to work. Testing the rest. I will add arenapets later
    Last edited by G0tha; 10-17-2013 at 03:57 PM.

  4. #4
    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)
    mk i think i need more info in what your going to do with this code.

    Code:
    everything = { }
    
    function _refreshTar()
    	everything = nil
    	everything = { 
    	"target",
    	"focus",
    	"mouseover",
    	"pettarget"
    	}
    	
    	for i= 1, 40 do
    		if UnitExists("party"..i.."target") then
    			table.insert (everything, "party"..i.."target")
    		end
    	end
    	for i=1, 5 do
    		if unitExists("boss"..i) then
    			table.insert (everything, "boss"..i)
    		end
    	end
    end
    is kinda what i was thinking, you call the refresh and it fills the table with any value thats not nil and you can then use it for whatever you want. the function is incomplete but if this is the way to go for ya let me know.

    Please if someone helped you donate rep to them.

  5. #5
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if not everything
    then
    for i=1,40 do
    everything= {
    "target",
    "focus",
    "mouseover",
    "pettarget",
    "party1target", "party2target", "party3target", "party4target", "party5target",
    "partypet1target", "partypet2target", "partypet3target", "partypet4target", "partypet5target",
    "raid"..i .."target",
    "raidpet"..i.."target",
    "arena1","arena2","arena3","arena4","arena5",
    "arenapet1","arenapet2","arenapet3","arenapet4","arenapet5",
    "boss1","boss2","boss3","boss4"
    }
    end
    end
    worked perfectly in rdf, so i guess it will work in raid, bgs and arenas. I wanna use it to control enemy buffs,debuffs with UnitbuffID(everything[i],spellid) as warlock
    thanks for help

    EDIT:
    for i= 1, 40 do
    if UnitExists("party"..i.."target") then
    table.insert (everything, "party"..i.."target")
    end
    end
    i haven't tested it yet but my guesses are it will return false since 6-40 numbers will return errors and **** up this code and
    for i=1, 5 do
    if unitExists("boss"..i) then
    table.insert (everything, "boss"..i)
    end
    end
    end
    will error too at boss5
    Last edited by G0tha; 10-18-2013 at 05:02 AM.

Similar Threads

  1. [PQR] multiple targets in UnitHealth()?
    By doguking in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 07-09-2014, 03:11 PM
  2. [PQR] Question About Target Instant Casts
    By Moonscarlet in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 10-13-2013, 11:43 PM
  3. PQR: cast spell when target is near. [question]
    By Fantersam123 in forum WoW Bot Maps And Profiles
    Replies: 10
    Last Post: 06-12-2013, 11:05 AM
  4. is PQR raid targeting possible?
    By joneskull in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 11-17-2012, 03:43 PM
  5. how to always face target? Lazybot + PQR
    By jaeson in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 07-23-2012, 04:09 PM
All times are GMT -5. The time now is 04:29 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