Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Credits Warlord777/InfernoGaming
- ]]
- -- Variables
- local NPC_ID = IDHERE!
- -- On Triggers
- function exampleGossipOnTalk(Unit, Event, player)
- Unit:GossipCreateMenu(100, player, 0)
- Unit:GossipMenuAddItem(1, "Teleport me to The Mall", 1, 0)
- Unit:GossipMenuAddItem(1, "Teleport me to Level Road, 4, 0)
- Unit:GossipMenuAddItem(3, "Remove Resurrection Sickness.", 2, 0)
- Unit:GossipMenuAddItem(0, "Never mind.", 3, 0)
- Unit:GossipSendMenu(player)
- end
- function exampleGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
- if (intid == 1) then
- player:Teleport(1, -9101.980469, 1612.902832, 21)
- player:GossipComplete()
- end
- if (intid == 4) then
- player:Teleport(530, 11658.806641, -7103.918945, 11.104808)
- 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 do not have Resurrection Sickness!")
- player:GossipComplete()
- end
- end
- if (intid == 3) then
- player:GossipComplete()
- end
- end
- -- RegisterUnitEvents
- RegisterUnitGossipEvent(NPC_ID, 1, "GossipOnTalk")
- RegisterUnitGossipEvent(NPC_ID, 2, "GossipOnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement