PDA

View Full Version : [RELEASE][LUA] 100% Working Boss Script



Nika
11-02-09, 01:28 PM
This was a script that I made for a server that I develop (WowImpulse) around 3 weeks ago, but I have decided to share it with the members of *******.

This boss is quite complex, it consists basically of the 8 managable classes ( Excluded hunter for obvious reasons ) that can be picked randomly by the script througout the fight; This makes the Boss 100% Random - Even the text it displays is randomised to add an element of enjoyment!

This boss may be overpowered for some servers as the server I made it for had custom gear that was equal to having a level 80-90, so it's up to you to find out!

The script is 100% working successfully and there are no errors. If you DO get errors, it's to do with how you have edited it, and post the error here. I will help you fix it.

[[Onto the script:]]


--Credits to Nymphx of *******, Wowimpulse Developer--




function NPCNAME_OnEnterCombat(pUnit,Event)
pUnit:SendChatMessage(12, 0, "Ha, you actually think that puny, weak gypsys like you can even affect an immortal such as myself? I am Omniscient!")
pUnit:SendChatMessage(14, 0, "Trust me, you stand no chance against my full power!")
pUnit:RegisterEvent("NPCNAME_ClassPick", 5000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
pUnit:CastSpell(20217)
pUnit:CastSpell(23948)
end


-- Random talk, 1-4 every ?? seconds.--


function NPCNAME_Talk(pUnit, Event)
Choice=math.random(1, 4)
if Choice==1 then
pUnit:SendChatMessage(14, 0, "You try so hard, yet fail so much...")
end
if Choice==2 then
pUnit:SendChatMessage(14, 0, "Your attacks do nothing to me! I am an immortal!")
end
if Choice==3 then
pUnit:SendChatMessage(14, 0, "Oh, how I wish you actually tried!")
end
if Choice==4 then
pUnit:SendChatMessage(14, 0, "You have one class, I have a choice of 8 classes at any moment. Who do YOU think will triumph?")
end
end

function NPCNAME_TalkShaman(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Shamans, guardians of Thunder and Lightning!")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The elements run strong in the Shaman class...")
end
end

function NPCNAME_TalkPaladin(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Paladins, guardians of the Holy powers and the true defenders of the Alliance.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Holy Power runs strong in the Paladin class...")
end
end

function NPCNAME_TalkDruid(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Druids, guardians of Nature and all things living.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Natural Forces run strong in the Druid class...")
end
end

function NPCNAME_TalkPriest(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Priests, Masters of the Holy power and Spiritual Focus.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Priest Class makes me feel alive!")
end
end

function NPCNAME_TalkRogue(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Rogues, masters of Subtley and Hidden Movement.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Rogue Class brings me new opportinities...")
end
end

function NPCNAME_TalkWarrior(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Warriors, fearful tanks, body inpenetrable!")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The might of the Warrior, feel it!")
end
end

function NPCNAME_TalkWarlock(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Warlocks, guardians of Dark magic and hidden secrets.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The shadows that surround the Warlock Class will always remain a mystery...")
end
end
--credits to nymphx of *******--
function NPCNAME_TalkMage(pUnit, Event)
Choice=math.random(1, 2)
if Choice==1 then
pUnit:SendChatMessage(12, 0, "Ah Mages, guardians of the 3 Magic fields: Frost, Fire and Arcane.")
end
if Choice==2 then
pUnit:SendChatMessage(12, 0, "The Mage class is very versatile, I may use this again sometime...")
end
end

-- This picks the class, random 1-8, can be the same class again if unlucky. Varys the fight. --


function NPCNAME_ClassPick(pUnit, Event)
pUnit:RemoveEvents()
Choice=math.random(1, 8)
if Choice==1 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Shaman!")
pUnit:RegisterEvent("NPCNAME_Shaman", 1000, 0)
pUnit:CastSpellOnTarget(34353,pUnit:GetRandomPlaye r(0))
end
if Choice==2 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Paladin!")
pUnit:RegisterEvent("NPCNAME_Paladin", 1000, 0)
pUnit:CastSpellOnTarget(27174,pUnit:GetRandomPlaye r(0))
end
if Choice==3 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Druid!")
pUnit:RegisterEvent("NPCNAME_Druid", 1000, 0)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
end
if Choice==4 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Priest!")
pUnit:RegisterEvent("NPCNAME_Priest", 1000, 0)
pUnit:CastSpellOnTarget(25364,pUnit:GetRandomPlaye r(0))
end
if Choice==5 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Rogue!")
pUnit:RegisterEvent("NPCNAME_Rogue", 1000, 0)
pUnit:CastSpellOnTarget(36554,pUnit:GetRandomPlaye r(0))
pUnit:CastSpell(43547)
end
if Choice==6 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Warrior!")
pUnit:RegisterEvent("NPCNAME_Warrior", 1000, 0)
pUnit:CastSpellOnTarget(25264,pUnit:GetMainTank())
end
if Choice==7 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Warlock!")
pUnit:RegisterEvent("NPCNAME_Warlock", 1000, 0)
pUnit:CastSpell(27212)
end
if Choice==8 then
pUnit:SendChatMessage(14, 0, "Feel the power of the Mage!")
pUnit:RegisterEvent("NPCNAME_Mage", 1000, 0)
pUnit:CastSpellOnTarget(6131,pUnit:GetMainTank())
end
end


--SHAMAN OPTION 1--


function NPCNAME_Shaman(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellShamanChain", 11000, 0) --16033--
pUnit:RegisterEvent("NPCNAME_SpellShamanEarth", 13000, 0) --47071--
pUnit:RegisterEvent("NPCNAME_SpellShamanFrost", 14000, 0) --34353--
pUnit:RegisterEvent("NPCNAME_SpellShamanBuff", 5000, 0) --57802--
pUnit:SetModel(20681)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkShaman", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end

function NPCNAME_SpellShamanChain(pUnit,Event)
pUnit:CastSpellOnTarget(16033,pUnit:GetMainTank())
end

function NPCNAME_SpellShamanEarth(pUnit,Event)
pUnit:CastSpellOnTarget(47071,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellShamanFrost(pUnit,Event)
pUnit:CastSpellOnTarget(34353,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellShamanBuff(pUnit,Event)
pUnit:CastSpell(49284)
end


--PALADIN OPTION 2--


function NPCNAME_Paladin(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellPaladinCons", 10000, 0) --27173--
pUnit:RegisterEvent("NPCNAME_SpellPaladinReckoning", 13500, 0) --20178--
pUnit:RegisterEvent("NPCNAME_SpellPaladinSeal", 30000, 0) --31801--
pUnit:RegisterEvent("NPCNAME_SpellPaladinShock", 15000, 0) --27174--
pUnit:RegisterEvent("NPCNAME_SpellPaladinShield", 12000, 0) --642--
pUnit:SetModel(6198)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkPaladin", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end

function NPCNAME_SpellPaladinCons(pUnit,Event)
pUnit:CastSpell(27173)
end

function NPCNAME_SpellPaladinReckoning(pUnit,Event)
pUnit:CastSpell(20178)
end

function NPCNAME_SpellPaladinSeal(pUnit,Event)
pUnit:CastSpell(31801)
end

function NPCNAME_SpellPaladinShock(pUnit,Event)
pUnit:CastSpellOnTarget(27174,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellPaladinShield(pUnit,Event)
pUnit:CastSpell(642)
end

--DRUID OPTION 3--


function NPCNAME_Druid(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellDruidStarfire", 10000, 0) --26986--
pUnit:RegisterEvent("NPCNAME_SpellDruidCripple", 12000, 0) --20812--
pUnit:RegisterEvent("NPCNAME_SpellDruidLifebloom", 7000, 0) --33763--
pUnit:RegisterEvent("NPCNAME_SpellDruidNatures", 19000, 0) --27009--
pUnit:SetModel(5927)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkDruid", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end

function NPCNAME_SpellDruidStarfire(pUnit,Event)
pUnit:CastSpellOnTarget(26986,pUnit:GetMainTank())
end

function NPCNAME_SpellDruidCripple(pUnit,Event)
pUnit:CastSpellOnTarget(20812,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellDruidLifebloom(pUnit,Event)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
pUnit:CastSpell(33763)
end

function NPCNAME_SpellDruidNatures(pUnit,Event)
pUnit:CastSpell(27009)
end


--PRIEST OPTION 4--


function NPCNAME_Priest(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellPriestNova", 8000, 0) --48078--
pUnit:RegisterEvent("NPCNAME_SpellPriestSmite", 10000, 0) --25364--
pUnit:RegisterEvent("NPCNAME_SpellPriestDispel", 19000, 0) --32375--
pUnit:RegisterEvent("NPCNAME_SpellPriestPain", 15000, 0) --25368--
pUnit:SetModel(5072)
pUnit:SetScale(1)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkPriest", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end

function NPCNAME_SpellPriestNova(pUnit,Event)
pUnit:CastSpellOnTarget(48078,pUnit:GetMainTank())
end
--credits to nymphx of *******--
function NPCNAME_SpellPriestSmite(pUnit,Event)
pUnit:CastSpellOnTarget(25364,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellPriestDispel(pUnit,Event)
pUnit:CastSpell(32375)
end

function NPCNAME_SpellPriestPain(pUnit,Event)
pUnit:CastSpellOnTarget(25368,pUnit:GetRandomPlaye r(0))
pUnit:CastSpellOnTarget(25368,pUnit:GetMainTank())
end


--ROGUE OPTION 5--


function NPCNAME_Rogue(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellRogueBlind", 11000, 0) --2094--
pUnit:RegisterEvent("NPCNAME_SpellRogueGhostly", 6000, 0) --14278--
pUnit:RegisterEvent("NPCNAME_SpellRogueSStep", 15000, 0) --36554--
pUnit:SetModel(3618)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkRogue", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end
--credits to nymphx of *******--
function NPCNAME_SpellRogueBlind(pUnit,Event)
pUnit:CastSpellOnTarget(2094,pUnit:GetRandomPlayer (0))
end

function NPCNAME_SpellRogueGhostly(pUnit,Event)
pUnit:CastSpellOnTarget(14278,pUnit:GetMainTank())
end

function NPCNAME_SpellRogueSStep(pUnit,Event)
pUnit:CastSpellOnTarget(36554,pUnit:GetRandomPlaye r(0))
end


--WARRIOR OPTION 6--


function NPCNAME_Warrior(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellWarriorClap", 15000, 0) --25264--
pUnit:RegisterEvent("NPCNAME_SpellWarriorRend", 9000, 0) --25208--
pUnit:RegisterEvent("NPCNAME_SpellWarriorMortal", 13000, 0) --30330--
pUnit:RegisterEvent("NPCNAME_SpellWarriorCharge", 16000, 0) --11578--
pUnit:SetModel(19536)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkWarrior", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end

function NPCNAME_SpellWarriorClap(pUnit,Event)
pUnit:CastSpellOnTarget(25264,pUnit:GetMainTank())
end

function NPCNAME_SpellWarriorRend(pUnit,Event)
pUnit:CastSpellOnTarget(25208,pUnit:GetMainTank())
end

function NPCNAME_SpellWarriorMortal(pUnit,Event)
pUnit:CastSpellOnTarget(30330,pUnit:GetMainTank())
end

function NPCNAME_SpellWarriorCharge(pUnit,Event)
pUnit:CastSpellOnTarget(11578,pUnit:GetRandomPlaye r(0))
end


--WARLOCK OPTION 7--


function NPCNAME_Warlock(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellWarlockRain", 16000, 0) --27212--
pUnit:RegisterEvent("NPCNAME_SpellWarlockAgony", 10000, 0) --11712--
pUnit:RegisterEvent("NPCNAME_SpellWarlockIdiocy", 9000, 0) --1010--
pUnit:RegisterEvent("NPCNAME_SpellWarlockCoil", 11000, 0) --17926--
pUnit:SetModel(4462)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkWarlock", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end
--credits to nymphx of *******--
function NPCNAME_SpellWarlockRain(pUnit,Event)
pUnit:CastSpell(27212)
end

function NPCNAME_SpellWarlockAgony(pUnit,Event)
pUnit:CastSpellOnTarget(11712,pUnit:GetRandomPlaye r(0))
end

function NPCNAME_SpellWarlockIdiocy(pUnit,Event)
pUnit:CastSpellOnTarget(1010,pUnit:GetRandomPlayer (0))
end

function NPCNAME_SpellWarlockCoil(pUnit,Event)
pUnit:CastSpellOnTarget(17926,pUnit:GetRandomPlaye r(0))
end


--MAGE OPTION 8--


function NPCNAME_Mage(pUnit, Event)
pUnit:RemoveEvents()
pUnit:RegisterEvent("NPCNAME_SpellMageExplosion", 10000, 0) --27082--
pUnit:RegisterEvent("NPCNAME_SpellMageCone", 15000, 0) --10161--
pUnit:RegisterEvent("NPCNAME_SpellMageNova", 12000, 0) --6131--
pUnit:RegisterEvent("NPCNAME_SpellMageLance", 8000, 0) --30455--
pUnit:SetModel(1484)
pUnit:SetScale(2)
pUnit:RegisterEvent("NPCNAME_ClassPick", 30000, 0)
pUnit:RegisterEvent("NPCNAME_TalkMage", 15000, 0)
pUnit:RegisterEvent("NPCNAME_Talk", 10000, 0)
end
--credits to nymphx of *******--
function NPCNAME_SpellMageExplosion(pUnit,Event)
pUnit:CastSpell(27082)
end

function NPCNAME_SpellMageCone(pUnit,Event)
pUnit:CastSpellOnTarget(10161,pUnit:GetMainTank())
end

function NPCNAME_SpellMageNova(pUnit,Event)
pUnit:CastSpellOnTarget(6131,pUnit:GetMainTank())
end

function NPCNAME_SpellMageLance(pUnit,Event)
pUnit:CastSpellOnTarget(30455,pUnit:GetRandomPlaye r(0))
end


--Rest of Script--


function NPCNAME_OnLeaveCombat(pUnit, event)
pUnit:RemoveEvents()
end

function NPCNAME_OnKilledTarget(pUnit)
pUnit:SendChatMessage(12, 0, "Feel my Wrath!")
pUnit:PlaySoundToSet(9250)
end


function NPCNAME_Death(pUnit)
pUnit:SendChatMessage(14, 0, "H...How can it be? I have nothing to say to you...")
pUnit:SendChatMessage(12, 0, "Boss Made By Nymphs, WoWImpulse Developer/Gm")
pUnit:RemoveEvents()
end

RegisterUnitEvent(NPCID, 1, "NPCNAME_OnEnterCombat")
RegisterUnitEvent(NPCID, 2, "NPCNAME_OnLeaveCombat")
RegisterUnitEvent(NPCID, 3, "NPCNAME_OnKilledTarget")
RegisterUnitEvent(NPCID, 4, "NPCNAME_Death")


Please take time to read through the script and understand it's logistics and the way it works.

If you have ANY tips on how to improve this script/Thread, or want to add in your thoughts, feel free to leave a post.




OnLeaveCombat morph:

http://img412.imageshack.us/img412/1948/wowscrnshot102708014645cv2.jpg

Druid form:

http://img412.imageshack.us/img412/6200/wowscrnshot102708015547uf4.jpg

Warrior form:

http://img412.imageshack.us/img412/1686/wowscrnshot102708162335gp3.jpg



Note: Each class has it's own set of spells, a form, and a chat to go with it.

Enjoy the script and put it to good use!!

There will be an Sql out when I have the time to create it, right now; I have not got much time to do things, so this may be delayed.

Credits: ~Nymphx~

Avidgamer
11-02-09, 01:35 PM
Nice post.

QQrofl
11-02-09, 02:26 PM
Awesome. Use code next time. :)

runiker
11-02-09, 02:45 PM
Sweet but please use code tags

stoneharry
11-02-09, 04:11 PM
Lol, thought I recognised that script, halfway through it says "Credit to Nyhmpx" as I saw it posted on ******* and I always check his posts :) Nice, ty for sharing.

Then I realise you did say who it was made by at the bottom :P

I'm so used to leechers not giving credits, you know what I mean?

Thanks for sharing again :)

Avidgamer
11-02-09, 04:14 PM
Haha, I know what you mean ^^

Dr. Emu
11-02-09, 05:01 PM
Thread edited to [code] tags.'

Nice btw^^ Thanks for sharing!

PeicyP
15-03-09, 09:21 AM
hey, really nice script! thanks

but the attack spells he casts are 90% on himself except the AOE ones
like when he does rend, charge, frost shock, blind, etc
it hits himself instead of me.. i didnt edit anything but the npcid..

thanks!

dannyel
12-04-09, 02:03 AM
Boss spell attack him seft and this script make my server crash! But is The Best Sacript Here! Please Fix The Problem!

skarabex
14-04-09, 03:48 PM
Nice One Thanks!!! +rep

Moridin
23-04-09, 08:09 AM
nice script thanks

Lbniese
19-09-09, 03:21 PM
Nice :)