local npcid = 81021
function Ambassador_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(1, player, 0)
pUnit:GossipMenuAddItem(0, "Who the hell are you?", 1, 0)
pUnit:GossipMenuAddItem(5, "Nevermind", 2, 0)
pUnit:GossipSendMenu(player)
end
function Ambassador_OnSelect(pUnit, event, player, id, intid, code)
if (intid == 1) then
pUnit:GossipCreateMenu(1, player, 0)
pUnit:GossipMenuAddItem(4, "Proceed", 11, 0)
pUnit:GossipMenuAddItem(4, "Forget it", 2, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 11) then
pUnit:SendChatMessage(12, 0, "I am Ambassador Kharr, the great Darklord of the Twilight Legion. I am in charge of succeeding in our plans of destroying and conquering the whole world... Enough about me, I got better things to do!!!")
pUnit:MoveTo(-8515.610352, 2014.859985, 104.526001, -2.506109)
player:GossipComplete()
pUnit:RegisterEvent("Ambassador_Start", 8000, 1)
end
if(intid == 2) then
pUnit:SendChatMessage(12, 0, "What, Are you scared?")
player:GossipComplete()
end
end
function Ambassador_Start(pUnit, event)
pUnit:SpawnCreature(81020, -8566.162109, 1977.575684, 100.220535, 2.263582, 14, 0, 0)
pUnit
espawn(1000, 0)
end
RegisterUnitGossipEvent(81021, 1, "Ambassador_OnGossipTalk")
RegisterUnitGossipEvent(81021, 2, "Ambassador_OnSelect")