Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Nupper's Avatar
    Status : Nupper is offline
    Join Date : Aug 2009
    Location : Red Castle Entertainment UK
    Posts : 348
    Thanks: 1
    Thanked 79 Times in 37 Posts
    Rep Power : 4
    Reputation:151Nupper has a spectacular aura about Nupper has a spectacular aura about

    Default [LUA] One Location NPC Teleporter

    Recommended for Custom Instances
    Designed for both horde and alliance

    function Teleport_menu(pUnit, Event, player) -- added the word event works now
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0, "Do you wanna teleport", 1, 0)
    pUnit:GossipMenuAddItem(0, "No Thanks", 2, 0)
    pUnit:GossipSendMenu(player)
    -- end delete this end too many ends lol
    end


    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)

    if(intid == 1) then
    player:Teleport(0, -8924.706055, 545.626953, 96.633163) --Stormwind at the moment but enter your own coords here
    end

    if(intid == 2) then
    player:GossipComplete()
    end
    end

    RegisterUnitGossipEvent(NPC_ID_HERE, 1, "Teleport_menu")
    RegisterUnitGossipEvent(NPC_ID_HERE, 2, "Teleport_on_gossip_select")
    [Only registered and activated users can see links. ]
    ©2011 Red Castle Entertainment, Inc. All rights reserved.
    All trademarks referenced herein are the properties of their respective owners.
    ©2011 Red Castle Entertainment. All rights reserved.

    [Only registered and activated users can see links. ], [Only registered and activated users can see links. ], Repacks, Cracks, Under Development
    Red Castle Entertainment Protected By Avast Internet Security 6

  2. #2
    yvo
    Status : yvo is offline
    Join Date : Jul 2009
    Location : Under a roof
    Posts : 304
    Thanks: 10
    Thanked 11 Times in 10 Posts
    Rep Power : 3
    Reputation:71yvo will become famous soon enough

    Default

    Script seems okay

  3. #3
    Nupper's Avatar
    Status : Nupper is offline
    Join Date : Aug 2009
    Location : Red Castle Entertainment UK
    Posts : 348
    Thanks: 1
    Thanked 79 Times in 37 Posts
    Rep Power : 4
    Reputation:151Nupper has a spectacular aura about Nupper has a spectacular aura about

    Default

    tested and works
    [Only registered and activated users can see links. ]
    ©2011 Red Castle Entertainment, Inc. All rights reserved.
    All trademarks referenced herein are the properties of their respective owners.
    ©2011 Red Castle Entertainment. All rights reserved.

    [Only registered and activated users can see links. ], [Only registered and activated users can see links. ], Repacks, Cracks, Under Development
    Red Castle Entertainment Protected By Avast Internet Security 6

  4. #4
    yvo
    Status : yvo is offline
    Join Date : Jul 2009
    Location : Under a roof
    Posts : 304
    Thanks: 10
    Thanked 11 Times in 10 Posts
    Rep Power : 3
    Reputation:71yvo will become famous soon enough

    Default

    Yeap it worked.
    I tested it also,


 

Visitors found this page by searching for:

lua npc teleporter

Red Castle Entertainment lua

npc teleport arcemu

SEO Blog

Bookmarks

Posting Permissions

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