Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[#####################CARLSBERG#######################
- This script (NPC) should be spawned in graveyards to make it possible for people to remove Resurrection Sickness
- ]]
- -- ID is still unknown
- local YOUR_NPC = (UNKNOWN)
- function graveyardGossipOnTalk(Unit, Event, player)
- Unit:GossipCreateMenu(100, player, 0)
- Unit:GossipMenuAddItem(0, "Take me home", 1, 0)
- Unit:GossipMenuAddItem(0, "Remove Resurrection Sickness.", 2, 0)
- Unit:GossipMenuAddItem(0, "Repair my items.", 3, 0)
- Unit:GossipMenuAddItem(0, "BYE.", 4, 0)
- Unit:GossipSendMenu(player)
- end
- function graveyardGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
- if (intid == 1) then
- player:Teleport(0, 00000000, 0000000000, 0000000)
- player:GossipComplete()
- end
- if (intid == 2) then
- if (player:HasAura(15007) == true) then
- player:SendBroadcastMessage("Resurrection Sickness has been removed!")
- player:RemoveAura(15007)
- player:GossipComplete()
- else
- player:SendBroadcastMessage("You have no Resurrection Sickness!")
- player:GossipComplete()
- end
- end
- if (intid == 3) then
- player:RepairAllPlayerItems()
- player:GossipComplete()
- end
- if (intid == 4) then
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(YOUR_NPC, 1, graveyardGossipOnTalk)
- RegisterUnitGossipEvent(YOUR_NPC, 2, graveyardGossipOnSelect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement