[Help] Lua Script Not Working menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well at least the ZulRin_OnCombat is now working, he says the message, but when i get him to 75% hp he does not cast the spell.

    [Help] Lua Script Not Working
  2. #17
    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, try this out:
    Code:
    function Phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 76 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "ARRRG, You Shall Pay for your Incolence!!")
      pUnit:FullCastSpell(19953)
      pUnit:RegisterEvent("Phase_2",1000, 0)
     end
    end
     
    function Phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 51 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "I will crush you, all of you!")
      pUnit:FullCastSpell(19953)
      pUnit:RegisterEvent("Phase_3",1000, 0)
     end
    end
     
    function Phase_3(pUnit, Event)
     if pUnit:GetHealthPct() < 36 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "You are stronger than you appear, but can you face my rage one last time!?")
      pUnit:FullCastSpell(19953)
     end
    end
     
    function ZulRin_OnCombat(pUnit, Event)
     pUnit:RegisterEvent("Phase_1",1000, 0)
     pUnit:SendChatMessage (11, 0, "Who dares intrude on Vash's Terrace, I shall make you regret comming here!")
    end
    RegisterUnitEvent(75000, 1, "ZulRin_OnCombat")
    EDIT: messed up, try it now

  3. #18
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk leme test that script, I just tried it but i dont think i restarted the server correctly so give me a couple minutes

  4. #19
    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)
    kk leme test that script, I just tried it but i dont think i restarted the server correctly so give me a couple minutes
    Ok, tell me if it works

  5. #20
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow, you would think it would work, but for whatever reason it is not working, the so far i can only get him to say "Who dares intrude on Vash's Terrace,..."

  6. #21
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look at the console to see if it says anything :P

  7. #22
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait sorry dude, i didnt see your edit, whatever you changed when you editted it it worked perfectly, what did you do?? i gotta know!

  8. #23
    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 yay! Well, I just did it the way I normally did it, the reason it didn't work is probably because there were a few errors in your first one

  9. #24
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    :confused: what were the errors?? not to be a bother but i really wana learn, gotta know what i did wrong so i can fix it next time around

  10. #25
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then take a look at both scripts side by side and compare..

  11. #26
    Muruk's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol ooooooooo kkkkkkkkkkkkkkkkkk

  12. #27
    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)
    Ya do that, and make sure you look at everything because even the spaces count

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Lua Script] Lua Script Not Working
    By drpwnage77 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-23-2010, 05:50 PM
  2. Halp please lua script not working
    By thebigman in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 09-29-2009, 06:06 PM
  3. LUA script not working
    By Dz The Rage in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-04-2009, 09:26 PM
  4. LUA script not working
    By pedobear123 in forum World of Warcraft General
    Replies: 12
    Last Post: 09-01-2008, 09:38 AM
  5. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
All times are GMT -5. The time now is 11:21 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