[Help] Lua not working menu

Shout-Out

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Lua not working

    I'm new to lua, and I tried making a lua boss fight, but it won't work, could anyone tell me whats wrong? Heres the lua:
    Code:
    function Infernal(Unit)
    Unit:SendChatMessage(5, 0, "Come my infernal!")
    end
    
    function Boss_Nova(Unit)
    Unit:CastSpell(33846)
    Unit:SendChatMessage(12, 0, "Face my wrath!")
    end
    
    function Polymorph(Unit)
    Unit:SendChatMessage(12, 0, "You dare hurt me?! You will die!")
    end
    
    function Enter_Combat(Unit)
    Unit:SendChatMessage(12, 0, "You will not pass me!")
    end
    
    function Boss_OnCombat(Unit, event)
    Unit:RegisterEvent("Boss_Phase1",1000, 0)
    Unit:RegisterEvent("Enter_Combat",1000, 0)
    end
    RegisterUnitEvent(ENTRY 2000007, 1, "Boss_OnCombat")
    
    function Boss_Phase1(Unit, event)
    if Unit:GetHealthPct() < 70 then
    Unit:CastSpell(33846)
    Unit:RegisterEvent("Boss_Nova",10000, 0)
    Unit:RegisterEvent("Boss_Phase2",1000, 0)
    end
    end
    
    
    function Boss_Phase2(Unit, event)
    if Unit:GetHealthPct() < 50 then
    Unit:RemoveEvents()
    Unit:CastSpell(23426)
    Unit:RegisterEvent("Infernal",10000, 0)
    Unit:RegisterEvent("Boss_Phase3",10000, 0)
    end
    end
    
    
    function Boss_Phase3(Unit, event)
    if Unit:GetHealthPct() < 50 then
    Unit:RemoveEvents()
    Unit:CastSpell(23603)
    Unit:RegisterEvent("Polymorph",10000, 0)
    end
    end

    [Help] Lua not working
  2. #2
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Infernal(PUnit)
    Unit:SendChatMessage(5, 0, "Come my infernal!")
    end
    
    function Boss_Nova(PUnit)
    Unit:CastSpell(33846)
    Unit:SendChatMessage(12, 0, "Face my wrath!")
    end
    
    function Polymorph(PUnit)
    Unit:SendChatMessage(12, 0, "You dare hurt me?! You will die!")
    end
    
    function Enter_Combat(PUnit)
    Unit:SendChatMessage(12, 0, "You will not pass me!")
    end
    
    function Boss_OnCombat(PUnit, event)
    Unit:RegisterEvent("Boss_Phase1",1000, 0)
    Unit:RegisterEvent("Enter_Combat",1000, 0)
    end
    RegisterUnitEvent(ENTRY 2000007, 1, "Boss_OnCombat")
    
    function Boss_Phase1(PUnit, event)
    if Unit:GetHealthPct() < 70 then
    Unit:CastSpell(33846)
    Unit:RegisterEvent("Boss_Nova",10000, 0)
    Unit:RegisterEvent("Boss_Phase2",1000, 0)
    end
    end
    
    
    function Boss_Phase2(PUnit, event)
    if Unit:GetHealthPct() < 50 then
    Unit:RemoveEvents()
    Unit:CastSpell(23426)
    Unit:RegisterEvent("Infernal",10000, 0)
    Unit:RegisterEvent("Boss_Phase3",10000, 0)
    end
    end
    
    
    function Boss_Phase3(PUnit, event)
    if Unit:GetHealthPct() < 50 then
    Unit:RemoveEvents()
    Unit:CastSpell(23603)
    Unit:RegisterEvent("Polymorph",10000, 0)
    end
    end
    That should do it.

  3. #3
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump
    No one?

  4. #4
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe? Posting at the same time I hatez that

  5. #5
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, ok, I'll try it

  6. #6
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol, same time post again

  7. #7
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried it, and it didn't work

  8. #8
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, Let me see what I can do.

  9. #9
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here.
    TheBetrayer
    Use that.
    Its all I can do.. I tried.

  10. #10
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, +Rep if you get it to work

  11. #11
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, +Rep for the link

  12. #12
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha thanks.. 20 rep now

  13. #13
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I looked at some stuff, and changed the script, I was all confused, but now it won't load in ascent-world.exe. Thw lua is:
    Code:
    function Zeg_nova(pUnit, Event)
     if pUnit:GetHealthPct() <70 then
      pUnit:Remove Events();
      pUnit:SendChatMessage (12, 0, "Face my wrath!"
      pUnit:FullCastSpell(30852)
      pUnit:RegisterEvent("Zeg_infernal",1000, 0)
     end
    end
    
    function Zeg_infernal(pUnit, Event)
     if pUnit:GetHealthPct() <50 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "Come my infernal! Aid me!")
      pUnit:FullCastSpell(23426)
      pUnit:RegisterEvent("Zeg_polymorph",1000, 0)
     end
    end
    
    function Zeg_polymorph(pUnit, Event)
     if pUnit:GetHealthPct() <30 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "You dare hurt me?! Die !"
      pUnit:FullCastSpell(23603)
     end
    end
    
    function Zeg_start(pUnit, Event)
     pUnit:RegisterEvent("phase_1",1000, 0
     pUnit:SendChatMesage (12, 0, ", you will die!")
    end
    RegisterUnitEvent(2000007, 1, "Zeg_nova")
    and the error on ascent.exe is:

  14. #14
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump, anyone?

  15. #15
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I fixed that now the lua is
    Code:
    function Zeg_nova(pUnit, Event)
     if pUnit:GetHealthPct() <70 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "Face my wrath!"
      pUnit:FullCastSpell(30852)
      pUnit:RegisterEvent("Zeg_infernal", 1000, 0)
     end
    end
    
    function Zeg_infernal(pUnit, Event)
     if pUnit:GetHealthPct() <50 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "Come my infernal! Aid me!")
      pUnit:FullCastSpell(23426)
      pUnit:RegisterEvent("Zeg_polymorph", 1000, 0)
     end
    end
    
    function Zeg_polymorph(pUnit, Event)
     if pUnit:GetHealthPct() <30 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "You dare hurt me?! Die !"
      pUnit:FullCastSpell(23603)
     end
    end
    
    function Zeg_start(pUnit, Event)
     pUnit:RegisterEvent("Zeg_nova", 1000, 0
     pUnit:SendChatMesage (12, 0, ", you will die!")
    end
    RegisterUnitEvent(2000007, 1, "Zeg_start")
    And now I get a new error:

Page 1 of 2 12 LastLast

Similar Threads

  1. brand new lua(not working in game need help)
    By Flake0207 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-24-2009, 04:03 PM
  2. HELP!!! Edits not Working
    By Endor in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 05-21-2008, 05:59 AM
  3. [Help] Quests not working.... wierd help?
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 03-27-2008, 09:51 AM
  4. [need help] instance not working no my server
    By zaynath in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-09-2008, 10:07 AM
  5. [HELP] WPE not working ?
    By Kzaf in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 03-06-2008, 12:23 PM
All times are GMT -5. The time now is 01:07 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