View difference between Paste ID: pPX3cgXX and URPpZRM5
SHOW: | | - or go back to the newest paste.
1
--[[#####################CARLSBERG#######################
2
This script (NPC) should be spawned in graveyards to make it possible for people to remove Resurrection Sickness
3
4
]]
5
6
-- ID is still unknown
7
local YOUR_NPC = (UNKNOWN)
8
9
function graveyardGossipOnTalk(Unit, Event, player)
10
	Unit:GossipCreateMenu(100, player, 0)
11
	Unit:GossipMenuAddItem(0, "Take me home", 1, 0)
12
	Unit:GossipMenuAddItem(0, "Remove Resurrection Sickness.", 2, 0)
13
	Unit:GossipMenuAddItem(0, "Repair my items.", 3, 0)
14-
	Unit:GossipMenuAddItem(0, "BYE.", 4, 0)
14+
15
end
16
17
function graveyardGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
18
	if (intid == 1) then
19
		player:Teleport(0, 0000.0000, 0000.0000, 0000.0000, 0.0000)
20-
		player:Teleport(0, 00000000, 0000000000, 0000000)
20+
	elseif (intid == 2) then
21-
		player:GossipComplete()
21+
		if (player:HasAura(15007)) then
22
			player:SendBroadcastMessage("Resurrection Sickness has been removed!")
23-
	if (intid == 2) then
23+
24-
		if (player:HasAura(15007) == true) then
24+
25
			player:SendBroadcastMessage("You have no Resurrection Sickness!")
26
		end
27-
			player:GossipComplete()
27+
	elseif (intid == 3) then
28
		player:RepairAllPlayerItems()
29
	end
30-
			player:GossipComplete()
30+
	player:GossipComplete()
31
end
32
33-
	if (intid == 3) then
33+
34-
	        player:RepairAllPlayerItems()
34+