Need help with script menu

User Tag List

Results 1 to 6 of 6
  1. #1
    masohysta's Avatar Member
    Reputation
    1
    Join Date
    Dec 2015
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with script

    if UnitBuffID("target", 23920) and UnitCastingInfo("player") == GetSpellInfo(33786)

    then


    SpellStopCasting()
    CastSpellByID(770, "target")
    end
    Im getting error "Spell is not ready yet" after stopping cast. Can someone help me?

    Need help with script
  2. #2
    masohysta's Avatar Member
    Reputation
    1
    Join Date
    Dec 2015
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no one? when script is without this part ( UnitCastingInfo("player") == GetSpellInfo(33786) ) - casting spell after this SpellStopCasting() working well

  3. #3
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if UnitBuffID("target", 23920) and UnitCastingInfo("player") == GetSpellInfo(33786)
    then
    SpellStopCasting() 
    end
    
    if UnitBuffID("target", 23920) 
    then
    CastSpellByID(770, "target") 
    end
    You need to make 2 separate statements for your script.
    Last edited by G0tha; 12-21-2015 at 07:24 AM.

  4. #4
    masohysta's Avatar Member
    Reputation
    1
    Join Date
    Dec 2015
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    added ((endCast/100) - GetTime()) < InteruptDelay and works almost perfecly,but the problem is ping and global cooldown, when im casting Cyclone(1.25s) and script stopping after 1.10, sometimes it doesnt work properly - spell isnt ready. but atm its good enough

    Later i will try with some loop, maybe it will help
    local spellName, _, _, _, startCast, endCast, _, _, canInterrupt = UnitCastingInfo("player")
    local kast= {
    33786, -- cyclone
    48461 -- wraith
    }
    for _, kast in ipairs(kast) do

    local warek = "target"
    local ainRange = IsSpellInRange(GetSpellInfo(770), warek)
    if UnitExists(warek) and ainRange == 1 then
    if PQR_IsCastingSpell(kast)
    then
    if UnitBuffID(warek, 23920)
    then if
    ((endCast/1000) - GetTime()) < 0.15
    then
    SpellStopCasting()
    CastSpellByID(770, "target")

    end
    end
    end
    end
    end
    Last edited by masohysta; 12-21-2015 at 10:38 AM.

  5. #5
    G0tha's Avatar Member
    Reputation
    9
    Join Date
    Jul 2013
    Posts
    76
    Thanks G/R
    4/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude just make separate check for Fearie Fire lol.

  6. Thanks masohysta (1 members gave Thanks to G0tha for this useful post)
  7. #6
    masohysta's Avatar Member
    Reputation
    1
    Join Date
    Dec 2015
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, it is better

Similar Threads

  1. New to LUA need help with script
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-30-2008, 01:34 PM
  2. New Private Server - Need Help with Scripting Please
    By Xerxe in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:02 AM
  3. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  4. [Help] I need help with Script's
    By PsycoDisciples in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 01-24-2008, 05:20 PM
  5. i need help with script, im a noob
    By orangegold in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 10-27-2007, 05:47 PM
All times are GMT -5. The time now is 12:43 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