PQR - Rotation Bot menu

User Tag List

Page 46 of 116 FirstFirst ... 42434445464748495096 ... LastLast
Results 676 to 690 of 1739
  1. #676
    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)
    @CharleyWex

    Two things.

    1. PQR_IsOutOfSight() returns true if the unit has received an out of sight error within the specified interval, so you should be checking the negation of it (i.e. not PQR_IsOutOfSight(...)). At the moment it won't cast the spell so you won't get any errors and the condition will never pass.

    2. Don't use PQR_UnitDistance() unless you absolutely have to, it's expensive compared to IsSpellInRange() or CheckInteractDistance()

    PQR - Rotation Bot
  2. #677
    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)
    Thanks Vitalic for the feedback, I totally forgot the not. I can't use IsSpellInRange() for this guy unfortunately as it isn't checking for a specific spell but checking for untargeted friendly players position within 40 yards at a certain hp and then running a macro.

    EDIT: BTW Creepy that you have 666 posts when I read that.

  3. #678
    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 I figured it out. @Vitalic, I did use a IsSpellInRange(), I just used a different spell with the same range check and it worked out fine.

    if UnitExists("player") then
    if not PQR_IsOutOfSight("player")
    and not UnitIsDeadOrGhost ("player")
    and IsSpellInRange(GetSpellInfo(111111),"player") == 1 then
    if 100 * UnitHealth("player") / UnitHealthMax("player") < 90 then
    RunMacroText("/macro")
    RunMacroText("/stopspelltarget")
    return true
    end
    end
    end

    Now I have one more question. Is there a simple way to get this to apply to a whole party/raid without having to substitute in "party1";"party2","raid1", etc for "player"?
    Last edited by CharleyWex; 11-25-2013 at 06:34 AM.

  4. #679
    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)
    You could define a table like
    Code:
    local members = { "player" }
    if IsInRaid() then
        for i=1, 25 do
            table.insert(members, "raid"..i)
        end
    elseif IsInGroup() then
        for i=1, 5 do
            table.insert(members, "party"..i)
        end
    end
    and then iterate over it with another for loop.
    Last edited by troxxer; 11-25-2013 at 06:43 AM.

  5. #680
    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)
    Originally Posted by vitalic View Post
    @CharleyWex

    Two things.

    1. PQR_IsOutOfSight() returns true if ...
    Are you sure? true? This function has been fixed?

  6. #681
    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 WWF View Post
    Are you sure? true? This function has been fixed?
    Well it's supposed to but not sure tbh.

  7. #682
    kuukuu's Avatar Contributor
    Reputation
    269
    Join Date
    Jul 2012
    Posts
    619
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wasn't aware it was even broken... but I've never had need to use that function so no idea. It's supposed to return true when out of sight though.
    Former PQR Developer

  8. #683
    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)
    Yeah, I just tested the out of sight function and its not working.

  9. #684
    WizKhalifa610's Avatar Member
    Reputation
    3
    Join Date
    Oct 2012
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nvm I got it working thank you
    Last edited by WizKhalifa610; 11-25-2013 at 06:29 PM.

  10. #685
    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)
    need to call PQR_UnitInfo() at least once for distance and facing checks

    Please if someone helped you donate rep to them.

  11. #686
    Stikz's Avatar Corporal
    Reputation
    1
    Join Date
    Apr 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PQR broken on my end

    It worked fine yesterday, I have the addon Suddenly mavmim's destro profile only casts rof and shadowburn. I reinstalled everything and still... any ideas?

  12. #687
    Kaylo's Avatar Active Member
    Reputation
    20
    Join Date
    Jun 2012
    Posts
    68
    Thanks G/R
    11/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking for help with creating a toggable function.
    I want to have the function FireNovaHigh "true" when I click mousebutton 5 and toggled to "false" when I click mousebutton 5 again. I also want to put the status out in chat when it changes.
    I tried to copy code and modify it but I havent had any luck. Wondering if someone can post an edited version. I want to add hotkeys to different rotations.I hope this shows somewhat what I want done:
    Code:
    --binds
    FireNovaHigh		= IsMouseButtonDown(5)
    
    FireNovaHigh =  false 
    
    
    --FireNovaHigh
    if not FireNovaHighdown then FireNovaHighdown = 0 end
    if not GetCurrentKeyBoardFocus() and FireNovaHigh and GetTime() - FireNovaHighdown > 1 then
    	FireNovaHighdown = GetTime()
      	if FireNovaHigh  then 
    		FireNovaHigh  = false 
    		PQR_WriteToChat("FireNovaHigh: |cFFFF0000Disabled")
    		PQR_Event("PQR_Text","FireNovaHigh: Disabled",nil,"FF0000")
      	else 
    		FireNovaHigh  = true 
    		PQR_WriteToChat("FireNovaHigh: |cFF00FF00Enabled")
    		PQR_Event("PQR_Text","FireNovaHigh: Enabled",nil,"00FF00")
      	end
    end

  13. #688
    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)
    Your problem lies mostly here:
    Code:
    FireNovaHigh		= IsMouseButtonDown(5)
    
    FireNovaHigh =  false
    First you initialize FireNovaHigh to be the value of whether Mouse Button 5 is pressed or not, but on the next line you're setting it instantly back to false, so your MB5 check wont fire at all.
    Additionally your logic is a bit flawed - as that code would switch your FireNovaHigh state every second, even if you won't press your MB5.

    Something like this should work:
    Code:
    --FireNovaHigh
    FireNovaHigh = FireNovaHigh or false
    FireNovaHighdown = FireNovaHighdown or 0
    
    if not GetCurrentKeyBoardFocus() and IsMouseButtonDown(5) and GetTime() - FireNovaHighdown > 1 then
        FireNovaHighdown = GetTime()
        FireNovaHigh = not FireNovaHigh
        PQR_WriteToChat("FireNovaHigh: "..(FireNovaHigh and "|cFF00FF00Enabled" or "|cFFFF0000Disabled"))
        PQR_Event("PQR_Text","FireNovaHigh: "..(FireNovaHigh and "Enabled" or "Disabled"),nil,(FireNovaHigh and "00FF00" or "FF0000"))
    end
    Last edited by troxxer; 11-26-2013 at 10:31 AM.

  14. #689
    Pdey's Avatar Contributor
    Reputation
    139
    Join Date
    Aug 2011
    Posts
    271
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i need your help ^^

    for this kind of problem or so ^^

    cast Mind Flay when Devouring Plague (id: 2944) is as (de-)buff on target

    what i have to change on the normal mindflay spell?

    CastSpellByName("Gedankenschinden")
    return true
    (i know i have to add an xtra ability-entry)
    Last edited by Pdey; 11-26-2013 at 12:12 PM.

  15. #690
    Kaylo's Avatar Active Member
    Reputation
    20
    Join Date
    Jun 2012
    Posts
    68
    Thanks G/R
    11/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by troxxer View Post
    Your problem lies mostly here:
    Code:
    FireNovaHigh		= IsMouseButtonDown(5)
    
    FireNovaHigh =  false
    First you initialize FireNovaHigh to be the value of whether Mouse Button 5 is pressed or not, but on the next line you're setting it instantly back to false, so your MB5 check wont fire at all.
    Additionally your logic is a bit flawed - as that code would switch your FireNovaHigh state every second, even if you won't press your MB5.

    Something like this should work:
    Code:
    --FireNovaHigh
    FireNovaHigh = FireNovaHigh or false
    FireNovaHighdown = FireNovaHighdown or 0
    
    if not GetCurrentKeyBoardFocus() and IsMouseButtonDown(5) and GetTime() - FireNovaHighdown > 1 then
        FireNovaHighdown = GetTime()
        FireNovaHigh = not FireNovaHigh
        PQR_WriteToChat("FireNovaHigh: "..(FireNovaHigh and "|cFF00FF00Enabled" or "|cFFFF0000Disabled"))
        PQR_Event("PQR_Text","FireNovaHigh: "..(FireNovaHigh and "Enabled" or "Disabled"),nil,(FireNovaHigh and "00FF00" or "FF0000"))
    end
    Works great with your code troxxer, thanks a lot for helping me out. +repped.

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 02:48 AM. 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