Code:
******************************
* *
* The FrostTeam Project *
* *
******************************
--FrostTeam SVN consists of the latest WotLK
scripts, both Lua and C++. Some will be our own,
some will be others with credits attatched. Our
Svn includes all scripts that you may need
to help make your server a more fun environment.--
---------------------------//----------------------------------------------
function DK_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(100, player, 1)
pUnit:GossipMenuAddItem(0, "Deathknight, The Lich King wants to see you immediatly!", 2, 0)
pUnit:GossipSendMenu(player)
end
function DK_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (intid == 2) then
pUnit:SendChatMessage(12, 0, "Behold... Arthas, the Lich King!")
x=pUnit:GetX();
y=pUnit:GetY();
z=pUnit:GetZ();
o=pUnit:GetO();
pUnit:SpawnCreature(IDHERE, x, y, z, o, 35, 0)
pUnit:Despawn(2000, 0)
pUnit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(IDHERE, 1, "DK_OnGossipTalk")
RegisterUnitGossipEvent(IDHERE, 2, "DK_OnGossipSelect")
function Arthas_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(100, player, 1)
pUnit:GossipMenuAddItem(0, "Deathknight, it has come to my attention that you are a disciple. I have some information to give you...", 3, 0)
pUnit:GossipSendMenu(player)
end
function Arthas_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (intid == 3) then
pUnit:RegisterEvent("Arthas_talk1", 1000, 1)
pUnit:RegisterEvent("Arthas_talk2", 5000, 1)
pUnit:RegisterEvent("Arthas_talk3", 10000, 1)
pUnit:RegisterEvent("Arthas_talk1", 16000, 1)
pUnit:RegisterEvent("Arthas_Despawn", 18000, 0)
pUnit:GossipComplete(player)
end
end
function Arthas_talk1(pUnit,Event)
pUnit:SendChatMessage(12, 0 "I think you know that we are currently at war with Illidan Stormrage...")
end
function Arthas_talk2(pUnit,Event)
pUnit:SendChatMessage(12, 0, "He is trying to stop us... so I need your help.")
end
function Arthas_talk3(pUnit,Event)
pUnit:SendChatMessage(12, 0, "I want you kill him, make him feel the might of the Deathknight!")
end
function Arthas_talk4(pUnit,Event)
pUnit:SendChatMessage(12, 0, "I trust in you... So go now... And Welcome to Northrend!")
end
function Arthas_Despawn(pUnit,Event)
pUnit:SendChatMessage(12, 0, "Farewell, for now.")
pUnit:Despawn(2000, 0)
x=pUnit:GetX();
y=pUnit:GetY();
z=pUnit:GetZ();
o=pUnit:GetO();
pUnit:SpawnCreature(IDHERE, x, y, z, o, 35, 0) --- ID of the DK
end
RegisterUnitGossipEvent(IDHERE, 1, "Arthas_OnGossipTalk")
RegisterUnitGossipEvent(IDHERE, 2, "Arthas_OnGossipSelect")