Advertisement
AkaiKitsune

Lua ICC

Mar 31st, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.02 KB | None | 0 0
  1. --[[
  2.     Script made by austinsims of ac-web.org!
  3. ]]
  4.  
  5. function portalGossipOnTalk(pUnit, Event, player)
  6.     pUnit:GossipCreateMenu(100, player, 0)
  7.     pUnit:GossipMenuAddItem(0, "Teleport to Light's Hammer", 1, 0)
  8.     pUnit:GossipMenuAddItem(0, "Teleport to Oratory of The Damned", 2, 0)
  9.     pUnit:GossipMenuAddItem(0, "Teleport to Rampart of Skulls", 3, 0)
  10.     pUnit:GossipMenuAddItem(0, "Teleport to Deathbringer's Rise", 4, 0)
  11.     pUnit:GossipMenuAddItem(0, "Teleport to The Plagueworks", 5, 0)
  12.     pUnit:GossipMenuAddItem(0, "Teleport to The Crimson Halls", 6, 0)
  13.     pUnit:GossipMenuAddItem(0, "Teleport to The Frostwing Halls", 7, 0)
  14.     pUnit:GossipMenuAddItem(0, "Teleport to The Frost Queen's Lair", 8, 0)
  15.     pUnit:GossipMenuAddItem(0, "Teleport to The Frozen Throne", 9, 0)
  16.     pUnit:GossipSendMenu(player)
  17. end
  18.  
  19. function portalGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
  20.     if (intid == 1) then
  21.         player:Teleport(631, -17.856115, 2211.640137, 30.115812)
  22.         player:GossipComplete()
  23.     end
  24.  
  25.     if (intid == 2) then
  26.         player:Teleport(631, -503.632599, 2211.219971, 62.823246)
  27.         player:GossipComplete()
  28.     end
  29.    
  30.     if (intid == 3) then
  31.         player:Teleport(631, -615.098267, 2211.509766, 199.973083)
  32.         player:GossipComplete()
  33.     end
  34.        
  35.     if (intid == 4) then
  36.         player:Teleport(631, -549.151001, 2211.463967, 539.290222)
  37.         player:GossipComplete()
  38.     end
  39.  
  40.     if (intid == 5) then
  41.         player:Teleport(631, 4356.780273, 2863.636230, 349.337982)
  42.         player:GossipComplete()
  43.     end
  44.  
  45.     if (intid == 6) then
  46.         player:Teleport(631, 4453.248535, 2769.325684, 349.347473)
  47.         player:GossipComplete()
  48.     end
  49.  
  50.     if (intid == 7) then
  51.         player:Teleport(631, 4356.853516, 2674.143311, 349.340118)
  52.         player:GossipComplete()
  53.     end
  54.  
  55.     if (intid == 8) then
  56.         player:Teleport(631, 4356.527344, 2402.710205, 220.462723)
  57.         player:GossipComplete()
  58.     end
  59.  
  60.     if (intid == 9) then
  61.         player:Teleport(631, -782.4, 2604.1, 1784.6)
  62.         player:GossipComplete()
  63.     end
  64. end
  65.  
  66. RegisterUnitGossipEvent(99098, 1, "portalGossipOnTalk")
  67. RegisterUnitGossipEvent(99098, 2, "portalGossipOnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement