Code:
function QuestPickup(event, pPlayer, questId, pQuestGiver)
if (questId == 62114) then
Voljinorg:SetUInt64Value(UNIT_NPC_FLAGS, 0x00)
Voljinorg:RegisterEvent("Orgevent1", 5000, 1)
Voljinorg:SetNPCFlags(0)
end
if (intid == 2) then
player:GossipComplete(player)
end
end
RegisterServerHook(14, "QuestPickup")
function Orgevent1(pUnit, event)
Voljinorg:SpawnGameObject(193956, 1921.738281, -4148.416992, 40.63729, 1.654022, 90000, 100)
D1:SetMovementFlags(1)
D2:SetMovementFlags(1)
D3:SetMovementFlags(1)
D4:SetMovementFlags(1)
D1:MoveTo(1927.085938, -4144.994629, 40.637264, 3.633233)
D2:MoveTo(1926.840454, -4151.346191, 40.621178, 2.627923)
D3:MoveTo(1917.473267, -4152.667480, 40.624622, 0.664426)
D4:MoveTo(1916.796021, -4146.035645, 40.636848, 5.785299)
D1:Emote(45, 8000)
D2:Emote(45, 8000)
D3:Emote(45, 8000)
D4:Emote(45, 8000)
Voljinorg:SetMovementFlags(1)
Voljinorg:MoveTo(1921.308350, -4136.730469, 40.546028, 4.720093)
Voljinorg:RegisterEvent("Orgevent2", 5000, 1)
end
function Orgevent2(pUnit, event)
local x, y, z, o = Voljinorg:GetX(), Voljinorg:GetY(), Voljinorg:GetZ(), Voljinorg:GetO()
Voljinorg:SpawnCreature(JainaorgEntryID, 1921.527466, -4147.192383, 40.637047, 1.774262, 35, 0)
Jainaorg:EquipWeapons(873,0,0)
Voljinorg:RegisterEvent("Orgevent3", 2000, 1)
end
function Orgevent3(pUnit, event)
Jainaorg:CastSpell(61456)
Voljinorg:SendChatMessage(14, 0, "Kor'kron, stand down!")
Voljinorg:Emote(5, 2500)
D1:MoveTo(1932.395996, -4138.305664, 40.621716, 3.886666)
D2:MoveTo(1932.588013, -4157.461914, 40.611843, 2.417970)
D3:MoveTo(1911.293579, -4158.170410, 40.170410, 0.701875)
D4:MoveTo(1909.982910, -4139.156250, 40.624950, 5.512440)
Voljinorg:RegisterEvent("Orgevent4", 8000, 1)
end
function Orgevent4(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "Jaina...")
Voljinorg:Emote(1, 2500)
Jainaorg:MoveTo(1921.014771, -4138.953125, 40.575260, 1.640426)
Voljinorg:RegisterEvent("Orgevent5", 5000, 1)
end
function Orgevent5(pUnit, event)
Jainaorg:SendChatMessage(12, 0, "Vol'jin, what has happened? The orcs have droped a bomb on Theramore...")
Jainaorg:Emote(5, 2500)
D1:MoveTo(1925.066040, -4138.557617, 40.634983, 3.211223)
D2:MoveTo(1923.107544, -4141.296387, 40.632919, 2.143081)
D3:MoveTo(1919.909302, -4141.289063, 40.619839, 1.137772)
D4:MoveTo(1918.352417, -4139.445801, 40.609798, 0.191397)
D1:Emote(45, 25000)
D2:Emote(45, 25000)
D3:Emote(45, 25000)
D4:Emote(45, 25000)
Voljinorg:RegisterEvent("Orgevent6", 6000, 1)
end
function Orgevent6(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "Jaina, what happened at Theramore. It was a betrayal from within...")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent7", 10000, 1)
end
function Orgevent7(pUnit, event)
Thrallorg:MoveTo(1918.177002, -4136.513672, 40.566811, 4.766311)
Voljinorg:RegisterEvent("Orgevent8", 5000, 1)
end
function Orgevent8(pUnit, event)
Thrallorg:SendChatMessage(12, 0, "Lady Proudmoore, the Warchief speaks the truth. This subterfuge was set in motion by Garrosh and corrupted orcs. It was not the Horde's doing.")
Thrallorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent9", 15000, 1)
end
function Orgevent9(pUnit, event)
Thrallorg:SendChatMessage(12, 0, "As the combined Horde and Alliance forces began their assault upon Wintergrasp, an uprising broke out in Orgrimmar. Garrosh and hordes of his corrupted brethren attacked in a mutiny to remove Vol'jin from power. Vol'jin acted swiftly and fought back removing hundreds of orcs from the city pushing them back into Razor Hill.")
Thrallorg:Emote(5, 5000)
Voljinorg:RegisterEvent("Orgevent10", 15000, 1)
end
function Orgevent10(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "The Horde has lost Razor Hill.")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent11", 3000, 1)
end
function Orgevent11(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "We now prepare to lay siege to the city and bring the perpetrators of this unforgivable crime to justice.")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent12", 8000, 1)
end
function Orgevent12(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "Know this, Jaina: War with the Alliance is not in our best interests. If we are forced into a conflict, Garrosh will destroy our divided forces in Northrend..")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent13", 12000, 1)
end
function Orgevent13(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "We will make this right, Jaina. Tell your people all that you have learned here.")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent14", 8000, 1)
end
function Orgevent14(pUnit, event)
Jainaorg:SendChatMessage(12, 0, "l will deliver this information to my people Thrall, but....")
Jainaorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent15", 4000, 1)
end
function Orgevent15(pUnit, event)
Jainaorg:SendChatMessage(12, 0, "Theramore was like a home to me. When Varrian ruled the Alliance...Theramore was a place where I ruled, and I kept the Alliance united from afar. Theramore is where i grew up, it is were our people found strength in our darkest hours.")
Jainaorg:Emote(1, 6500)
Voljinorg:RegisterEvent("Orgevent16", 15000, 1)
end
function Orgevent16(pUnit, event)
Jainaorg:SendChatMessage(12, 0, "l fear that the rage will consume the Alliance, Vol'jin. l remain hopeful that reason will prevail, but we must prepare for the worst... for war.")
Jainaorg:Emote(1, 4500)
Voljinorg:RegisterEvent("Orgevent17", 15000, 1)
end
function Orgevent17(pUnit, event)
Jainaorg:SendChatMessage(12, 0, "Farewell, Warchief. l pray that the next time we meet it will be as allies.")
Jainaorg:Emote(1, 2500)
D1:MoveTo(1932.395996, -4138.305664, 40.621716, 3.886666)
D2:MoveTo(1932.588013, -4157.461914, 40.611843, 2.417970)
D3:MoveTo(1911.293579, -4158.170410, 40.170410, 0.701875)
D4:MoveTo(1909.982910, -4139.156250, 40.624950, 5.512440)
Voljinorg:RegisterEvent("Orgevent18", 8000, 1)
end
function Orgevent18(pUnit, event)
Jainaorg:MoveTo(1921.517944, -4146.989258, 40.635242, 4.782021)
Voljinorg:RegisterEvent("Orgevent19", 2000, 1)
end
function Orgevent19(pUnit, event)
Jainaorg:CastSpell(61456)
Jainaorg:Despawn(1600, 0)
Voljinorg:RegisterEvent("Orgevent20", 2000, 1)
end
function Orgevent20(pUnit, event)
Voljinorg:SendChatMessage(12, 0, "Kor'kron, prepare transport to Razor Hill.")
Voljinorg:Emote(1, 2500)
Voljinorg:RegisterEvent("Orgevent21", 2000, 1)
end
function Orgevent21(pUnit, event)
Voljinorg:MoveTo(1920.153687, -4128.087402, 43.141457, 4.738300)
Thrallorg:MoveTo(1915.068359, -4124.972656, 43.215717, 4.898258)
Voljinorg:SetNPCFlags(3)
end