[Release] Onyxia Lua Script!!! menu

User Tag List

Results 1 to 13 of 13
  1. #1
    warlcok's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Onyxia Lua Script!!!

    This is the first release completely by me!!!! (Copy and paste it into notepad and save it as Lua into your scripts folder, for those who dont know how to add a script)
    Code:
    function Onyxia_PhaseOneSpells(pUnit, event)
         local randomspell=math.random(1, 4);
         if randomspell == 1 then
    	     pUnit:FullCastSpellOnTarget(18435, pUnit:GetMainTank())
    		pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(16000, 20000), 1)
         return;
         end
         if randomspell == 2 then
    		pUnit:FullCastSpellOnTarget(18500, pUnit:GetMainTank())
    		pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(16000, 20000), 1)
         return;
         end
         if randomspell == 3 then
    		pUnit:FullCastSpellOnTarget(19983, pUnit:GetMainTank())
    		pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(16000, 20000), 1)
         return;
         end
    
         if randomspell == 4 then
    		pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(16000, 20000), 1)
    		local tbl=pUnit:GetInRangePlayers();
    		for k,v in pairs(tbl) do
    			if v:IsInBack(pUnit) == true then
    				local behindtargets={}
    				if v:IsInBack(pUnit) == true then
    					table.insert(behindtargets, v)
    					local player=math.random(1, table.getn(behindtargets))
    					pUnit:FullCastSpellOnTarget(15847,behindtargets[player])
    				end
    			end
    		end
    	end
    end
    
    function Onyxia_KnockAway(pUnit, event)
         local maintank=pUnit:GetMainTank();
         pUnit:FullCastSpellOnTarget(19633, maintank)
         --local threatcalc=pUnit:GetThreat(maintank) / (4);
         --local playerthreat=threatcalc * (3);
         --pUnit:ModThreat(maintank, playerthreat)
    end
    
    function Onyxia_BellowingRoar(pUnit, event)
         pUnit:FullCastSpell(18431)
    end
    
    function Onyxia_PhaseThree(pUnit, event)
         if pUnit:GetHealthPct() <= 40 then
    		pUnit:RemoveEvents()
    		pUnit:Land()
    		pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(16000, 20000), 1)
    		pUnit:RegisterEvent("Onyxia_KnockAway", 22000, 0)
    		pUnit:RegisterEvent("Onyxia_BellowingRoar", 18000, 0)
         end
    end
    
    function Onyxia_PhaseTwo(pUnit, event)
         if pUnit:GetHealthPct() <= 65 then
    		pUnit:RemoveEvents()
    		pUnit:SetCombatTargetingCapable(1)
    		pUnit:SetCombatMeleeCapable(1)
    		pUnit:MoveTo(-75.945, -219.245, -83.375, 0.004947)
    		pUnit:RegisterEvent("Onyxia_ReachedWaypoint", 11000, 1)
    		pUnit:RegisterEvent("Onyxia_PhaseThree", 1000, 0)
         end
    end
    
    function Onyxia_OnEnterCombat(pUnit, event)
         pUnit:SendChatMessage(14, 0, "How fortuitous, usually I must leave my lair to feed!")
         pUnit:RegisterEvent("Onyxia_PhaseOneSpells", math.random(12000, 17000), 1)
         pUnit:RegisterEvent("Onyxia_KnockAway", 22000, 0)
         pUnit:RegisterEvent("Onyxia_PhaseTwo", 1000, 0)
    end
    
    RegisterUnitEvent(10184, 1, "Onyxia_OnEnterCombat")
    
    function Onyxia_Fireball(pUnit, event)
         local player=pUnit:GetRandomPlayer(0);
         pUnit:CastSpellAoF(player:GetX(), player:GetY(), player:GetZ(), 18392)
    end
    
    function Onyxia_WaypointTwelve(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointThree", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    end
    
    function Onyxia_WaypointEleven(pUnit, event)
         pUnit:MoveTo(-4.868, -217.171, -86.710, 3.141590)
         pUnit:RegisterEvent("Onyxia_WaypointTwelve", 10000, 1)
    end
    
    function Onyxia_WaypointTen(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointEleven", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    end
    
    function Onyxia_WaypointNine(pUnit, event)
         pUnit:MoveTo(27.875, -178.547, -66.041, 3.908957)
         pUnit:RegisterEvent("Onyxia_WaypointTen", 10000, 1)
    end
    
    function Onyxia_WaypointEight(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointNine", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    end
    
    function Onyxia_WaypointSeven(pUnit, event)
         pUnit:MoveTo(-80.257, -174.240, -69.293, 5.695741)
         pUnit:RegisterEvent("Onyxia_WaypointEight", 10000, 1)
    end
    
    function Onyxia_WaypointSix(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointSeven", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    end
    
    function Onyxia_WaypointFive(pUnit, event)
         pUnit:MoveTo(-79.020, -252.374, -68.965, 0.885179)
         pUnit:RegisterEvent("Onyxia_WaypointSix", 10000, 1)
    end
    
    function Onyxia_WaypointFour(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointFive", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    end
    
    function Onyxia_WaypointThree(pUnit, event)
         pUnit:MoveTo(12.270, -254.694, -67.997, 2.395585)
         pUnit:RegisterEvent("Onyxia_WaypointFour", 10000, 1)
    end
    
    function Onyxia_WaypointTwo(pUnit, event)
    	pUnit:RegisterEvent("Onyxia_Fireball", 5000, 4)
    	pUnit:RegisterEvent("Onyxia_WaypointThree", 23001, 1)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -35.813, -169.427, -90.000, 5.384, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -35.813, -169.427, -90.000, 5.384, 14, 0)
    	pUnit:SpawnCreature(11262, -30.812, -166.395, -89.000, 5.160, 14, 0)
    	pUnit:SpawnCreature(11262, -30.233, -264.158, 89.896, 1.129, 14, 0)
    	pUnit:SpawnCreature(11262, -35.813, -169.427, -90.000, 5.384, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -35.377, -267.320, -91.000, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -35.377, -267.320, -91.000, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -36.104, -260.961, -90.600, 1.111, 14, 0)
    	pUnit:SpawnCreature(11262, -34.643, -164.080, -90.000, 5.364, 14, 0)
    	pUnit:SpawnCreature(11262, -35.377, -267.320, -91.000, 1.111, 14, 0)
    end
    
    function Onyxia_ReachedWaypoint(pUnit, event)
         pUnit:SetCombatTargetingCapable(0)
         pUnit:SetFlying()
         pUnit:MoveTo(42.621, -217.195, -66.056, 3.014011)
         pUnit:RegisterEvent("Onyxia_WaypointTwo", 10000, 1)
    end
    
    function Onyxia_OnWipe(pUnit, event)
    	 if pUnit:IsAlive() == true then
    		pUnit:Land()
    		pUnit:RemoveEvents()
    	 else
    		pUnit:RemoveEvents()
    	 end
    end
    
    RegisterUnitEvent(10184, 2, "Onyxia_OnWipe")
    
    function Whelps_OnSpawn(pUnit, event)
    	 local player=pUnit:GetClosestPlayer();
    	 pUnit:ModifyWalkSpeed(8)
    	 pUnit:SetOutOfCombatRange(10000)
    	 pUnit:MoveTo(player:GetX(), player:GetY(), player:GetZ(), player:GetO())
    end
    
    RegisterUnitEvent(11262, 18, "Whelps_OnSpawn")
    
    
    --Onyxia Warder AI
    function Warder_FireNova(pUnit, event)
    	pUnit:FullCastSpell(38728)
    	pUnit:RegisterEvent("Warder_FireNova", math.random(8000, 11000), 1)
    end
    
    function Warder_FlameLash(pUnit, event)
    	pUnit:FullCastSpell(18958)
    	pUnit:RegisterEvent("Warder_FlameLash", math.random(7000, 14000), 1)
    end
    
    function Warder_OnEnterCombat(pUnit, event)
    	pUnit:RegisterEvent("Warder_FireNova", math.random(8000, 11000), 1)
    	pUnit:RegisterEvent("Warder_FlameLash", math.random(7000, 14000), 1)
    end
    
    RegisterUnitEvent(12129, 1, "Warder_OnEnterCombat")
    
    function Warder_OnWipe(pUnit, event)
         pUnit:RemoveEvents()
    end
    
    RegisterUnitEvent(12129, 2, "Warder_OnWipe")

    THIS WAS MADE BY WARLCOK OF AC-WEB, AND MMOWNED AND NO ONE ELSE!!

    [Release] Onyxia Lua Script!!!
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I got blinded by the credits, their so large that I cant read it

  3. #3
    warlcok's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    I got blinded by the credits, their so large that I cant read it
    so you like it?? The Script

  4. #4
    JeFFyy's Avatar Member
    Reputation
    5
    Join Date
    Feb 2009
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by warlcok View Post
    so you like it?? The Script
    *Cough* got it from a SVN.. Originally credits go to someone from NC-DB *Cough*

  5. #5
    Mircast's Avatar Member
    Reputation
    14
    Join Date
    Sep 2008
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jeffyy View Post
    *cough* got it from a svn.. Originally credits go to someone from nc-db *cough*
    leeeecherrr!

  6. #6
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nc-db? I thought it was Lua++?



  7. #7
    JeFFyy's Avatar Member
    Reputation
    5
    Join Date
    Feb 2009
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I said.. " Someone from NC-DB ".. Lua Collecter

  8. #8
    warlcok's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you guys ever heard of writing a script on your own??? I Spent time trying to get this as close as i can get and you guys come here and say i stole it....

  9. #9
    JeFFyy's Avatar Member
    Reputation
    5
    Join Date
    Feb 2009
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Close as you can? It's the EXACT same thing as that script in that SVN...

  10. #10
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow this is the exact same as the one in that svn.

    this is a nice script though!

  11. #11
    Silentnvd's Avatar Member
    Reputation
    49
    Join Date
    Jan 2008
    Posts
    295
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol isnt Onyxia like a Pre-BC umm raid lol and thats from SVN you can get it anywhere ...

  12. #12
    Iaccidentallytwink's Avatar Elite User
    Reputation
    590
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by warlcok View Post
    Have you guys ever heard of writing a script on your own??? I Spent time trying to get this as close as i can get and you guys come here and say i stole it....
    Go cry somewhere else. Your crap doesn't work here.
    - Rep if I could.


  13. #13
    bader520's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice one +rep, thx for this amazing script
    - it worked fine for me-

Similar Threads

  1. [Release]Kael'Thas Prince-Lua Scripts 100%Blizzlike
    By AzolexX in forum WoW EMU General Releases
    Replies: 25
    Last Post: 08-11-2008, 11:59 PM
  2. [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
  3. [Release]2 LUA Scripts I Made
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 04-13-2008, 10:55 PM
  4. [Release] A few lua scripts
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-31-2008, 08:27 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 10:56 PM. 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