[PQR] How to know i successfully cast a spell? menu

User Tag List

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

    [PQR] How to know i successfully cast a spell?

    I'm trying to cast a spell only one time when a trinket proc.

    if delay > GetTime() then
    return false
    else
    delay = 0
    end

    if UnitBuffID("player",######) then
    if PQR_RotationStarted == true then
    PQR_RotationStarted = false
    PQR_AddToSpellDelayList(####, 0, 1)
    end
    PQR_RotationStarted = true
    delay = GetTime() + 10 -- 10 sec delay
    return true
    end

    It's possible?

    [PQR] How to know i successfully cast a spell?
  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)
    no idea if this is what you want but

    PHP Code:
    local delay 10 --secs

    if v_cast == nil then v_cast false end
    if v_time == nil then v_time GetTime() end

    -- takes the time of the proc and if its greater than the cast time of the spell then
    if select(7UnitBuffID("player"id)) - GetTime() > select(7GetSpellInfo(id)) then 
         v_cast 
    true --sets a variable to true
    else
         
    v_cast false -- sets to false
    end

    if v_cast == true and GetTime() - v_time delay then
        v_time 
    GetTime()
        
    v_cast false
        CastSpellByName
    (GetSpellInfo(id))
    end 

    Please if someone helped you donate rep to them.

Similar Threads

  1. LUA help, how to make npc cast a spell at a certain HP???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-30-2008, 06:27 PM
  2. How to know how many time u got reported ?
    By darkayo in forum World of Warcraft General
    Replies: 1
    Last Post: 03-09-2008, 05:39 PM
  3. [POSSIBLY NEW]How to run while casting *ANY SPELL*?
    By Bareno in forum World of Warcraft Exploits
    Replies: 103
    Last Post: 01-29-2008, 07:13 PM
  4. How To hold weapon whilst Casting!
    By Dreadz0r in forum World of Warcraft General
    Replies: 4
    Last Post: 12-27-2007, 02:07 AM
  5. How to know if your a wow addict.
    By Hwang Mi Hee in forum Community Chat
    Replies: 19
    Last Post: 06-19-2007, 10:26 AM
All times are GMT -5. The time now is 04:21 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