Need help with LUA menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with LUA

    Could someone tell me why this lua is not working? my boss is called Morphrim the Immovable,ingame he dont even cast one of these. Plz help i will +Rep


    --[[ Morphrim the Immovable ]]--

    function Immovable_CurseofBlood(Unit, event, miscunit, misc)
    print "Immovable CurseofBlood"
    Unit:FullCastSpellOnTarget(40412,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Feel the curse of the Monolith!")
    end

    function Immovable_RockShell(Unit)
    print "Immovable RockShell"
    Unit:FullCastSpell(33810)
    Unit:SendChatMessage(11, 0, "My skin is as hard as rock!Do you really think your mortal weapons could hurt me?!")
    end

    function Immovable_StoneGaze(Unit, event, miscunit, misc)
    print "Immovable StoneGaze"
    Unit:FullCastSpellOnTarget(33128,Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Do you know how you feel when you are a statue?You will learn it!")
    end

    function Immovable_ShellofLife(Unit)
    print "Immovable ShellofLife"
    Unit:FullCastSpell(33810)
    Unit:SendChatMessage(11, 0, "Do you seriously think these pathetic spells have even a little chance to hurt me?")
    end

    function Immovable(unit, event, miscunit, misc)
    print "Immovable"
    unit:RegisterEvent("Immovable_CurseofBlood",10000,0)
    unit:RegisterEvent("Immovable_RockShell",25000,0)
    unit:RegisterEvent("Immovable_StoneGaze",21000,0)
    unit:RegisterEvent("Immovable_ShellofLife",25000,0)
    end

    RegisterUnitEvent(20905,1,"Immovable")

    Need help with LUA
  2. #2
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can clean your script by removing miscunits and miscs
    the problem here is, LUA is case sensitive. You need to have big letters right.
    Change all unit, event to Unit, Event.
    In function Immovable, either dont have Event .
    Repaired it for you anyways.
    Code:
    --[[ Morphrim the Immovable ]]--
    
    function Immovable_CurseofBlood(Unit, Event)
    print "Immovable CurseofBlood"
    Unit:FullCastSpellOnTarget(40412, Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Feel the curse of the Monolith!")
    end
    
    function Immovable_RockShell(Unit, Event)
    print "Immovable RockShell"
    Unit:FullCasSpell(33810)
    Unit:SendChatMessage(11, 0, "My skin is as hard as rock! Do you relaly think your mortal weapons could hurt me?!")
    end
    
    function Immovable_StoneGaze(Unit, Event)
    print "Immovable StoneGaze"
    Unit:FullCastSpellOnTarget(33128, Unit:GetClosestPlayer())
    Unit:SendChatMessage(11, 0, "Do you know how you feel when you are a statue? You will learn it!")
    end
    
    function Immovable_ShellofLife(Unit, Event)
    print "Immovable ShellofLife"
    Unit:FullCastSpell(33810)
    Unit:SendChatMessage(11, 0, "Do you seriously think these pathetic spells have even a little chance to hurt me?")
    end
    
    function Immovable(Unit, Event)
    print "Immovable"
    Unit:RegisterEvent("Immovable_CurseofBlood", 10000, 0)
    Unit:RegisterEvent("Immovable_RockShell", 25000, 0)
    Unit:RegisterEvent("Immovable_StoneGaze", 21000, 0)
    Unit:RegisterEvent("Immovable_ShellofLife", 25000, 0)
    end
    
    RegisterUnitEvent(20905, 1, "Immovable")
    Last edited by EcHoEs; 02-28-2008 at 11:40 AM.


  3. #3
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TY very MUCh i'm gonna test it out , +Rep !

  4. #4
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Np, if you need any LUA help, ask me ;D


  5. #5
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry but it didnt work , i could not even load it , it said there was an error at line 15

  6. #6
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed, try it again.


  7. #7
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try Changeing all Unit to pUnit
    Cheese Cake?

  8. #8
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also Try changing


    "function Immovable"
    to
    function Immovable_OnCombat
    Cheese Cake?

  9. #9
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk ill try

    Edit: Could u post the version with the changes u told me to do ? Cuz honestly i dont think if i change it myself it will work , theres alot of unit , and im not sure wich one to change and wich one not to change and samething with function
    Last edited by Arugos; 02-28-2008 at 11:49 AM.

  10. #10
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Copy paste the code from code box, I edited it


  11. #11
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk ty very much , +Rep to both of you

  12. #12
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    --[[ Morphrim the Immovable ]]--
    
    function Immovable_CurseofBlood(pUnit, Event)
    print "Immovable CurseofBlood"
    pUnit:FullCastSpellOnTarget(40412, Unit:GetClosestPlayer())
    pUnit:SendChatMessage(11, 0, "Feel the curse of the Monolith!")
    end
    
    function Immovable_RockShell(pUnit, Event)
    print "Immovable RockShell"
    pUnit:FullCasSpell(33810)
    pUnit:SendChatMessage(11, 0, "My skin is as hard as rock! Do you relaly think your mortal weapons could hurt me?!")
    end
    
    function Immovable_StoneGaze(pUnit, Event)
    print "Immovable StoneGaze"
    pUnit:FullCastSpellOnTarget(33128, Unit:GetClosestPlayer())
    pUnit:SendChatMessage(11, 0, "Do you know how you feel when you are a statue? You will learn it!")
    end
    
    function Immovable_ShellofLife(pUnit, Event)
    print "Immovable ShellofLife"
    pUnit:FullCastSpell(33810)
    pUnit:SendChatMessage(11, 0, "Do you seriously think these pathetic spells have even a little chance to hurt me?")
    end
    
    function Immovable_OnCombat(pUnit, Event)
    print "Immovable_OnCombat"
    pUnit:RegisterEvent("Immovable_CurseofBlood", 10000, 0)
    pUnit:RegisterEvent("Immovable_RockShell", 25000, 0)
    pUnit:RegisterEvent("Immovable_StoneGaze", 21000, 0)
    pUnit:RegisterEvent("Immovable_ShellofLife", 25000, 0)
    end
    
    RegisterUnitEvent(20905, 1, "Immovable_OnCombat")
    Edited Ver.
    Cheese Cake?

  13. #13
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty very much

  14. #14
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    everything u guys posted didnt work so far ..wtf is my problem? if my mob is called Morphrim the Immovable , do i have to put only 'Immovable' in the script , like Immovable_CurseofBlood ?

  15. #15
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tell me the loading error?
    Cheese Cake?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Lua][ArcEmu] Need help with Lua will Rep
    By Pedregon in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 03-20-2010, 02:39 PM
  2. Need help with Lua script
    By Pieterkii in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 03-04-2010, 07:07 AM
  3. Need help with LUA Boss please!
    By itsonebay in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 02-23-2010, 11:23 AM
  4. Need help with LUA Hearthstone 3.1.1
    By andreasv18_2005 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 05-16-2009, 08:13 AM
  5. Need help with LUA
    By marcelo_20xx in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 11-29-2008, 11:22 AM
All times are GMT -5. The time now is 05:27 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