Need help with /script menu

User Tag List

Results 1 to 6 of 6
  1. #1
    nilum's Avatar Member
    Reputation
    9
    Join Date
    Jun 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with /script

    Okay I have a working hack that unlocks the protected lua functions in WoW (thanks to a contributor over at SkillHackers).

    The only problem is when I run a macro I get this annoying error message if I am not in range of the target, or unable to cast the spell.

    The first macro I tried was:

    Code:
    /script CastSpellByName("Sinister Strike");
    I would get this error message:

    A macro script has been blocked from an action only available to the Blizzard UI
    I would not get that error as long as I was in range of the target and able to use the spell (having enough energy). The script did work though I just got an annoying message. Then it was suggested to me to use IsUsableSpell and IsSpellInRange checks so I made this macro:

    Code:
    /script useable=IsUsableSpell("Sinister Strike"); inrange=IsSpellInRange("Sinister Strike");if((usable)and(inrange)) then CastSpellByName("Sinister Strike"); end
    I am still getting that error message though.

    Any help?

    Need help with /script
  2. #2
    nilum's Avatar Member
    Reputation
    9
    Join Date
    Jun 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay. i sort of fixed it. I am not use to lua booleans.

    I changed if((usable)and(inrange)) to if((useable==1)and(inrange==1)).

    However, when I get close to the target sometimes the client thinks I am close enough when I really am not. So I still get the message right before I reach the target if I am spamming the button. I won't get the message if I am standing far away though.

    What I would like to do is just completely disable the error message. Lua Errors are disabled in my interface options btw.

  3. #3
    BonutDot's Avatar Contributor
    Reputation
    235
    Join Date
    Aug 2006
    Posts
    418
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /script UIErrorsFrame:Hide()

    I think that's what you want. If you want them back:

    /script UIErrorsFrame:Clear(); UIErrorsFrame:Show()

  4. #4
    nilum's Avatar Member
    Reputation
    9
    Join Date
    Jun 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What you posted works, but not for the right error message.

    It gets rid of the red error messages that usually pop up in the middle of the screen that let you know if you are facing the wrong way.

    This error message actually pops up in a window and you need to click a button to close it.

  5. #5
    nilum's Avatar Member
    Reputation
    9
    Join Date
    Jun 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm it was suggested to me to run:

    Code:
    RunMacroText("/cast Sinister Strike");
    This works, but I am wondering if I am going to have similar problems with other protected functions.

  6. #6
    BonutDot's Avatar Contributor
    Reputation
    235
    Join Date
    Aug 2006
    Posts
    418
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you use an addon such as !Swatter or something similar, it will suppress error messages.

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 01:30 AM. 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