MMOCoin

Likes Likes:  0
Results 1 to 5 of 5

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Graphics Guru

    Join Date
    Feb 2009
    Posts
    1,377
    Post Thanks / Like
    Rep Power
    24
    Reputation
    382

    [Release]ICC Teleporter, creature + script


    Here is a screenshot:







    All credits go to Austinsims

    Here are the downloads:
    Scourge Portal NPC
    Code:
    --[[
        Script made by austinsims 
    ]]
    
    function portalGossipOnTalk(pUnit, Event, player)
        pUnit:GossipCreateMenu(100, player, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to Light's Hammer", 1, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to Oratory of The Damned", 2, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to Rampart of Skulls", 3, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to Deathbringer's Rise", 4, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to The Plagueworks", 5, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to The Crimson Halls", 6, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to The Frostwing Halls", 7, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to The Frost Queen's Lair", 8, 0)
        pUnit:GossipMenuAddItem(0, "Teleport to The Frozen Throne", 9, 0)
        pUnit:GossipSendMenu(player)
    end
    
    function portalGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
        if (intid == 1) then
            player:Teleport(631, -17.856115, 2211.640137, 30.115812)
            player:GossipComplete()
        end
    
        if (intid == 2) then
            player:Teleport(631, -503.632599, 2211.219971, 62.823246)
            player:GossipComplete()
        end
        
        if (intid == 3) then
            player:Teleport(631, -615.098267, 2211.509766, 199.973083)
            player:GossipComplete()
        end
            
        if (intid == 4) then
            player:Teleport(631, -549.151001, 2211.463967, 539.290222)
            player:GossipComplete()
        end
    
        if (intid == 5) then
            player:Teleport(631, 4356.780273, 2863.636230, 349.337982)
            player:GossipComplete()
        end
    
        if (intid == 6) then
            player:Teleport(631, 4453.248535, 2769.325684, 349.347473)
            player:GossipComplete()
        end
    
        if (intid == 7) then
            player:Teleport(631, 4356.853516, 2674.143311, 349.340118)
            player:GossipComplete()
        end
    
        if (intid == 8) then
            player:Teleport(631, 4356.527344, 2402.710205, 220.462723)
            player:GossipComplete()
        end
    
        if (intid == 9) then
            player:Teleport(631, -782.4, 2604.1, 1784.6)
            player:GossipComplete()
        end
    end
    
    RegisterUnitGossipEvent(99098, 1, "portalGossipOnTalk")
    RegisterUnitGossipEvent(99098, 2, "portalGossipOnSelect")
    Last edited by Apple; 24-03-10 at 05:50 AM. Reason: too bright colours ;o



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •