[WILL BE MOVED?] How to wrap a protected Lua function in an addon ? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    USAFITKEYHOLES's Avatar Member
    Reputation
    2
    Join Date
    Jan 2022
    Posts
    5
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [WILL BE MOVED?] How to wrap a protected Lua function in an addon ?

    Hello guys and sorry for posting here, I'm not sure where to ask questions.

    I'm using https://www.ownedcore.com/forums/wor...-unlocker.html (Lium - A Universal Lua Unlocker)

    Which works well on my WoW Client.

    For example, if type /run test("CastSpellByName('Legacy of the White Tiger', player)") in the chat, it will do just fine.

    BUT, if I run from my addon test("CastSpellByName('Legacy of the White Tiger', player)")

    I get a Lua error :

    Message: attempt to call local 'test' (a string value)

    Locals: test = "test"
    cycle = true
    stickyValue = "0"
    spell = "Legacy of the Emperor"
    target = "player"
    spellIndex = 33
    spellBook = "spell"
    spellID = 115921
    name = "Legacy of the Emperor"
    icon = "Interface\Icons\ability_monk_legacyoftheemperor"
    (*temporary) = "test"
    (*temporary) = "CastSpellByName('Legacy of the White Tiger', player)"
    (*temporary) = "attempt to call local 'test' (a string value)"
    GetSpellInfo = <function> defined =[C]:-1

    How do I correct this? I want the Lua interpreter to execute test("CastSpellByName()") together, and not separate the two etc.

    Thanks
    Last edited by USAFITKEYHOLES; 01-07-2022 at 07:10 AM.

    [WILL BE MOVED?] How to wrap a protected Lua function in an addon ?

Similar Threads

  1. How to get gold using lua (Noob in unlock lua)
    By lucao799 in forum World of Warcraft General
    Replies: 3
    Last Post: 07-10-2020, 10:43 AM
  2. [Selling] LOL elo boosting,promotion games,will be suprise how cheap it is
    By vooro in forum League of Legends Buy Sell Trade
    Replies: 3
    Last Post: 05-29-2013, 05:11 PM
  3. How to bypass SMS protection when posting a RMAH auction
    By makaveli10a in forum Diablo 3 Exploits
    Replies: 5
    Last Post: 10-20-2012, 06:25 PM
  4. [Trading] Being scammed, How to prevent?
    By Inspi in forum Diablo 3 Buy Sell Trade
    Replies: 2
    Last Post: 06-18-2012, 05:29 PM
  5. [How to] Farm Teron Gorefiend Trash 1000g in an H
    By Nartan in forum World of Warcraft Guides
    Replies: 26
    Last Post: 06-29-2008, 09:19 PM
All times are GMT -5. The time now is 09:48 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