Welcome! You might want to check out v1 before moving on!
http://www.mmowned.com/forums/emulat...thread-v1.html
giantic updated version with like 800 scripts (probs more) Updated updated
Finally its here! The mega lua pack! This contains a huge amount of lua scripts for funservers/blizzlike/custom/misc(quests-go's-npctalk)
And ofc a LUAscripting folder to enable lua++
I will post this in v1 aswell..
New dl link with tuts+whole isle of quel danas scripted
Updated dl link with new scripts
Readme is included in the download, You will never have to write a single script again with this pack
ENJOY!
Q: Will there be a v3?
A: Im not sure
Hey guys, Back with more scripts.. Credits=SectorSeven & Project eXa & Others
Ill upload them in a rar file since theyre HUGE
The file will include lua/lua++ files for the following mobs/events:
AQ - Trash
Akilzon - Zul'aman
Brutallis - The Sunwell
Doomlord kazzak - Worldboss (Hellfire)
Felmyst - Sunwell
Hex lord malacrass - Zul'aman
Kurinaxx - AQ
Opcodes - Credits to Ascentemu
Sartura - AQ
SSC - Trash
Unitfieldflags
vexallus - AQ
Updatefields - update fields constants. info from ascent-emu updatefields.h
The Lurker Below - SSC
SM Graveyard - Whole instance
Selin Fireheart - Mag. Terrace
Sapphiron - Naxxramas
Narolakk - Credits to Project eXa
High Priestess Jeklik - Zul'Gurub
Halazzi - Zul'aman
Eredar Twins - Sunwell
Deadmines - Whole instance
Arcanist Doan - SM Lib.
To DOWNLOAD this file go here:
Filebeam - Free Fast File Hosting
Enjoy
This file contains scripts for nearly ANY instance in outlands+Some custom scripts made by 2d/gastric/others(me aswell) Also transports such as boats and elevators
To DOWNLOAD this file go here:
Filebeam - Free Fast File Hosting
Enjoy
Now updating again with more scripts
First: The Ring of Blood script lua++
Orb of transportation scriptsCode:--[[ [Q] Nagrand - Rinf of Blood.lua ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, March 26, 2008. ]] -- Ring of Blood script by eamo. -- Unfinished yet, 5/6 q partialy working -- Text on accept quest function TextOnAcceptQuest(Unit) Unit:SendChatMessage(12,0, "Get in the Ring of Blood, . The fight is about to start!") end -- Quest Giver and Mogor spawn --[[function MogorSpawn (Unit) Unit:SpawnCreature(18069, -713.427979, 7930.669922, 59.161800, 4.165940, 35, 0) end --]] function QuestGiver(Unit) QuestGiver = Unit end function QuestGiverSpawn(Unit) Unit:RegisterEvent("QuestGiver",1000,1) end RegisterUnitEvent(18471, 6, "QuestGiverSpawn") --The Ring of Blood: Brokentoe function BrokentoeQuest(Unit, Event) QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1) QuestGiver:RegisterEvent("BrokentoeSpawn",5000,1) end function BrokentoeSpawn(Unit) Unit:SpawnCreature(18398, -704.385620, 7875.663086, 45.374313, 2.016115, 168, 600000) end function BrokentoeDespawn(Unit) Unit:Despawn(10000,0) end RegisterQuestEvent(9962,2,"BrokentoeQuest") RegisterUnitEvent(18398,2,"BrokentoeDespawn") -- The Ring of Blood: The Blue Brothers function TheBlueBrothersQuest (Unit, Event) QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1) QuestGiver:RegisterEvent("TheBlueBrothersQuestYell",5000,1) QuestGiver:RegisterEvent("TheBlueBrothersSpawn",6000,1) end function TheBlueBrothersSpawn(Unit) Unit:SpawnCreature(18399, -700.240051, 7874.219727, 45.884964, 2.046947, 168, 600000) Unit:SpawnCreature(18399, -704.122192, 7872.217773, 45.169842, 2.046947, 168, 600000) end function TheBlueBrothersQuestYell(Unit) QuestGiver:SendChatMessage(12,0,"The battle is about to begin! The unmerciful Murkblood twins versus !") end function TheBlueBrothersDespawn(Unit) Unit:Despawn(10000,0) end RegisterQuestEvent(9967,2,"TheBlueBrothersQuest") RegisterUnitEvent(18399,2,"TheBlueBrothersDespawn") --The Ring of Blood: Rokdar the Sundered Lord function RokdarTheSunderedLordQuest (Unit, Event) QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1) QuestGiver:RegisterEvent("RokdarTheSunderedLordYell",5000,1) QuestGiver:RegisterEvent("RokdarTheSunderedLordSpawn",6000,1) end function RokdarTheSunderedLordSpawn(Unit) Unit:SpawnCreature(18400, -707.007507, 7867.739746, 44.906353, 1.893796, 168, 600000) end function RokdarTheSunderedLordYell(Unit) QuestGiver:SendChatMessage(12,0,"Hailing from the mountains of Blade's Edge comes Rokdar the Sundered Lord! is in for the fight of his life.") end function RokdarTheSunderedLordDespawn(Unit) Unit:Despawn(10000,0) end RegisterQuestEvent(9970,2,"RokdarTheSunderedLordQuest") RegisterUnitEvent(18400,2,"RokdarTheSunderedLordDespawn") --The Ring of Blood: Skra'gath function SkragathQuest (Unit, Event) QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1) QuestGiver:RegisterEvent("SkragathYell",5000,1) QuestGiver:RegisterEvent("SkragathSpawn",6000,1) end function SkragathSpawn(Unit) Unit:SpawnCreature(18401, -704.290588, 7869.463867, 45.064030, 1.909504, 168, 600000) end function SkragathYell(Unit) QuestGiver:SendChatMessage(12,0,"From the parts unknown: Ska'gath! Can possibly survive the onslaught of void energies?") end function SkragathDespawn(Unit) Unit:Despawn(10000,0) end RegisterQuestEvent(9972,2,"SkragathQuest") RegisterUnitEvent(18401,2,"SkragathDespawn") --The Ring of Blood: The Warmaul Champion function TheWarmaulChampionQuest (Unit, Event) QuestGiver:RegisterEvent("TextOnAcceptQuest",500,1) QuestGiver:RegisterEvent("TheWarmaulChampionYell",5000,1) QuestGiver:RegisterEvent("TheWarmaulChampionSpawn",6000,1) end function TheWarmaulChampionSpawn (Unit) Unit:SpawnCreature(18402, -704.290588, 7869.463867, 45.064030, 1.909504, 168, 600000) end function TheWarmaulChampionYell (Unit) QuestGiver:SendChatMessage(12,0,"They had to ship the champion in from the Blade's Edge gladiator pits. He was training on mountain giants - three at a time.") end function TheWarmaulChampionDespawn (Unit) Unit:Despawn(10000,0) end RegisterQuestEvent(9973,2,"TheWarmaulChampionQuest") RegisterUnitEvent(18402,2,"TheWarmaulChampionDespawn") -- The Ring of Blood: The Final Challenge --[[ function MogorPath (Unit, Event) if(mogorspawn == 1) then Unit:CreateCustomWaypointMap() Unit:CreateWaypoint(-718.336426, 7921.608887, 58.957344, 0, 0, 0, 0) Unit:CreateWaypoint(-733.090881, 7922.159180, 57.960159, 0, 0, 0, 0) Unit:CreateWaypoint(-725.227600, 7908.185547, 51.504486, 0, 0, 0, 0) Unit:CreateWaypoint(-707.492310, 7872.812012, 44.891983, 0, 0, 0, 0) Unit:MoveToWaypoint(0) Unit:RegisterEvent("MogorPath2",1000,1) end end function MogorPath2(Unit, unk1, unk2, wp_id) if(wp_id == 3) then Unit:SetFaction(168) end if(wp_id == 4) then Unit:RemoveEvents() Unit:DestroyCustomWaypointMap() end end RegisterUnitEvent(18069, 8, "MogorPath2") function TheFinalChallengeQuest(Unit, event) Mogor:RegisterEvent("MogorPath",1000,1) QuestGiver:RegisterEvent("TheFinalChallengeYell",500,1) QuestGiver:RegisterEvent("TheFinalChallengeYell2",5000,1) end function TheFinalChallengeYell(Unit) Unit:SendChatMessage(12,0,"Mogor has challenged you. You have to accept! Get in the right of blood if you are ready to fight.") end function TheFinalChallengeYell2(Unit) Unit:SendChatMessage(12,0,"For the first time in the Ring of Bloods history. Mogor has chosen to exercise his right of the battle! On this wartorn ground, Mariaen will face Mogor, hero of the Warmaul!") end RegisterQuestEvent(9977,1,"TheFinalChallengeQuestComplete") RegisterQuestEvent(9977, 2, "TheFinalChallengeQuest") function Mogor(Unit) mogorspawn = 0 Mogor = Unit end function MogorOnDied(Unit) mogorspawn = 1 Mogor:RemoveEvents() end function MogorOnLeaveCombat(Unit) mogorspawn = 2 Mogor:RemoveEvents() Mogor:Despawn(10000,0) end RegisterUnitEvent(18069, 6, "Mogor") RegisterUnitEvent(18069, 4, "MogorOnDied") --]]
Code:--[[ SMC UC.lua - Author: Shorts ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, March 26, 2008. ]] --[[ Silvermoon -> Undercity Translocate Orb Script]]-- function SMCUC_Orb(pGameObject, event, pMisc) pMisc:Teleport(0, 1805.70, 323.19, 71.0) end RegisterGameObjectEvent(184502, 2, "SMCUC_Orb")Code:--[[ Uc SMC.lua - Author: Shorts ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, March 26, 2008. ]] --[[ Undercity -> Silvermoon City Translocate Orb Script]]-- function UCSMC_Orb(pGameObject, event, pMisc) pMisc:Teleport(530, 10021.61, -7014.36, 50.0) end RegisterGameObjectEvent(184503, 2, "UCSMC_Orb")Code:--[[ Translocation_Orbs.lua - Author: HellSpawn/Shorts ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, March 26, 2008. ]] --Falcon Watch lower area to roof-- function Falcon_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, -592.200012, 4070.199951, 143.257993) end RegisterGameObjectEvent(184501, 2, "Falcon_Orb") --Falcon Watch Roof to lower area-- function Falconroof_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, -588.900024, 4070.800049, 4.724170) end RegisterGameObjectEvent(184500, 2, "Falconroof_Orb") --Duskwither Spire lower area to roof-- function Duskwither_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, 9330.629883, -7811.870117, 136.569000) end RegisterGameObjectEvent(184911, 2, "Duskwither_Orb") --Duskwither Spire roof to lower area-- function Duskwitherroof_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, 9334.351563, -7880.743164, 74.910004) end RegisterGameObjectEvent(184912, 2, "Duskwitherroof_Orb") --Undercity -> Silvermoon City-- function UCSMC_Orb(pGameObject, event, pMisc) pMisc:Teleport(530, 10021.61, -7014.36, 50.0) end RegisterGameObjectEvent(184503, 2, "UCSMC_Orb") --Silvermoon -> Undercity-- function SMCUC_Orb(pGameObject, event, pMisc) pMisc:Teleport(0, 1805.70, 323.19, 71.0) end RegisterGameObjectEvent(184502, 2, "SMCUC_Orb")That was the transportation orbs scripts.. Mob scripts incCode:--[[ Translocation_Orbs.lua - Author: HellSpawn/Shorts ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, March 26, 2008. ]] --Falcon Watch lower area to roof-- function Falcon_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, -592.200012, 4070.199951, 143.257993) end RegisterGameObjectEvent(184501, 2, "Falcon_Orb") --Falcon Watch Roof to lower area-- function Falconroof_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, -588.900024, 4070.800049, 4.724170) end RegisterGameObjectEvent(184500, 2, "Falconroof_Orb") --Duskwither Spire lower area to roof-- function Duskwither_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, 9330.629883, -7811.870117, 136.569000) end RegisterGameObjectEvent(184911, 2, "Duskwither_Orb") --Duskwither Spire roof to lower area-- function Duskwitherroof_Orb(pGameObject, Event, pMisc) pMisc:Teleport(530, 9334.351563, -7880.743164, 74.910004) end RegisterGameObjectEvent(184912, 2, "Duskwitherroof_Orb") --Undercity -> Silvermoon City-- function UCSMC_Orb(pGameObject, event, pMisc) pMisc:Teleport(530, 10021.61, -7014.36, 50.0) end RegisterGameObjectEvent(184503, 2, "UCSMC_Orb") --Silvermoon -> Undercity-- function SMCUC_Orb(pGameObject, event, pMisc) pMisc:Teleport(0, 1805.70, 323.19, 71.0) end RegisterGameObjectEvent(184502, 2, "SMCUC_Orb")
Ramstein The Gorger
Deeprun tram questCode:--[[ RammsteinTheGorger.lua ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, April 15, 2008. ]] math.randomseed(os.time()) function RammsteinTheGorger_Trample(pUnit) pUnit:FullCastSpell(15550) end function RammsteinTheGorger_Knockout(pUnit) if (pUnit:GetMainTank() ~= nil) then pUnit:FullCastSpellOnTarget(17307, pUnit:GetMainTank()) end end function RammsteinTheGorger_OnCombat(pUnit) pUnit:RegisterEvent("RammsteinTheGorger_Trample",math.random(10000,13000),0) pUnit:RegisterEvent("RammsteinTheGorger_Knockout",math.random(18000,23000),0) end function RammsteinTheGorger_LeaveCombat(pUnit) pUnit:RemoveEvents() collectgarbage() end function RammsteinTheGorger_OnDied(pUnit) RamDoor = pUnit:GetGameObjectNearestCoords(4033.708740,-3392.695068,119.738738,175405) RamDoor2 = pUnit:GetGameObjectNearestCoords(4032.716064,-3365.038330,115.056511,175796) pUnit:RemoveEvents() RamDoor:ActivateGameObject() RamDoor2:ActivateGameObject() collectgarbage() end RegisterUnitEvent(10439,1,"RammsteinTheGorger_OnCombat") RegisterUnitEvent(10439,2,"RammsteinTheGorger_LeaveCombat") RegisterUnitEvent(10439,4,"RammsteinTheGorger_OnDied")
Magistrate BarthilasCode:function DeeprunRatRoundup_OnComplete(pUnit, Event) pUnit:SendChatMessage(11, 0, "Into the box me pretties! Thas it. One by one ye go.") end RegisterQuestEvent(6661, 1, DeeprunRatRoundup_OnComplete); --after completeing Quest ID 6661 Says the message
Hound Master LokseyCode:--[[ MagistrateBarthilas.lua ******************************** * * * The LUA++ Scripting Project * * * ******************************** This software is provided as free and open source by the staff of The LUA++ Scripting Project, in accordance with the AGPL license. This means we provide the software we have created freely and it has been thoroughly tested to work for the developers, but NO GUARANTEE is made it will work for you as well. Please give credit where credit is due, if modifying, redistributing and/or using this software. Thank you. ~~End of License Agreement -- LUA++ staff, April 15, 2008. ]] math.randomseed(os.time()) function MagistrateBarthilas_DrainingBlow(pUnit) if (pUnit:GetMainTank() ~= nil) then pUnit:FullCastSpellOnTarget(16793, pUnit:GetMainTank) end end function MagistrateBarthilas_CrowdPummel(pUnit) if ( math.random(1,10) < 4) then pUnit:FullCastSpell(10887) end end function MagistrateBarthilas_MightyBlow(pUnit) if (pUnit:GetMainTank() ~= nil) then pUnit:FullCastSpellOnTarget(14099,pUnit:GetMainTank()) end end function MagistrateBarthilas_Dazed(pUnit) if (pUnit:GetMainTank() ~= nil) then pUnit:FullCastSpellOnTarget(1604,pUnit:GetMainTank()) end end function MagistrateBarthilas_FuriousAnger(pUnit) pUnit:FullCastSpell(16791) end function MagistrateBarthilas_OnCombat(pUnit) pUnit:RegisterEvent("MagistrateBarthilas_MightyBlow",math.random(23000,30000),0) pUnit:RegisterEvent("MagistrateBarthilas_DrainingBlow",math.random(10000,15000),0) pUnit:RegisterEvent("MagistrateBarthilas_CrowdPummel",math.random(13000,16000),0) pUnit:RegisterEvent("MagistrateBarthilas_Dazed",math.random(5000,8000),0) pUnit:RegisterEvent("MagistrateBarthilas_FuriousAnger",45000,0) end function MagistrateBarthilas_LeaveCombat(pUnit) pUnit:RemoveEvents() collectgarbage(); end function MagistrateBarthilas_OnDied(pUnit) pUnit:RemoveEvents() pUnit:SetModel(3637) collectgarbage(); end RegisterUnitEvent(10435,1,"MagistrateBarthilas_OnCombat") RegisterUnitEvent(10435,2,"MagistrateBarthilas_LeaveCombat") RegisterUnitEvent(10435,4,"MagistrateBarthilas_OnDied")
Lady Liadrin - SpeakingCode:-- Houndmaster Loksey math.randomseed(os.time()) function HoundmasterLoksey_BattleShout(pUnit) pUnit:FullCastSpell(6192) end function HoundmasterLoksey_Enrage(pUnit) if pUnit:GetHealthPct() <= 25 then pUnit:RemoveEvents() pUnit:FullCastSpell(28747) end end function HoundmasterLoksey_OnCombat(pUnit) pUnit:SendChatMessage(13,0,"Release the hounds!") pUnit:PlaySoundToSet(5841) pUnit:RegisterEvent("HoundmasterLoksey_BattleShout",math.random(15000,30000),0) pUnit:RegisterEvent("HoundmasterLoksey_Enrage",1000,0) end function HoundmasterLoksey_LeaveCombat(pUnit) pUnit:RemoveEvents() --collectgarbage(); --Running garbage collection to clean up unused data. end --[[function HoundmasterLoksey_OnDied(pUnit) pUnit:RemoveEvents() --I don't know if we need garbage collection on death, need some verification here. end]] RegisterUnitEvent(3974,1,"HoundmasterLoksey_OnCombat") RegisterUnitEvent(3974,2,"HoundmasterLoksey_LeaveCombat") --RegisterUnitEvent(3974,4,"HoundmasterLoksey_OnDied")
Essence of Anger (Yes its a BT script in luaCode:--ok so i set the chat up all thats left is setting the waypoint in which the --chat info starts at and setting up all the waypoints but ill get it done --anyone willing to help me can thanks guys XD --############################## --#Lady Liadrin Shattrath Event# --############################## --########### --#Mager1794# --########### function Liadrin_GenChat(Unit) Unit:SendChatMessage(11, 0, "Why do you suffer the presence of this despicable Lady Liadrin? She and her followers distort the Light and make a mockery of all we stand for") end function Liadrin_A'dalChat1(Unit) Unit:SendChatMessage(11, 0, "Patience, general. The Light embraces all who enter Shattrath in good faith.") end function Liadrin_LiaChat1(Unit) Unit:SendChatMessage(11, 0, "Thank you for allowing me to speak, A'dal. I know many of your allies despise me and my knights for our treatment of M'uru.") end function Liadrin_LiaChat2(Unit) Unit:SendChatMessage(11, 0, "When he was given to us by 'Prince' Kael'thas, we believed his power would help lead our people into a new age. ") end function Liadrin_LiaChat3(Unit) Unit:SendChatMessage(11, 0, "I've come to realize our path was a false one. We were betrayed by the man we called our prince. In his lust for power, he sent the felblood to attack us, and spirit M'uru away to the Sunwell") end function Liadrin_AdalChat2(Unit) Unit:SendChatMessage(11, 0, "Both our peoples suffered greatly at the hands of Kael'thas and his agents, Lady Liadrin. Your people were not the authors of their own fate, but they will die if they do not change. ") end function Liadrin_AdalChat3(Unit) Unit:SendChatMessage(11, 0, "M'uru accepted his role long ago, knowing full well what would happen to him. Will you accept your own? ") end function Liadrin_LiaChat4(Unit) Unit:SendChatMessage(11, 0, "I... I don't understand. You -- and M'uru -- knew all along that this would occur? ") end function Liadrin_AdalChat4(Unit) Unit:SendChatMessage(11, 0,"It wasn't I who fortold it, but Velen of the Draenei: ") end function Liadrin_AdalChat5(Unit) Unit:SendChatMessage(11, 0,"'Silvery moon, washed in blood,'") end function Liadrin_AdalChat6(Unit) Unit:SendChatMessage(11, 0,"'Led astray into the night, armed with the sword of broken Light.'") end function Liadrin_AdalChat7(Unit) Unit:SendChatMessage(11, 0,"'Broken, then betrayed by one, standing there bestride the sun.' ") end function Liadrin_AdalChat8(Unit) Unit:SendChatMessage(11, 0,"'At darkest hour, redemption comes, in knightly lady sworn to blood.' ") end function Liadrin_LiaChat5(Unit) Unit:SendChatMessage(11, 0, "I see it clearly now. I renounce my loyalties to House Sunstrider and its false prince. ") end function Liadrin_LiaChat6(Unit) Unit:SendChatMessage(11, 0, "I pledge the blades of my Blood Knights to the defeat of Kil'jaeden and the restoration of Silvermoon") end function Liadrin_LiaChat7(Unit) Unit:SendChatMessage(11, 0, "We will fight beside you, A'dal") Unit:CastSpell(45372) end function Liadrin_A'dalChat9(Unit) Unit:SendChatMessage(11, 0, "The Shattered Sun Offensive will surely benefit from the addition of your knights, Lady Liadrin ") end function Liadrin_A'dalChat10(Unit) Unit:SendChatMessage(11, 0, "The battle for the Sunwell is but the first step on your new path, Lady Liadrin. Shattrath is open to you and all who follow you. ") end function Adal_1(Unit, Event) unit:RegisterEvent("Liadrin_A'dalChat1",1000,0,) unit:RegisterEvent("Liadrin_A'dalChat2",8000,0,) unit:RegisterEvent("Liadrin_A'dalChat3",10000,0,) unit:RegisterEvent("Liadrin_A'dalChat4",14000,0,) unit:RegisterEvent("Liadrin_A'dalChat5",16000,0,) unit:RegisterEvent("Liadrin_A'dalChat6",19000,0,) unit:RegisterEvent("Liadrin_A'dalChat7",22000,0,) unit:RegisterEvent("Liadrin_A'dalChat8",25000,0,) unit:RegisterEvent("Liadrin_A'dalChat9",33000,0,) unit:RegisterEvent("Liadrin_A'dalChat10",36000,0,) function Gen_1(Unit, Event) unit:RegisterEvent("Liadrin_GenChat1",500,0) end function Liadrin_OnReachWaypoint(Unit, Event) unit:RegisterEvent("Gen_1",0,0) unit:RegisterEvent("Adal_1",0,0) unit:RegisterEvent("Liadrin_LiaChat1",2500,0) unit:RegisterEvent("Liadrin_LiaChat2",4000,0) unit:RegisterEvent("Liadrin_LiaChat3",6000,0) unit:RegisterEvent("Liadrin_LiaChat4",12500,0) unit:RegisterEvent("Liadrin_LiaChat5",27000,0) unit:RegisterEvent("Liadrin_LiaChat6",29000,0) unit:RegisterEvent("Liadrin_LiaChat7",31000,0) end
Hogger xDCode:function Essence_AngerOnCombat(pUnit, event) dup = 0 qtick = 0 qactive = 0 pUnit:SendChatMessage(14,0, "Beware - I live!") --will look up for sound id -if there is any- when i reach home pUnit:RegisterEvent("Ess_Aura",1000,0) pUnit:RegisterEvent("Rand_Quotes",10000, 0) pUnit:RegisterEvent("Rand_Quotespeech",10000, 0) pUnit:RegisterEvent("Ess_Seethe",15000, 3) pUnit:RegisterEvent("Ess_Spells",35000, 0) end function Ess_Aura(pUnit, event) pUnit:CastSpell(41337) end function Rand_Quotes(pUnit, event) HealthCheck = pUnit:GetHealthPct() if (HealthCheck <= 95) then qactive = 1 qtick = 1 end end function Rand_Quotespeech(pUnit, event) -- math randies mite be inserted in here if (qactive == 1 and qtick == 1) then qtick = qtick + 1 if (qtick == 35 ) then pUnit:SendChatMessage(13,0,"So foolish!") end if (qtick == 75 ) then pUnit:SendChatMessage(13,0,"I won't be ignored!") end if (qtick == 115) then pUnit:SendChatMessage(13,0,"On your knees!") end if (qtick == 145) then qtick = 1 end end end function Ess_Seethe(pUnit, event) -- not blizzlike as there is no if switch target funct(prolly there is one i could use,but cbb) pUnit:CastSpell(41520) end function Ess_Spells(pUnit, event) RandSpellz = math.random(1,2) if (RandSpellz == 1) then local plr = pUnit:GetMainTank(0) if (plr ~= nil) then pUnit:CastSpellOnTarget(41545, plr) end end if (RandzSpellz == 2) then local plr = pUnit:GetRandomPlayer(0) if (plr ~=nil) then pUnit:FullCastSpellOnTarget(41377, plr) end end end function Essence_Killed(pUnit, event) EssChat = math.random(1, 2) if (EssChat == 1) then pUnit:SendChatMessage(13,0,"Enough, no more!") end if (EssChat == 2) then pUnit:SendChatMessage(83,0,"*Maniacal cackle*") end end function Essence_LeaveCombat(pUnit, event) dup = 1 end function Essence_Death(pUnit, event) pUnit:SendChatMessage(13,0,"Beware,Cowards!") dup = 1 end RegisterUnitEvent(23420, 1, "Essence_AngerOnCombat") RegisterUnitEvent(23420, 3, "Essence_Killed") RegisterUnitEvent(23420, 2, "Essence_LeaveCombat") RegisterUnitEvent(23420, 4, "Essence_Death")
Rage Winter Chill (Yes its a hyjal script in luaCode:function HoggerOnCombat(Unit) local plr = unit:GetClosestPlayer() if (plr ~= nil) then Unit:CastSpellOnTarget(6268, plr) --Needed the plr as target. Unit:SendChatMessage(9, 0, "Hogger charges!!!"); end RegisterUnitEvent(448, 1, "HoggerOnCombat")
The Defias TraitorCode:------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ -- -- -- Battle of Mount Hyjal script -- -- -- -- created by Shady, Ascent Team -- ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ -- Rage Winterchill Event -- ------------------------------------------------------------------------------------------------------------------ -- Cast timers RWC_RWC_ICEBOLT_TIMER = 9000 RWC_RWC_FROSTNOVA_TIMER = 15000 RWC_RWC_ICEARMOR_TIMER = 23000 RWC_RWC_DEATHANDDECAY_TIMER = 11000 RWC_ABOMINATION_POISONCLOUD_TIMER = 20000 RWC_NECROMANCER_UNHOLYFRENZY_TIMER = 8000 RWC_NECROMANCER_CRIPPLE_TIMER = 7000 RWC_NECROMANCER_SUMMONSKELETONS_TIMER =20000 RWC_NECROMANCER_SHADOWBOLT_TIMER = 5000 RWC_CRYPTFIEND_WEB_TIMER = 13500 -- Internal globals Jaina = null RWC_IsInProgress = 0 RWC_DeathAndDecayAllowed = 1 RWC_Spawns = { {4897.40,-1665.15,1319.50}, {4898.54,-1663.35,1319.60}, {4899.70,-1661.54,1319.70}, {4900.99,-1659.52,1319.72}, {4902.58,-1657.00,1320.04}, {4899.82,-1655.24,1319.89}, {4898.81,-1658.16,1319.37}, {4898.08,-1660.37,1319.35}, {4896.65,-1662.63,1319.24}, {4895.67,-1664.15,1319.13}, {4904.07,-1660.22,1320.24}, {4902.70,-1662.38,1320.13}, {4901.91,-1663.90,1320.17}, {4900.20,-1666.28,1320.00} } RWC_WaypointsDelta = { {59.5,-33.9,20.78 }, {124.3,-82.9,2.88 } } function RWC_RWC(unit) unit:RegisterEvent("RWC_Waves_Move",10000,1) end function RWC_RWC_Combat(unit) unit:RegisterEvent("RWC_RWC_Icebolt",RWC_RWC_ICEBOLT_TIMER,0) unit:RegisterEvent("RWC_RWC_FrostNova",RWC_RWC_FROSTNOVA_TIMER,0) unit:RegisterEvent("RWC_RWC_IceArmor",RWC_RWC_ICEARMOR_TIMER,0) unit:RegisterEvent("RWC_RWC_DeathAndDecay",RWC_RWC_DEATHANDDECAY_TIMER ,0) end function RWC_RWC_Icebolt(unit) local plr = unit:GetRandomPlayer(0) if (plr ~= nil) then unit:FullCastSpellOnTarget(31249,plr) end end function RWC_RWC_FrostNova(unit) unit:FullCastSpell(32365) RWC_DeathAndDecayAllowed = 0 unit:RegisterEvent("RWC_Allow_DeathAndDecay",6000,1) end function RWC_Allow_DeathAndDecay(unit) RWC_DeathAndDecayAllowed = 1 end function RWC_RWC_IceArmor(unit) unit:FullCastSpell(31256) end function RWC_RWC_DeathAndDecay(unit) if (RWC_DeathAndDecayAllowed>0) then local plr = unit:GetRandomPlayer(0) if (plr ~= nil) then unit:FullCastSpellOnTarget(34642,plr) end end end function RWC_Ghoul(unit) unit:RegisterEvent("RWC_Waves_Move",10000,1) end function RWC_Abomination(unit) unit:RegisterEvent("RWC_Waves_Move",10000,1) end function RWC_Waves_Move(unit) unit:CreateWaypoint(unit:GetX()+RWC_WaypointsDelta[1][1],unit:GetY()+RWC_WaypointsDelta[1][2],unit:GetZ()+RWC_WaypointsDelta[1][3],0,0,0,0) unit:CreateWaypoint(unit:GetX()+RWC_WaypointsDelta[2][1],unit:GetY()+RWC_WaypointsDelta[2][2],unit:GetZ()+RWC_WaypointsDelta[2][3],0,0,0,0) end function RWC_Abomination_Combat(unit) unit:RegisterEvent("RWC_Abomination_PoisonCloud",RWC_ABOMINATION_POISONCLOUD_TIMER,0) end function RWC_Abomination_PoisonCloud(unit) unit:FullCastSpell(30914) end function RWC_Necromancer(unit) unit:RegisterEvent("RWC_Waves_Move",10000,1) end function RWC_Necromancer_Combat(unit) unit:RegisterEvent("RWC_Necromancer_UnholyFrenzy",RWC_NECROMANCER_UNHOLYFRENZY_TIMER,0) unit:RegisterEvent("RWC_Necromancer_SummonSkeletons",RWC_NECROMANCER_SUMMONSKELETONS_TIMER,0) unit:RegisterEvent("RWC_Necromancer_Cripple",RWC_NECROMANCER_CRIPPLE_TIMER,0) unit:RegisterEvent("RWC_Necromancer_ShadowBolt",RWC_NECROMANCER_SHADOWBOLT_TIMER,0) end function RWC_Necromancer_UnholyFrenzy(unit) local plr = unit:GetRandomFriend() if (plr ~= nil) then unit:FullCastSpellOnTarget(31626,plr) end end function RWC_Necromancer_SummonSkeletons(unit) unit:FullCastSpell(31617) end function RWC_Necromancer_Cripple(unit) local plr = unit:GetClosestPlayer(); if (plr ~= nil) then unit:FullCastSpellOnTarget(33787,plr) end end function RWC_Necromancer_ShadowBolt(unit) local plr = unit:GetClosestPlayer(); if (plr ~= nil) then unit:FullCastSpellOnTarget(29487,plr) end end function RWC_CryptFiend(unit) unit:RegisterEvent("RWC_Waves_Move",10000,1) end function RWC_CryptFiend_Combat(unit) unit:RegisterEvent("RWC_CryptFiend_Web",RWC_CRYPTFIEND_WEB_TIMER,0) end function RWC_CryptFiend_Web(unit) local plr = unit:GetRandomPlayer(0) if (plr ~= nil) then unit:FullCastSpellOnTarget(745,plr) end end function RWC_Wave1() print "RWC_Wave1" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave2",125000,1) end function RWC_Wave2() print "RWC_Wave2" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave3",125000,1) end function RWC_Wave3() print "RWC_Wave3" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave4",125000,1) end function RWC_Wave4() print "RWC_Wave4" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave5",125000,1) end function RWC_Wave5() print "RWC_Wave5" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave6",125000,1) end function RWC_Wave6() print "RWC_Wave6" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave7",125000,1) end function RWC_Wave7() print "RWC_Wave7" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:RegisterEvent("RWC_Wave8",125000,1) end function RWC_Wave8() print "RWC_Wave8" Jaina:SpawnCreature(17895,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[2][1],RWC_Spawns[2][2],RWC_Spawns[2][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[3][1],RWC_Spawns[3][2],RWC_Spawns[3][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[4][1],RWC_Spawns[4][2],RWC_Spawns[4][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[5][1],RWC_Spawns[5][2],RWC_Spawns[5][3],0,1720,0) Jaina:SpawnCreature(17895,RWC_Spawns[6][1],RWC_Spawns[6][2],RWC_Spawns[6][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[7][1],RWC_Spawns[7][2],RWC_Spawns[7][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[8][1],RWC_Spawns[8][2],RWC_Spawns[8][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[9][1],RWC_Spawns[9][2],RWC_Spawns[9][3],0,1720,0) Jaina:SpawnCreature(17897,RWC_Spawns[10][1],RWC_Spawns[10][2],RWC_Spawns[10][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[11][1],RWC_Spawns[11][2],RWC_Spawns[11][3],0,1720,0) Jaina:SpawnCreature(17899,RWC_Spawns[12][1],RWC_Spawns[12][2],RWC_Spawns[12][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[13][1],RWC_Spawns[13][2],RWC_Spawns[13][3],0,1720,0) Jaina:SpawnCreature(17898,RWC_Spawns[14][1],RWC_Spawns[14][2],RWC_Spawns[14][3],0,1720,0) Jaina:RegisterEvent("RWC_Boss",200000,1) end function RWC_Boss() print "RWC_Boss" Jaina:SpawnCreature(17767,RWC_Spawns[1][1],RWC_Spawns[1][2],RWC_Spawns[1][3],0,1720,0) end function RWC_Start(unit) Jaina = unit if (RWC_IsInProgress == 0) then print "MH:RWC Start" RWC_IsInProgress = 1 Jaina:RegisterEvent("RWC_Wave1",100,1) end end function RWC_Failed(unit) print "MH:RWC Failed" Jaina:RemoveEvents() Jaina:SendChatMessage(12,0,"Event Failed. Try once again and dont let me die") Jaina:Despawn(0,5000) RWC_IsInProgress = 0 end RegisterUnitEvent(17895,6,"RWC_Ghoul") RegisterUnitEvent(17898,6,"RWC_Abomination") RegisterUnitEvent(17898,1,"RWC_Abomination_Combat") RegisterUnitEvent(17897,6,"RWC_CryptFiend") RegisterUnitEvent(17897,1,"RWC_CryptFiend_Combat") RegisterUnitEvent(17899,6,"RWC_Necromancer") RegisterUnitEvent(17899,1,"RWC_Necromancer_Combat") RegisterUnitEvent(17767,6,"RWC_RWC") RegisterUnitEvent(17767,1,"RWC_RWC_Combat") RegisterUnitEvent(17772,10,"RWC_Start") RegisterUnitEvent(17772,4,"RWC_Failed")
Code:function Traitor_end Unit:SendChatMessage("Tell your master that this is where Van Cleef is hiding. I'm outta here! Unit:Despawn(5000,1000) Unit:DestroyCustomWaypointMap(); function Traitor_OnStart(Unit, Event) Unit:CreateCustomWaypointMap(); Unit:CreateWaypoint(-10521.876953, 1064.410278, 54.820744, 3.220135, 0, 256, 0); Unit:CreateWaypoint(-10548.616211, 1072.964111, 49.694920, 3.345799, 0, 256, 0); Unit:CreateWaypoint(-10596.891602, 1057.281982, 38.864330, 3.451828, 0, 256, 0); Unit:CreateWaypoint(-10663.427734, 1030.475952, 32.725643, 3.098398, 0, 256, 0); Unit:CreateWaypoint(-10715.894531, 1030.825317, 33.473114, 3.165157, 0, 256, 0); Unit:CreateWaypoint(-10754.050781, 1016.978821, 32.843971, 3.443188, 0, 256, 0); Unit:CreateWaypoint(-10917.114258, 997.355408, 35.466064, 3.314383, 0, 256, 0); Unit:CreateWaypoint(-10937.306641, 1020.598755, 36.644848, 1.488332, 0, 256, 0); Unit:CreateWaypoint(-10933.578125, 1058.460571, 36.027996, 1.472624, 0, 256, 0); Unit:CreateWaypoint(-10958.590820, 1105.329224, 36.635437, 2.076595, 0, 256, 0); Unit:CreateWaypoint(-10895.253906, 1248.348877, 33.385048, 1.176529, 0, 256, 0); Unit:CreateWaypoint(-10958.590820, 1105.329224, 36.635437, 2.076595, 0, 256, 0); Unit:CreateWaypoint(-10895.253906, 1248.348877, 33.385048, 1.176529, 0, 256, 0); Unit:CreateWaypoint(-10890.806641, 1297.475708, 34.488716, 1.698819, 0, 256, 0); Unit:CreateWaypoint(-10917.052734, 1419.003296, 42.823147, 1.804847, 0, 256, 0); Unit:CreateWaypoint(-10989.025391, 1410.501953, 42.863670, 2.673498, 0, 256, 0); Unit:CreateWaypoint(-10989.025391, 1410.501953, 42.863670, 2.673498, 0, 256, 0); Unit:CreateWaypoint(-11024.154297, 1488.091064, 43.177536, 1.566087, 0, 256, 0); Unit:CreateWaypoint(-11048.541992, 1513.367798, 43.154915, 2.369550, 0, 256, 0); Unit:CreateWaypoint(-11065.412109, 1526.429321, 43.328102, 3.068554, 0, 256, 0); Unit:SetMovementType(11) Unit:SetCombatCapable(0) Unit:StopMovement(3000) Unit:SendChatMessage(11, 0, "Okay let's do this, you gotta protect me and stuff, I can't fight on my own!"); Unit:SetNPCFlags(0); RegisterEvent(Traitor_End, 1, 10000) endREMEMBER THAT I DONT TAKE CREDITS FOR THE SCRIPTS ABOVECode:
The scripts above can be downloaded here:
To DOWNLOAD this file go here:
Filebeam - Free Fast File Hosting