[PQR] Rotation switch based on HP menu

User Tag List

Results 1 to 3 of 3
  1. #1
    callmerobbo's Avatar Private
    Reputation
    1
    Join Date
    Mar 2013
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] Rotation switch based on HP

    Hi everyone!

    I'm pretty new to coding in/with PQR so bare with me please.

    I'm currently trying to write the data.lua files for a profile I'm going to make. So this isn't urgent.

    I want to know if its possible to change a rotation based on HP

    My scenario is this :
    Unholy DK - Going to implement a modifier for Necrotic strike rotation & normal DPS rotation to switch as and when I want
    However I want to automate it so if I was to go to say less than 30% HP it will switch out to a defensive rotation for me untill im over 50% HP

    Is it possible or will it lag out from doing too many checks?

    If it is possible how would I go about it?

    Cheers

    Robbo

    [PQR] Rotation switch based on HP
  2. #2
    bu_ba_911's Avatar Elite User
    Reputation
    552
    Join Date
    May 2006
    Posts
    1,638
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by callmerobbo View Post
    Hi everyone!

    I'm pretty new to coding in/with PQR so bare with me please.

    I'm currently trying to write the data.lua files for a profile I'm going to make. So this isn't urgent.

    I want to know if its possible to change a rotation based on HP

    My scenario is this :
    Unholy DK - Going to implement a modifier for Necrotic strike rotation & normal DPS rotation to switch as and when I want
    However I want to automate it so if I was to go to say less than 30% HP it will switch out to a defensive rotation for me untill im over 50% HP

    Is it possible or will it lag out from doing too many checks?

    If it is possible how would I go about it?

    Cheers

    Robbo
    im to tired to code out what you want, but here's how my profiles handle rotation switches

    PHP Code:
    -- Only takes effect when we are 90
    if UnitLevel("player") == 90
     
    and not UnitIsDeadOrGhost("player")
     and 
    Nova_CheckLastCast(62then
        
    -- If we are in a 5 man instance
        
    if IsInInstance() and select(2GetInstanceInfo()) == "party" then
            FirstRun 
    false
            PQR_SwapRotation
    ("Party (Nova [Resto])")
        -- If 
    we are in a raid of any size
        
    elseif IsInInstance() and select(2GetInstanceInfo()) == "raid" then
            FirstRun 
    false
            PQR_SwapRotation
    ("Raid (Nova [Resto])")
        -- If 
    we are in a Battleground
        
    elseif IsInInstance() and select(2GetInstanceInfo()) == "pvp" and not IsActiveBattlefieldArena() and not IsRatedBattleground() then
            FirstRun 
    false
            PQR_SwapRotation
    ("BG (Nova [Resto])")
        -- If 
    we are in an Arena Battle
        
    elseif IsInInstance() and ( IsActiveBattlefieldArena() or IsRatedBattleground()) then
            FirstRun 
    false
            PQR_SwapRotation
    ("Arena (Nova [Resto])")
        
    end
    end 
    you can edit that to what you need, and it should work fine
    ^0^Team Nova's PQR NCC ^0^

    If you think someone did something good, take the time to show your appreciation!

  3. #3
    callmerobbo's Avatar Private
    Reputation
    1
    Join Date
    Mar 2013
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers, I just needed a basic outline anyways, thanks!!

Similar Threads

  1. [Release] PQR - Rotation Bot
    By Xelper in forum World of Warcraft Bots and Programs
    Replies: 11680
    Last Post: 09-16-2013, 07:47 PM
  2. PQR Rotation by click.
    By d3deadl0rd in forum WoW Bots Questions & Requests
    Replies: 4
    Last Post: 12-06-2012, 06:44 PM
  3. [HELP] PQR Rotation Bot Profile Making
    By Missu in forum Programming
    Replies: 0
    Last Post: 10-22-2012, 06:27 AM
  4. [Request] druid feral dps/tank PQR rotation low level
    By lecosr in forum WoW Bot Maps And Profiles
    Replies: 2
    Last Post: 04-15-2012, 01:45 PM
  5. Slight PQR rotation problem
    By Schifty5 in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 01-13-2012, 08:20 PM
All times are GMT -5. The time now is 09:41 AM. 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