Hearthsone rejecting my Lua menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Moaradin's Avatar Contributor
    Reputation
    163
    Join Date
    Feb 2008
    Posts
    439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hearthsone rejecting my Lua

    im pretty sure im doing something wrong but Idk, I just started and its already giving me Errors.



    Code:
    function XT-002_Deconstructor_OnCombat(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "New toys? For me? I promise I won't break them this time!")
    pUnit:RegisterEvent("XT-002_Deconstructor_Tympanic_Tantrum", 60000, 0)
    pUnit:RegisterEvent("XT-002_Deconstructor_Light_Bomb", 20000, 0)
    pUnit:RegisterEvent("XT-002_Deconstructor_Gravity_Bomb", 30000, 0)
    end
    
    function XT-002_Deconstructor_OnLeaveCombat(pUnit, Event)
    pUnit:RemoveEvents()
    end
    
    function XT-002_Deconstructor_OnKillTarget(pUnit, Event)
    local choice = math.random(1, 2)
       if  (choice == 1) then
            pUnit:PlaySoundToSet(15728)
            pUnit:SendChatMessage(14, 0, "I... I think I broke it.")
    
    elseif (choice == 2) then
            pUnit:PlaySoundToSet(15729)
            pUnit:SendChatMessage(14, 0, "I guess it doesn't bend that way.")
    
    
    end
    end
    
    
    function XT-002_Deconstructor_OnDeath(pUnit, Event)
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(14, 0, "You are bad... Toys... Very... Baaaaad!")
    end
    
    RegisterUnitEvent(33293, 1, "XT-002_Deconstructor_OnCombat")
    RegisterUnitEvent(33293, 2, "XT-002_Deconstructor_OnLeaveCombat")
    RegisterUnitEvent(33293, 3, "XT-002_Deconstructor_OnKillTarget")
    RegisterUnitEvent(33293, 4, "XT-002_Deconstructor_OnDeath")
    
    function XT-002_Deconstructor_Tympanic_Tantrum(pUnit, Event)
    pUnit:FullCastSpell(62776)
    end
    
    function XT-002_Deconstructor_Light_Bomb(pUnit, Event)
    pUnit:FullCastSpellOnTarget(63018, pUnit:GetRandomPlayer(0))
    end
    
    function XT-002_Deconstructor_Gravity_Bomb(pUnit, Event)
    pUnit:FullCastSpellOnTarget(63024, pUnit:GetRandomPlayer(0))
    end
    Anyone know whats wrong?

    thanks
    Last edited by Moaradin; 05-04-2009 at 08:57 PM.

    +rep people who help you

    Hearthsone rejecting my Lua
  2. #2
    Hellgawd's Avatar Member
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XT-002_Deconstructor


    ^ change it to sometihng like

    XT002_Destructor

    ANd it will work Do this all throughou the file

  3. #3
    Moaradin's Avatar Contributor
    Reputation
    163
    Join Date
    Feb 2008
    Posts
    439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah alright, thanks. Works but probably wont be able to script this boss. Spells or something must not be added yet. Server freezes when u get in combat.

    +rep people who help you

  4. #4
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure...but did Hearthstone support lua?

    I hear something about this...work other lua's?

  5. #5
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aspire-Heartstone, doesn't support Lua as they broke it when they entered a patch above 3.0.3 or something. If you wanna use Lua take ArcEmu, and custom make and import this boss to the Database, since ArcEmu only supports 3.0.9 atm.

    Else you would need to find the script in C++ somewhere, or have someone make it in C++ or learn how to code C++ and make it yourself :b

  6. #6
    dexterkris's Avatar Member
    Reputation
    14
    Join Date
    Jan 2009
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try using Hearthstone with Sun++

  7. #7
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dexterkris View Post
    Try using Hearthstone with Sun++
    Doesn't matter what you use, lua is bonked on 3.1.1
    Life Puzzler WoW - Website | Forums

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 12:11 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