Lua Addon/Macro question menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    kerovi's Avatar Member
    Reputation
    5
    Join Date
    Sep 2009
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Addon/Macro question

    Hello everyone, I need some help here.
    I'm trying to make something like this: Lets say on event SPELL_CAST_SUCCESS I want myself to cast counterspell which is lets say spellID = 11 when target casts flash light which is lets say spellID = 20
    It would be something like this in Lua if target:GetSpellId() == 20 then CastSpellByName("Counterspell") < But I'm not sure how it is exactly (I also got that Lua protection removal so I can use protected Lua functions)

    I would really appreciate if someone could make short working version of this. Thanks in advance.


    Summarized info:
    I want myself to cast counterspell when target casts flash light
    Last edited by stoneharry; 06-22-2011 at 07:00 AM. Reason: Added prefix because apparently you can't read the stickied thread saying the rules.

    Lua Addon/Macro question

Similar Threads

  1. Lua Scripting, a question on mob targeting
    By adarant_dru in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-08-2008, 07:28 PM
  2. Macro Question
    By Osiris183 in forum World of Warcraft General
    Replies: 1
    Last Post: 04-22-2008, 11:00 PM
  3. Macro Question
    By SpiritWolf in forum World of Warcraft General
    Replies: 3
    Last Post: 03-22-2008, 07:42 PM
  4. Looking for a Riding Crop addon/macro only for Flying Mount!
    By Violence in forum WoW UI, Macros and Talent Specs
    Replies: 7
    Last Post: 10-15-2007, 03:10 AM
  5. Macro Question
    By BlueHazard in forum World of Warcraft General
    Replies: 1
    Last Post: 02-23-2007, 06:09 PM
All times are GMT -5. The time now is 11:39 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search