[Release] A few lua scripts menu

User Tag List

Results 1 to 2 of 2
  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)

    [Release] A few lua scripts

    I made a couple of lua scripts, and decided to release them to you guys. Just replace "<Spawn ID here>" with the spawn ID. Lol.

    Warrior lua:
    Code:
    function war_1(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "I shall not perish!")
      pUnit:FullCastSpell(14204)
      pUnit:RegisterEvent("war_2",1000, 0)
     end
    end
     
    function war_2(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "Face my wrath!!")
      pUnit:FullCastSpell(12292)
      pUnit:RegisterEvent("war_3",1000, 0)
     end
    end
     
    function war_3(pUnit, Event)
     if pUnit:GetHealthPct() < 30 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "Argh!!")
      pUnit:FullCastSpell(12331)
      pUnit:RegisterEvent("war_4",1000, 0)
     end
    end
    
    function war_4(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "This is my last chance..")
      pUnit:FullCastSpell(12976)
     end
    end
     
    function war_start(pUnit, Event)
     pUnit:RegisterEvent("war_1",1000, 0)
     pUnit:SendChatMessage (11, 0, ", you will not pass!")
    end
    RegisterUnitEvent(<Spawn ID here>, 1, "war_start")
    Skeletal Dragon: (He doesn't talk)
    Code:
    function YAY_1(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(30926)
      pUnit:RegisterEvent("YAY_2",1000, 0)
     end
    end
     
    function YAY_2(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(21858)
      pUnit:RegisterEvent("YAY_3",1000, 0)
     end
    end
     
    function YAY_3(pUnit, Event)
     if pUnit:GetHealthPct() < 30 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(25550)
      pUnit:RegisterEvent("YAY_4",1000, 0)
     end
    end
    
    function YAY_4(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(43218)
     end
    end
     
    function YAY_start(pUnit, Event)
     pUnit:RegisterEvent("YAY_1",1000, 0)
    end
    RegisterUnitEvent(<Spawn ID here>, 1, "YAY_start")
    Banshee:
    Code:
    function bansh_1(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(38840)
      pUnit:SendChatMessage (11, 0, "DIE!!!")
      pUnit:RegisterEvent("bansh_2",1000, 0)
     end
    end
     
    function bansh_2(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(36127)
      pUnit:SendChatMessage (11, 0, "Die !")
      pUnit:RegisterEvent("bansh_3",1000, 0)
     end
    end
     
    function bansh_3(pUnit, Event)
     if pUnit:GetHealthPct() < 30 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(39666)
      pUnit:SendChatMessage (11, 0, "Nothing may harm me!")  
      pUnit:RegisterEvent("bansh_4",1000, 0)
     end
    end
    
    function bansh_4(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "I will not die!")  
      pUnit:FullCastSpell(17683)
      pUnit:RegisterEvent("bansh_5",1000, 0)
     end
    end
    
    function bansh_5(pUnit, Event)
     if pUnit:GetHealthPct() < 75 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "This will be your grave!")  
      pUnit:FullCastSpell(36127)
      pUnit:RegisterEvent("bansh_6",1000, 0)
     end
    end
    
    function bansh_6(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "Die! All of you!")  
      pUnit:FullCastSpell(38840)
      pUnit:RegisterEvent("bansh_7",1000, 0)
     end
    end
    
    function bansh_7(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents();
      pUnit:SendChatMessage (11, 0, "No!!")  
      pUnit:FullCastSpell(17928)
     end
    end
     
    function bansh_start(pUnit, Event)
     pUnit:RegisterEvent("bansh_1",1000, 0)
     pUnit:SendChatMessage (11, 0, ", you will die here!")
    end
    RegisterUnitEvent(<Spawn ID here>, 1, "bansh_start")
    (The banshee was actually a boss, thats why its so long)

    Well, have fun with them
    Last edited by Lich King; 04-03-2008 at 10:59 PM.

    [Release] A few lua scripts
  2. #2
    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*
    (filler)

Similar Threads

  1. [Release] A Few LUA Ingame Tools
    By project anthrax in forum WoW EMU General Releases
    Replies: 0
    Last Post: 11-14-2009, 10:30 AM
  2. [RELEASE] Yet another Lua script
    By Zaeran in forum WoW EMU General Releases
    Replies: 8
    Last Post: 12-06-2008, 09:12 PM
  3. [Release]Shamankings/Pedregons Lua Scripts
    By Pedregon in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-15-2008, 11:56 AM
  4. [Release] Dragon boss lua script
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 04-18-2008, 07:56 PM
  5. [Release Lua] One of My First Lua Scripts
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-28-2008, 02:03 AM
All times are GMT -5. The time now is 12:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search