A question about interrupt profiles menu

User Tag List

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

    A question about interrupt profiles

    I was looking at different interupt profiles , and in all of them i have to write the names of the spells i want to interrupt

    But why is it you cant just do like this

    Code:
    local _,_,_,_,_,_,_,_,notInterruptible = UnitCastingInfo("unit")
    
    if UnitCastingInfo("target") and notInterruptible ~= true
    
    then
    
    if PQR_SpellAvailable(47528) --Mindfreze
    then
    	CastSpellByName(GetSpellInfo(47528),"target")
    	return true 
    	
    elseif not PQR_SpellAvailable(47528) 
    then
    	CastSpellByName(GetSpellInfo(47476),"target") --Strangulate
    
    return true end
    
    end
    It interrupts everytime, everyspell i can interrupt, is there something i am missing ?

    A question about interrupt profiles
  2. #2
    Alkafir's Avatar Private
    Reputation
    1
    Join Date
    Jun 2013
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After reading a bit about interrupts in PQR, i found that people use random interruppt times, so avoid looking like a bot, and i can ofcourse see that my code cant do that, and that could be a problem .

    But just to end this thread,
    i think i ended up wit something ok ,i dont have to write all the spells in to the code and it has a random interrupt time, that i can chance easy
    This part here i wrote for my rogue

    local _,_,_,_,_,_,_,_,notInterruptible = UnitCastingInfo("target")
    local _,_,_,_,startTime,endTime = UnitCastingInfo("target")
    local randomTime = math.random (500,1200)
    local InRange = IsSpellInRange(GetSpellInfo(1766),"target")

    if UnitCastingInfo("target") and notInterruptible ~= true and InRange == 1
    and PQR_SpellAvailable(1766) and ((GetTime()*1000) - randomTime) >= startTime
    then
    --PQR_WriteToChat((((endTime - startTime) / 1000) - (((endTime - startTime) / 1000) - (randomTime / 1000))), "interrupt after")
    CastSpellByName(GetSpellInfo(1766),"target")
    return true
    end
    I think i will enjoy this code, :-)

Similar Threads

  1. [Bot] Questions about making profiles for HonorBuddy
    By xbluedreamerx in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 04-10-2015, 12:14 AM
  2. Question about interrupt scripts/porgrams for PvP!
    By phorentez in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 12-30-2014, 07:00 PM
  3. [LazyBot] A question about profiles
    By Zonetic in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 01-06-2011, 05:38 AM
  4. Question about profiles.
    By kakalz in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 09-05-2010, 06:33 PM
  5. questions about model editing
    By Avianar47 in forum World of Warcraft General
    Replies: 2
    Last Post: 07-08-2006, 09:41 PM
All times are GMT -5. The time now is 04:27 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