Scripting LUA 101 menu

User Tag List

Page 9 of 9 FirstFirst ... 56789
Results 121 to 132 of 132
  1. #121
    virgil85's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Me again !:wave:
    I looked over my lua script a copule of times and can't figure it out ( Btw It's a script from another guide - Modified it a little .. )

    Code:
    function phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 99 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "This is just the beggining FOOLS!")
      pUnit:FullCastSpellOnTarget(47248,Unit:GetMainTank())
      pUnit:PlaySoundToSet(11803)
      pUnit:RegisterEvent("phase_2",1000, 0)
     end
    end
    
    function phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 98 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "You wish you can defeat me!!!")
      pUnit:FullCastSpellOnTarget(39023,Unit:GetMainTank())
      pUnit:PlaySoundToSet(11803)
      pUnit:RegisterEvent("phase_3",1000, 0)
     end
    end
     
    function phase_3(pUnit, Event)
     if pUnit:GetHealthPct() < 97 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "Hahaha!")
      pUnit:PlaySoundToSet(11803)
      pUnit:FullCastSpellOnTarget(28627,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
      pUnit:RegisterEvent("phase_4",1000, 0)
     end
    end
     
    function phase_4(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "This isn't THE end!!")
      pUnit:PlaySoundToSet(11803)
      pUnit:FullCastSpellOnTarget(45664,Unit:GetMainTank())
      pUnit:RegisterEvent("phase_5",1000, 0)
     end
    end
     
    function phase_5(pUnit, Event)
     if pUnit:GetHealthPct() < 20 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "You CANNOT Defeat me!")
      pUnit:PlaySoundToSet(11803)
      pUnit:FullCastSpellOnTarget(40343,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(48441,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(512,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(25442,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(17668,Unit:GetMainTank())
      pUnit:FullCastSpellOnTarget(40876,Unit:GetMainTank())
      pUnit:RegisterEvent("phase_6",1000, 0)
     end
    end
    
    
    function phase_6(pUnit, Event)
     if pUnit:GetHealthPct() < 01 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage(14, 0, "No no no no ... This can't be happening!")
      pUnit:PlaySoundToSet(11803)
      pUnit:FullCastSpellOnTarget(44998,Unit:GetMainTank())
      pUnit:RegisterEvent("phase_7",1000, 0)
     end
    end
    
    function phase_7(pUnit, Event)
     if pUnit:GetHealthPct() < 100 then
      pUnit:RemoveEvents();        
      pUnit:CastSpell(46474)
     end
    end
    
    -- The OnKill and OnCombat stuff... Emerge is with this to...
    function Kil_OnKill (pUnit, Event)
    	pUnit:PlaySoundToSet(11803)
    end
    
    function Kil_EnterCombat (pUnit, Event)
    	pUnit:PlaySoundToSet(11803)
    	pUnit:CastSpell(35177)
    end
    
    function boss_start(pUnit, Event)
     pUnit:RegisterEvent("phase_1",1000, 0)
     end
    
    
    RegisterUnitEvent(25320, 1, "Kil_EnterCombat")
    RegisterUnitEvent(25320, 1, "boss_start")
    RegisterUnitEvent(25320, 3, "Kil_OnKill")
    If you could tell me what's wrong with it ..
    Well I know there's no name of the boss but no idea where to put it ...

    Scripting LUA 101
  2. #122
    AixCrasher's Avatar Member
    Reputation
    2
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ???????? man, can u plz answer all the questions?

    Tank u so much!

  3. #123
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been outta town... anyways, your not registering the correct events virgil85.

  4. #124
    Redfalcon's Avatar Member
    Reputation
    5
    Join Date
    May 2008
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woah. Amazing guide. Very helpful. Only one question... Is there anyway you can do a file type, for example: pUnit:PlaySoundFile("Sound\Creature\Kelthuzad\KelthuzadDeath.wav") . Would that work or do I have to find the ID? Great guide!

  5. #125
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, haha that wouldn't work. Thats addons, something totally different on the lua scale.

  6. #126
    Redfalcon's Avatar Member
    Reputation
    5
    Join Date
    May 2008
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh lol... Darn... Hmm... Do you know how I would find the ID if I found the Sound using MyWarcraftStudios? Sorry for the trouble.

  7. #127
    Scripted's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man +Rep

  8. #128
    Scripted's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks man +Rep

  9. #129
    Myzt's Avatar Member
    Reputation
    10
    Join Date
    Jun 2008
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Totally epic guide.
    This got me started
    +Rep

  10. #130
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide mate


  11. #131
    spollock's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick Question, How does the script know what creature to add it too? I am sorry if it's a retarded question, but I am a complete noob

  12. #132
    Maisteri's Avatar That spoiler guy
    Reputation
    441
    Join Date
    Aug 2007
    Posts
    893
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DudeWheresMYEmu View Post
    Nice guide mate
    Arent you SectorSeven? lol

Page 9 of 9 FirstFirst ... 56789

Similar Threads

  1. [Release] My Custom boss script (LUA)
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-17-2008, 03:57 AM
  2. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  3. Need help with my script [lua]
    By Satzen in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 05:19 PM
  4. [Guide] Troubleshooting LUA 101
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-10-2008, 08:23 AM
  5. script lua question
    By onilank in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-21-2007, 06:58 PM
All times are GMT -5. The time now is 03:05 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