[PQR] Need A Little Help menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Moonscarlet's Avatar Member
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [PQR] Need A Little Help

    Hello,
    I'd like to know (if it exists) a function that check if the player is casting/channeling (doesn't matter what) or at the end of the cast (considering delays and stuff) because it becomes very spammy like that :x
    How do I check if I (the player) has a target or not? (trying to cast something without a target is also irritating)

    Also I saw that some spells can't be cast by (CastSpellByID) like Inferno Blast, Living Bomb (maybe others but that's what I've tried so far), for Inferno Blast I tried using the ID for Fire Blast and it worked maybe because it replaces it but for Living Bomb I don't know, that's weird because it has its own spell ID, so why can't we use it?

    Thanks in advance. :>
    Last edited by Moonscarlet; 10-20-2013 at 11:03 PM.

    [PQR] Need A Little Help
  2. #2
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)
    PHP Code:
    if castInterruptable then
        
    --target is casting something that is interruptable.
        --
    the following 2 variables are named logically... value is in seconds.
        
    local timeSinceStart = (GetTime() * 1000 castStartTime) / 1000
        local timeLeft 
    = ((GetTime() * 1000 castEndTime) * -1) / 1000
        local castTime 
    castEndTime castStartTime
        local currentPercent 
    timeSinceStart castTime 100000

        
    --interrupt percentage check
        
    if currentPercent &ltPQR_InterruptPercent then
            
    return false
        end 
    Checks to see if spell being casted isn't auramasteried or whatever

    PHP Code:
            if PQR_IsOnInterruptList(castName) or PQR_IsInterruptAll() then
                PQR_Debug
    ("Casting interrupt on "..customTarget)
                
    CastSpellByID(interruptSpellcustomTarget)
                return 
    true
            end 
    Then it flies through the interrupt lists for your class and executes.

    https://www.assembla.com/code/nova-p..._Abilities.xml


    That comes right from the nova interrupt profile
    Need a guild in the US? Visit murlocs.com

  3. #3
    Moonscarlet's Avatar Member
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wasn't asking for my target's cast to interrupt or whatever, I was asking about the player (me) casting.
    For example in the rotation if I have fireball being cast and after that comes another fireball, while the first one being cast PQR tries to cast the second, so I want something to check if I am casting or at the end of the cast so it doesn't try casting more than one at the same time :>

  4. #4
    Nerder's Avatar Contributor
    Reputation
    117
    Join Date
    Aug 2012
    Posts
    263
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use an ability higher in the rotation with...

    if UnitCastingInfo ("player") ~= nil or UnitChannelInfo ("player") ~= nil then
    return true
    end

    So if you are casting or channeling it will keep returning true there and wont proceed till youre not casting anymore. As far as the target thing all the abilities requiring a target just have a check on UnitExists ("target")

    Sent from my GT-I9300 using Tapatalk 2

  5. #5
    Moonscarlet's Avatar Member
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Nerder, going to try it soon :>

Similar Threads

  1. Need a little help +rep whoever can do it.
    By farrer686 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 02-08-2008, 03:41 PM
  2. need a little help with autoit
    By Demonshade in forum Community Chat
    Replies: 2
    Last Post: 07-27-2007, 05:20 AM
  3. Need a little help for free time of WoW =(
    By Pwnnned in forum World of Warcraft General
    Replies: 3
    Last Post: 06-09-2007, 11:40 AM
  4. i need a little help
    By littledeath in forum Community Chat
    Replies: 3
    Last Post: 05-30-2007, 07:11 PM
  5. i needs a little help
    By davidpro in forum Art & Graphic Design
    Replies: 2
    Last Post: 05-20-2007, 12:42 PM
All times are GMT -5. The time now is 08:04 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