Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 600000
- function Arena_Gossiper(unit, event, player)
- unit:SendChatMessage(12, 0, "Welcome to a custom arenafight "..player:GetPlayerClass()..".")
- unit:GossipCreateMenu(3000, player, 0)
- unit:GossipMenuAddItem(0, "Yes, I will enter arena", 1, 0)
- unit:GossipSendMenu(player)
- end
- function Arena_Gossipen(unit, event, player, id, intid, code)
- if(intid == 1) then
- unit:SetNPCFlags(2)
- player:Teleport(1, 2193.516113, -4751.277344, 55.137966, 3.835992)
- local rand = math.random(1,4)
- if (rand == 1) then
- unit:SendChatMessage(14, 0, "It will now appear the former forth Scher Kel'Thuzad by Eastern Kingdoms against you, "..player:GetName()..".")
- unit:SpawnCreature(600001, 2173.899414, -4784.573242, 55.137966, 1.343175, 20, 0)
- elseif (rand == 2) then
- unit:SendChatMessage(14, 0, "Now the forth shearing of Archimonde from Kalimdor is than against you, "..player:GetName()..".")
- unit:SpawnCreature(600002, 2173.899414, -4784.573242, 55.137966, 1.343175, 20, 0)
- elseif (rand == 3) then
- unit:SendChatMessage(14, 0, "The cheaters of the Outland is already waiting for you, "..player:GetName()..".")
- unit:SpawnCreature(600003, 2173.899414, -4784.573242, 55.137966, 1.343175, 20, 0, 32837, 32838)
- elseif (rand == 4) then
- unit:SendChatMessage(14, 0, "The leader of the hostage is ready for you, "..player:GetName()..".")
- unit:SpawnCreature(600004, 2173.899414, -4784.573242, 55.137966, 1.343175, 20, 0, 49623)
- end
- end
- end
- RegisterUnitGossipEvent(600000, 1, "Arena_Gossiper")
- RegisterUnitGossipEvent(600000, 2, "Arena_Gossipen")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement