[Help] Fairly large Lua script problem menu

User Tag List

Results 1 to 11 of 11
  1. #1
    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)

    [Help] Fairly large Lua script problem

    Ok, im having yet another problem with an lua script, this one is a massive one, but i really want it to work so this boss encounter will be more interesting rather than just white damage again. so its a big one can somone just point out the problems to me so i can fix them myself mark them in red etc if you give me a script please, much appreciated...

    Code:
    function Phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 83 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "So you can fight, Lets see how you hand my first Minion, Go Nalham destroy the intruders!")
      pUnit:FullCastSpell(40428)
      pUnit:SpawnCreature(75010,5202.161133,-571.880554,289.169220,1,1771,300000)
      pUnit:RegisterEvent("Phase_2",10000, 0)
     end
    end
    
    function Phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 67 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "You try my patience intruders! You have forced me to call uppon my voidwalker, May he rip you to Shredds!")
      pUnit:FullCastSpell(40428)
      pUnit:SpawnCreature(75011,5202.161133,-571.880554,289.169220,1,1771,300000)
      pUnit:RegisterEvent("Phase_3",10000, 0)
     end
    end 
    
    function Phase_3(pUnit, Event)
     if pUnit:GetHealthPct() < 51 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "So you refuse to die even still??, Then i have no choice but to releash the Hound on you all, may you suffer an aggonizing Death!")
      pUnit:FullCastSpell(40428)
      pUnit:SpawnCreature(75012,5202.161133,-571.880554,289.169220,1,1771,300000)
      pUnit:RegisterEvent("Phase_4",10000, 0)
     end
    end
    
    function Phase_4(pUnit, Event)
     if pUnit:GetHealthPct() < 35 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "Come my Infernal! Turn these intruders to dust!")
      pUnit:FullCastSpell(40428)
      pUnit:SpawnCreature(75013,5202.161133,-571.880554,289.169220,1,1771,300000)
      pUnit:RegisterEvent("Phase_5",10000, 0)
     end 
    end
    
    function Phase_5(pUnit, Event)
     if pUnit:GetHealthPct() < 19 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "You are forcing your own doom!")
      pUnit:FullCastSpell(40428)
      pUnit:SpawnCreature(75014,5202.161133,-571.880554,289.169220,1,1771,300000)
      pUnit:RegisterEvent("Phase_6",10000, 0)
     end
    end
    
    function Phase_6(pUnit, Event)
     if pUnit:GetHealthPct() < 3 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (12, 0, "Now you have Angered me! If you so please i shall show you the Power of Grand Summoner Jul'Z!!")
      pUnit:FullCastSpell(40428)
      pUnit:FullCastSpell(20620)
      pUnit:SpawnCreature(75015,5202.161133,-571.880554,289.169220,1,1771,450000)
      pUnit:RegisterEvent("Phase_1a",10000, 0)
     end
    end
    
    function Phase_1a(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:SummonCreature(75016,5202.161133,-571.880554,289.169220,1,1771,600000)
      pUnit:SendChatMessage(12,0,"Now You Meet my Greatest Creation, and he WILL make Meat of you ALL!!!")
     end
    end
    
    function GSJul'z_OnCombat(pUnit, Event)
     pUnit:RegisterEvent("Phase_1",10000, 0)
     pUnit:SendChatMessage (11, 0, "What is this? More sacrifices to the Demonic? Wonderful you will work perfectly.")
    end
    RegisterUnitEvent(75001, 1, "GSJul'z_OnCombat")
    the summoned monsters are supposed to spawn inside shadow hold in felwood in the room with the altar and stuff, just if you are wondering not sure what to do with the "o" part so i put 1, i dont know if its important.

    [Help] Fairly large Lua script problem
  2. #2
    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)
    So what seems to be the problem?

  3. #3
    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)
    sadly same as last time, the OnCombat doesnt work, and its probably some silly little mistake that i cant seem to find, and is annoying me to no end >< as for the spawns none of those are working and i dont really know how to write those out in the first place seeing how I am including some newer stuff, than with the last one

  4. #4
    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)
    Any errors in the console?

  5. #5
    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)
    no, getting no errors

    [Edit]:im willing to be its another problem with my script, like the one The Betrayer fixed for meh....i just cant see what he did that im not doing in this script.
    Last edited by Muruk; 03-16-2008 at 07:12 PM.

  6. #6
    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)
    hmmmm..... this one is gona take longer to fix i just know it *has absoutly no clue what causes his scripts to crap up...*

  7. #7
    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)
    I'd try removing the apostrophe from the function name.

  8. #8
    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, figures , the problem is something i was intending to have, but im not allowed to in the first place -.- thanks a billion dude!

  9. #9
    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)
    I have another question to ask, Now that the summons work, how do i get them to stop spawning, because i just .killed them and they respawned at the summon point, is there a way to stop this, i sure hope so...

  10. #10
    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)
    function YourBoss_onDeath(pUnit, Event)
    pUnit:RemoveEvents()
    end
    RegisterUnitEvent(75001, <Don't remember the event ID for death>, "YourBoss_onDeath")

  11. #11
    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)
    ooooooohhhhhh thanks!!! I would +rep but I already did earlier and it says i have to spread it out

Similar Threads

  1. [HELP] Ending a lua script
    By Ezikielth in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-28-2008, 11:01 AM
  2. LUA script problem
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-09-2008, 06:32 PM
  3. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
  4. Help with this LUA script
    By jordash in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 03-08-2008, 04:19 PM
  5. Lua scripts problem
    By Mr.Ice.Cold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-02-2008, 11:44 AM
All times are GMT -5. The time now is 04:26 AM. 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