Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Hello(pUnit, event, pPlayer)
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(0, "Event Easy", 1, 0) -- intid is 1
- pUnit:GossipMenuAddItem(0, "Event Med", 2, 0)
- pUnit:GossipSendMenu(pPlayer)
- end
- --[[
- You'll definatly need to replace all the text after the = sign with your MapID, X, Y, Z, and Orientation. Delete that text!
- For example,
- local map = 1
- local x = 123.455
- local y = -123.455
- local z = 1234.566
- local o = 2.4434
- ]]
- local map1 = first map
- local x1 = first x position here
- local y1 = first y position here
- local z1 = first z position here
- local o1 = first orientation here
- local map2 = second map
- local x2 = second x position here
- local y2 = second y position here
- local z2 = second z position here
- local o2 = second orientation here
- function Teleport(pUnit, event, pPlayer, id, intid, code)
- if(intid = 1) then
- pPlayer:Teleport(map1, x1, y1, z1, o1)
- end
- if(intid = 2) then
- pPlayer:Teleport(map2, x2, y2, z2, o2)
- end
- end
- RegisterUnitGossipEvent(90001, 1, Hello)
- RegisterUnitGossipEvent(90001, 2, Teleport)
Advertisement
Add Comment
Please, Sign In to add comment