LUA Teleporter NPC Template and Guide!! (easy) menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Teleporter NPC Template and Guide!! (easy)

    Hey guys im going to be giving you a already made basic Teleporter NPC and a guide so you can customize it you your own desires!!

    First off if you don't know how to save LUA files i'll be putting download links at bottom!

    Step 1: The NPC

    Your going to need a NPC for your Teleporter either you can make two to dislike a faction or have one neutral NPC (which i use).

    Here is the NPC

    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) 
    values ('76666', "Taxi", "Teleporter NPC", '', '0', '7', '0', '3', '0', '0', '27545', '0', '0', '0', '1', '1', '1', '0');
    
    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`) 
    values ('76666', '80', '80', '7', '9000000', '9000000', '100000', '1', '1', '1000', '0', '99999', '99999', '0', '0', '0', '0', '3600', '20000', '9999', '9999', '9999', '9999', '9999', '9999', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
    Here is the SQL file download : DOWNLOAD NOW!

    Copy that into a file and save as an SQL file!

    Open Navicat or what program you use and execute it into your database

    ID: 76666

    To spawn in game .npc spawn 76666

    Step 2: The Teleporter LUA

    This LUA consists of cities only, you talk to the NPC and he will teleport you to the main cities including Dalaran

    Here is the Already made LUA Teleporter : DOWNLOAD HERE!

    Put this into your Scripts folder not your Script Bin folder.

    Here is the Template:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    unit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    unit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    unit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    unit:GossipMenuAddItem(1, "Exodar", 304, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    unit:GossipMenuAddItem(1, "Undercity", 306, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 307, 0)
    unit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
    RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")

    Ok here we go:

    For: unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)

    This lets you add menus for when you talk to your NPC

    Each Time you Add a Menu make sure you change the Red
    so it orders in
    2
    3
    4 ect..

    For the Name you name it to where you want to go!

    Next part!

    For: unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)

    it is basically the Submenu and when you click it you will teleport there.

    for the RED make sure EACH one is different! or it won't work!

    It Must also match this:

    if(intid == 305) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end

    Then you go ingame and type .gps and fill out the Green with what comes up!

    That pretty much covers the basics, if you practice and read through it you will be fine. Post if you need help
    Last edited by Jackie Moon; 01-17-2009 at 12:24 AM.
    Check out my YouTube: SkeetzGaming

    LUA Teleporter NPC Template and Guide!! (easy)
  2. #2
    Daethz's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do i do with the second download?

  3. #3
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put it into your scripts folder i added it to guide
    Check out my YouTube: SkeetzGaming

  4. #4
    CranciCAR's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When i opened Navicat and Pressed Execute Batch File and selected the SQL file it sad Finished-Unsuccesfully and [Err] 1062 - Duplicate entry '76666' for key 1 and when i opened my WoW and .npc spawn 76666 it sad
    Code:
    Invalid ID
    What should i do????
    Last edited by CranciCAR; 01-24-2009 at 06:41 PM.

  5. #5
    ladygamer's Avatar Contributor CoreCoins Purchaser
    Reputation
    146
    Join Date
    Jan 2007
    Posts
    428
    Thanks G/R
    11/14
    Trade Feedback
    5 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks worked perfectfor me curious tho how do u usually find mapids?

  6. #6
    Thepriest1750's Avatar Member
    Reputation
    1
    Join Date
    Dec 2006
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks alot this one works

    great job

  7. #7
    xxzel0txx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do i add custum locations like shops and arena stuff like that

  8. #8
    Sheedin's Avatar Member
    Reputation
    1
    Join Date
    Feb 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey um me and friend used this for our private server and we are trying to add more menus to it can you explain it in a way thats easy to follow and doesnt hurt me head? lol

  9. #9
    forbidden13's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that is funny as hell . but i can so relate to that ,head hurt! I changed the name of taxi to Ass, Grass, or Cash no one rides for FREE ! hope ya dont mind .
    Last edited by forbidden13; 02-16-2009 at 02:24 AM.

  10. #10
    Everlast118's Avatar Member
    Reputation
    4
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got a problem with the script, I totally edited mine and now it doesn't work. Says there should be an end to line 17. If anyone can help me that would be greatly appreciated.

    Took me 3 days to script and then it failed. Any suggestions?

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Eastern Kingdom Locations", 3, 0)
    unit:GossipMenuAddItem(2, "Kalimdor Locations", 4, 0)
    unit:GossipMenuAddItem(2, "Outland Locations", 5, 0)
    unit:GossipMenuAddItem(2, "Azeroth Instances", 6, 0)
    unit:GossipMenuAddItem(2, "Outland Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Gurubashi Arena", 420, 0)
    unit:GossipMenuAddItem(2, "WOTLK Locations", 8, 0)
    unit:GossipMenuAddItem(2, "WOTLK Instances", 9, 0)
    unit:GossipMenuAddItem(2, "Remove Resurrection Sickness", 998, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Eastern Kingdom Locations", 3, 0)
    unit:GossipMenuAddItem(2, "Kalimdor Locations", 4, 0)
    unit:GossipMenuAddItem(2, "Outland Locations", 5, 0)
    unit:GossipMenuAddItem(2, "Azeroth Instances", 6, 0)
    unit:GossipMenuAddItem(2, "Outland Instances", 7, 0)
    unit:GossipMenuAddItem(2, "Gurubashi Arena", 420, 0)
    unit:GossipMenuAddItem(2, "WOTLK Locations", 8, 0)
    unit:GossipMenuAddItem(2, "WOTLK Instances", 9, 0)
    unit:GossipMenuAddItem(2, "Remove Resurrection Sickness", 10, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Stormwind", 300, 0)
    unit:GossipMenuAddItem(1, "Ironforge", 301, 0)
    unit:GossipMenuAddItem(1, "Darnassus", 302, 0)
    unit:GossipMenuAddItem(1, "Exodar", 303, 0)
    unit:GossipMenuAddItem(1, "Mall", 418, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 304, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 305, 0)
    unit:GossipMenuAddItem(1, "Undercity", 306, 0)
    unit:GossipMenuAddItem(1, "Silvermoon", 307, 0)
    unit:GossipMenuAddItem(1, "Mall", 419, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Alterac Mountains", 308, 0)
    unit:GossipMenuAddItem(1, "Arathi Highlands", 309, 0)
    unit:GossipMenuAddItem(1, "Badlands", 310, 0)
    unit:GossipMenuAddItem(1, "Burning Steppes", 311, 0)
    unit:GossipMenuAddItem(1, "Deadwind Pass", 312, 0)
    unit:GossipMenuAddItem(1, "Dun Morogh", 313, 0)
    unit:GossipMenuAddItem(1, "Duskwood", 314, 0)
    unit:GossipMenuAddItem(1, "Eastern Plaguelands", 315, 0)
    unit:GossipMenuAddItem(1, "Elwynn Forest", 316, 0)
    unit:GossipMenuAddItem(1, "Eversong Woods", 317, 0)
    unit:GossipMenuAddItem(1, "Ghostlands", 318, 0)
    unit:GossipMenuAddItem(1, "Hillsbrad Foothills", 319, 0)
    unit:GossipMenuAddItem(1, "Hinterlands", 320, 0)
    unit:GossipMenuAddItem(1, "Loch Modan", 321, 0)
    unit:GossipMenuAddItem(1, "Searing Gorge", 322, 0)
    unit:GossipMenuAddItem(1, "Silverpine Forest", 323, 0)
    unit:GossipMenuAddItem(1, "Stranglethorn vale", 324, 0)
    unit:GossipMenuAddItem(1, "Swamp of Sorrows", 325, 0)
    unit:GossipMenuAddItem(1, "The Blasted Lands", 326, 0)
    unit:GossipMenuAddItem(1, "Trisfal Glades", 327, 0)
    unit:GossipMenuAddItem(1, "Western Plaguelands", 328, 0)
    unit:GossipMenuAddItem(1, "Westfall", 329, 0)
    unit:GossipMenuAddItem(1, "Wetlands", 330, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Ashenvale", 331, 0)
    unit:GossipMenuAddItem(1, "Azshara", 332, 0)
    unit:GossipMenuAddItem(1, "Azuremyst Isle", 333, 0)
    unit:GossipMenuAddItem(1, "Bloodmyst Isle", 334, 0)
    unit:GossipMenuAddItem(1, "Darkshore", 335, 0)
    unit:GossipMenuAddItem(1, "Durotar", 336, 0)
    unit:GossipMenuAddItem(1, "Desolace", 337, 0)
    unit:GossipMenuAddItem(1, "Dustwallow Marsh", 338, 0)
    unit:GossipMenuAddItem(1, "Felwood", 339, 0)
    unit:GossipMenuAddItem(1, "Feralas", 340, 0)
    unit:GossipMenuAddItem(1, "Moonglade", 341, 0)
    unit:GossipMenuAddItem(1, "Mulgore", 342, 0)
    unit:GossipMenuAddItem(1, "Silithus", 343, 0)
    unit:GossipMenuAddItem(1, "Stonetalon Mountains", 344, 0)
    unit:GossipMenuAddItem(1, "Tanaris", 345, 0)
    unit:GossipMenuAddItem(1, "Teldrassil", 346, 0)
    unit:GossipMenuAddItem(1, "The Barrens", 347, 0)
    unit:GossipMenuAddItem(1, "Thousand Needles", 348, 0)
    unit:GossipMenuAddItem(1, "Un Goro Crater", 349, 0)
    unit:GossipMenuAddItem(1, "Winterspring", 350, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Blade's Edge Mountains", 351, 0)
    unit:GossipMenuAddItem(1, "Hellfire Peninsula", 352, 0)
    unit:GossipMenuAddItem(1, "Nagrand", 353, 0)
    unit:GossipMenuAddItem(1, "Netherstorm", 354, 0)
    unit:GossipMenuAddItem(1, "Shadowmoon Valley", 355, 0)
    unit:GossipMenuAddItem(1, "Terokkar Forest", 356, 0)
    unit:GossipMenuAddItem(1, "Zangarmarsh", 357, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Ahn'Qiraj", 358, 0)
    unit:GossipMenuAddItem(1, "Blackfathom Depths", 359, 0)
    unit:GossipMenuAddItem(1, "Blackrock Depths", 360, 0)
    unit:GossipMenuAddItem(1, "Blackrock Spire", 361, 0)
    unit:GossipMenuAddItem(1, "Blackwing Lair", 362, 0)
    unit:GossipMenuAddItem(1, "Caverns of Time", 363, 0)
    unit:GossipMenuAddItem(1, "Deadmines", 364, 0)
    unit:GossipMenuAddItem(1, "Dire Maul", 365, 0)
    unit:GossipMenuAddItem(1, "Gnomeregan", 366, 0)
    unit:GossipMenuAddItem(1, "Maraudon", 367, 0)
    unit:GossipMenuAddItem(1, "Molten Core", 368, 0)
    unit:GossipMenuAddItem(1, "Onyxia's Lair", 369, 0)
    unit:GossipMenuAddItem(1, "Ragefire Chasm", 370, 0)
    unit:GossipMenuAddItem(1, "Razorfen Downs", 371, 0)
    unit:GossipMenuAddItem(1, "Razorfen Kraul", 372, 0)
    unit:GossipMenuAddItem(1, "Scarlet Monestary", 373, 0)
    unit:GossipMenuAddItem(1, "Scholomance", 374, 0)
    unit:GossipMenuAddItem(1, "Shadowfang Keep", 375, 0)
    unit:GossipMenuAddItem(1, "Stratholme", 376, 0)
    unit:GossipMenuAddItem(1, "Sunken Temple", 377, 0)
    unit:GossipMenuAddItem(1, "Uldaman", 378, 0)
    unit:GossipMenuAddItem(1, "Wailing Caverns", 379, 0)
    unit:GossipMenuAddItem(1, "Zul'Aman", 380, 0)
    unit:GossipMenuAddItem(1, "Zul'Farrak", 381, 0)
    unit:GossipMenuAddItem(1, "Zul'Gurub", 382, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Auchenai Crypts", 383, 0)
    unit:GossipMenuAddItem(1, "Black Temple", 384, 0)
    unit:GossipMenuAddItem(1, "Coilfang Reservoir", 385, 0)
    unit:GossipMenuAddItem(1, "Gruul's Lair", 386, 0)
    unit:GossipMenuAddItem(1, "Hellfire Citadel", 387, 0)
    unit:GossipMenuAddItem(1, "Mana Tombs", 388, 0)
    unit:GossipMenuAddItem(1, "Pheonix Hall", 389, 0)
    unit:GossipMenuAddItem(1, "Sethekk Halls", 390, 0)
    unit:GossipMenuAddItem(1, "Shadow Labyrinth", 391, 0)
    unit:GossipMenuAddItem(1, "The Botanica", 392, 0)
    unit:GossipMenuAddItem(1, "The Mechanar", 393, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Dalaran", 403, 0)
    unit:GossipMenuAddItem(1, "DK Start Zone", 405, 0)
    unit:GossipMenuAddItem(1, "Borean Tundra", 394, 0)
    unit:GossipMenuAddItem(1, "Crystalsong Forest", 404, 0)
    unit:GossipMenuAddItem(1, "Dragonblight", 395, 0)
    unit:GossipMenuAddItem(1, "Grizzly Hills", 396, 0)
    unit:GossipMenuAddItem(1, "Howling Fjord", 397, 0)
    unit:GossipMenuAddItem(1, "Icecrown", 398, 0)
    unit:GossipMenuAddItem(1, "Sholazar Basin", 399, 0)
    unit:GossipMenuAddItem(1, "Storm Peaks", 400, 0)
    unit:GossipMenuAddItem(1, "Wintergrasp", 401, 0)
    unit:GossipMenuAddItem(1, "Zul'Drak", 402, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 9) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Azjol'Nerub", 406, 0)
    unit:GossipMenuAddItem(1, "Drak'Tharon", 407, 0)
    unit:GossipMenuAddItem(1, "Gun'Drak", 408, 0)
    unit:GossipMenuAddItem(1, "Icecrown Citadel", 409, 0)
    unit:GossipMenuAddItem(1, "Naxxaramas", 410, 0)
    unit:GossipMenuAddItem(1, "Obsidian Sanctum", 411, 0)
    unit:GossipMenuAddItem(1, "The Nexus/Occulus/Eye of Eternity", 412, 0)
    unit:GossipMenuAddItem(1, "Halls of Stone/Halls of Lightning", 413, 0)
    unit:GossipMenuAddItem(1, "Utgarde Keep", 414, 0)
    unit:GossipMenuAddItem(1, "Utgarde Pinnacle", 415, 0)
    unit:GossipMenuAddItem(1, "Vault of Archevon", 416, 0)
    unit:GossipMenuAddItem(1, "Violet Hold", 417, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(0, -8928, 540, 95)
    unit:GossipComplete(player)
    end --Stormwind
    
    if(intid == 301) then
    player:Teleport(0, -4981, -881, 502)
    unit:GossipComplete(player)
    end --Ironforge
    
    if(intid == 302) then
    player:Teleport(1, 9978, 2033, 1328.5)
    unit:GossipComplete(player)
    end --Darnassus
    
    if(intid == 303) then
    player:Teleport(503, -4014, -11895, -1.5)
    unit:GossipComplete(player)
    end --Exodar
    
    if(intid == 304) then
    player:Teleport(1, 1502, -4415, 22)
    unit:GossipComplete(player)
    end --Orgrimmar
    
    if(intid == 305) then
    player:Teleport(1, -1283, 158, 130)
    unit:GossipComplete(player)
    end --Thunder Bluff
    
    if(intid == 306) then
    player:Teleport(0, 1752, 239, 61.5)
    unit:GossipComplete(player)
    end --Undercity
    
    if(intid == 307) then
    player:Teleport(503, 9392, -7277, 14.5)
    unit:GossipComplete(player)
    end --Silvermoon
    
    if(intid == 308) then
    player:Teleport(0, 237, -652, 119)
    unit:GossipComplete(player)
    end --Alterac Mountains
    
    if(intid == 309) then
    player:Teleport(0, -1550, -2495, 55)
    unit:GossipComplete(player)
    end --Arathi Highlands
    
    if(intid == 310) then
    player:Teleport(0, -6775, -3286, 242)
    unit:GossipComplete(player)
    end --Badlands
    
    if(intid == 311) then
    player:Teleport(0, -7975, -1786, 133.5)
    unit:GossipComplete(player)
    end --Burning Steppes
    
    if(intid == 312) then
    player:Teleport(0, -10447, -1872, 105)
    unit:GossipComplete(player)
    end --Deadwind Pass
    
    if(intid == 313) then
    player:Teleport(0, -5709, -1339, 395)
    unit:GossipComplete(player)
    end --Dun Morogh
    
    if(intid == 314) then
    player:Teleport(0, -10914, -528, 54)
    unit:GossipComplete(player)
    end --Duskwood
    
    if(intid == 315) then
    player:Teleport(0, 1739, -3623, 120)
    unit:GossipComplete(player)
    end --Eastern Plaguelands
    
    if(intid == 316) then
    player:Teleport(0, -9591, -463, 58)
    unit:GossipComplete(player)
    end --Elwynn Forest
    
    if(intid == 317) then
    player:Teleport(530, 8250, -7214, 140)
    unit:GossipComplete(player)
    end --Eversong Woods
    
    if(intid == 318) then
    player:Teleport(530, 6396, -6848, 101)
    unit:GossipComplete(player)
    end --Ghostlands
    
    if(intid == 319) then
    player:Teleport(0, -440, -582, 54)
    unit:GossipComplete(player)
    end --Hillsbrad Foothills
    
    if(intid == 320) then
    player:Teleport(0, 235, -3298, 110)
    unit:GossipComplete(player)
    end --Hinterlands
    
    if(intid == 321) then
    player:Teleport(0, -5853, -3251, 303)
    unit:GossipComplete(player)
    end --Loch Modan
    
    if(intid == 322) then
    player:Teleport(0, -6645, -1918, 245)
    unit:GossipComplete(player)
    end --Searing Gorge
    
    if(intid == 323) then
    player:Teleport(0, 628, 1291, 87)
    unit:GossipComplete(player)
    end --Silverpine Forest
    
    if(intid == 324) then
    player:Teleport(0, -14246, Y, Z)
    unit:GossipComplete(player)
    end --Stranglethorn Vale
    
    if(intid == 325) then
    player:Teleport(0, -10476, -2408, 74)
    unit:GossipComplete(player)
    end --Swamp of Sorrows
    
    if(intid == 326) then
    player:Teleport(0, -11189, -3023, 8)
    unit:GossipComplete(player)
    end --The Blasted Lands
    
    if(intid == 327) then
    player:Teleport(0, 1599, 569, 38)
    unit:GossipComplete(player)
    end --Tirisfal Glades
    
    if(intid == 328) then
    player:Teleport(0, 1676, -1366, 70)
    unit:GossipComplete(player)
    end --Western Plaguelands
    
    if(intid == 329) then
    player:Teleport(0, -10922, 998, 36)
    unit:GossipComplete(player)
    end --Westfall
    
    if(intid == 330) then
    player:Teleport(0, -3604, -2711, 20)
    unit:GossipComplete(player)
    end --Wetlands
    
    if(intid == 331) then
    player:Teleport(1, 2319, -1672, 124)
    unit:GossipComplete(player)
    end --Ashenvale
    
    if(intid == 332) then
    player:Teleport(1, 3336, -4599, 93)
    unit:GossipComplete(player)
    end --Azshara
    
    if(intid == 333) then
    player:Teleport(530, -4540, -11933, 28)
    unit:GossipComplete(player)
    end --Azuremyst Isle
    
    if(intid == 334) then
    player:Teleport(530, -2721, -12206, 10)
    unit:GossipComplete(player)
    end --Bloodmyst Isle
    
    if(intid == 335) then
    player:Teleport(1, 5084, 242, 29)
    unit:GossipComplete(player)
    end --Darkshore
    
    if(intid == 336) then
    player:Teleport(1, -548, 1276, 90)
    unit:GossipComplete(player)
    end --Desolace
    
    if(intid == 337) then
    player:Teleport(1, 301, -4184, 28)
    unit:GossipComplete(player)
    end --Durotar
    
    if(intid == 338) then
    player:Teleport(1, -3345, -3078, 33)
    unit:GossipComplete(player)
    end --Dustwallow Marsh
    
    if(intid == 339) then
    player:Teleport(1, 5537, -585, 359)
    unit:GossipComplete(player)
    end --Felwood
    
    if(intid == 340) then
    player:Teleport(1, -4811, 1037, 105)
    unit:GossipComplete(player)
    end --Feralas
    
    if(intid == 341) then
    player:Teleport(1, 7931, -2616, 493)
    unit:GossipComplete(player)
    end --Moonglade
    
    if(intid == 342) then
    player:Teleport(1, -2372, -893, -9)
    unit:GossipComplete(player)
    end --Mulgore
    
    if(intid == 343) then
    player:Teleport(1, -6839, 763, 43)
    unit:GossipComplete(player)
    end --Silithus
    
    if(intid == 344) then
    player:Teleport(1, 588, 330, 48)
    unit:GossipComplete(player)
    end --Stonetalon Mountains
    
    if(intid == 345) then
    player:Teleport(1, -7149, -3746, 9)
    unit:GossipComplete(player)
    end --Tanaris
    
    if(intid == 346) then
    player:Teleport(1, 9947, 649, 1310)
    unit:GossipComplete(player)
    end --Teldrassil
    
    if(intid == 347) then
    player:Teleport(1, 567, -2573, 96)
    unit:GossipComplete(player)
    end --The Barrens
    
    if(intid == 348) then
    player:Teleport(1, -4969, -1723, -61)
    unit:GossipComplete(player)
    end --Thousand Needles
    
    if(intid == 349) then
    player:Teleport(1, -7932, -2139, -230)
    unit:GossipComplete(player)
    end --Un Goro Crater
    
    if(intid == 350) then
    player:Teleport(1, 6719, -4646, 722)
    unit:GossipComplete(player)
    end --Winterspring
    
    if(intid == 351) then
    player:Teleport(530, 2924, 5982, -1)
    unit:GossipComplete(player)
    end --Blade's Edge Mountains
    
    if(intid == 352) then
    player:Teleport(530, -220, 2217, 86)
    unit:GossipComplete(player)
    end --Hellfire Peninsula
    
    if(intid == 353) then
    player:Teleport(530, -1525, 6571, 21)
    unit:GossipComplete(player)
    end --Nagrand
    
    if(intid == 354) then
    player:Teleport(530, 3052, 3670, 143)
    unit:GossipComplete(player)
    end --Netherstorm
    
    if(intid == 355) then
    player:Teleport(530, -3693, 2344, 77)
    unit:GossipComplete(player)
    end --Shadowmoon Valley
    
    if(intid == 356) then
    player:Teleport(530, -1975, 4516, 13)
    unit:GossipComplete(player)
    end --Terokkar Forest
    
    if(intid == 357) then
    player:Teleport(530, -205, 5545, 24)
    unit:GossipComplete(player)
    end --Zangarmarsh
    
    if(intid == 358) then
    player:Teleport(1, -8187, 1539, 5)
    unit:GossipComplete(player)
    end --Ahn'Qiraj
    
    if(intid == 359) then
    player:Teleport(1, 4248, 736, -26)
    unit:GossipComplete(player)
    end --Blackfathom Depths
    
    if(intid == 360) then
    player:Teleport(0, -7187, -914, 166)
    unit:GossipComplete(player)
    end --Blackrock Depths
    
    if(intid == 361) then
    player:Teleport(0, -7532, -1221, 286)
    unit:GossipComplete(player)
    end --Blackrock Spire
    
    if(intid == 362) then
    player:Teleport(229, 137, -474, 117)
    unit:GossipComplete(player)
    end --Blackwing Lair
    
    if(intid == 363) then
    player:Teleport(1, -8568, -4260, -213)
    unit:GossipComplete(player)
    end --Caverns of Time
    
    if(intid == 364) then
    player:Teleport(0, 11209, 1664, 25)
    unit:GossipComplete(player)
    end --Deadmines
    
    if(intid == 365) then
    player:Teleport(1, -3524, 1124, 162)
    unit:GossipComplete(player)
    end --Dire Maul
    
    if(intid == 366) then
    player:Teleport(0, -5164, 918,258)
    unit:GossipComplete(player)
    end --Gnomeregan
    
    if(intid == 367) then
    player:Teleport(1, -1458, 2606, 76)
    unit:GossipComplete(player)
    end --Maraudon
    
    if(intid == 368) then
    player:Teleport(230, 1123, -455, -101)
    unit:GossipComplete(player)
    end --Molten Core
    
    if(intid == 369) then
    player:Teleport(1, -4709, -3729, 55)
    unit:GossipComplete(player)
    end --Onyxia's Lair
    
    if(intid == 370) then
    player:Teleport(1, 1805, -4404, -18)
    unit:GossipComplete(player)
    end --Ragefire Chasm
    
    if(intid == 371) then
    player:Teleport(1, -4661, -2511, 81)
    unit:GossipComplete(player)
    end --Razorfen Downs
    
    if(intid == 372) then
    player:Teleport(1, -4473, -1690, 82)
    unit:GossipComplete(player)
    end --Razorfen Kraul
    
    if(intid == 373) then
    player:Teleport(0, 2841, -692, 140)
    unit:GossipComplete(player)
    end --Scarlet Monestary
    
    if(intid == 374) then
    player:Teleport(0, 1265, -2560, 95)
    unit:GossipComplete(player)
    end --Scholomance
    
    if(intid == 375) then
    player:Teleport(0, -241, 1545, 77)
    unit:GossipComplete(player)
    end --Shadowfang Keep
    
    if(intid == 376) then
    player:Teleport(0, 3345, -3380, 145)
    unit:GossipComplete(player)
    end --Stratholme
    
    if(intid == 377) then
    player:Teleport(0, -10457, -3828, 19)
    unit:GossipComplete(player)
    end --Sunken Temple
    
    if(intid == 378) then
    player:Teleport(0, -6704, -2955, 209)
    unit:GossipComplete(player)
    end --Uldaman
    
    if(intid == 379) then
    player:Teleport(1, -737, -2219, 17)
    unit:GossipComplete(player)
    end --Wailing Caverns
    
    if(intid == 380) then
    player:Teleport(530, 6850, -7950, 171)
    unit:GossipComplete(player)
    end --Zul'Aman
    
    if(intid == 381) then
    player:Teleport(1, -6821, -2890, 9)
    unit:GossipComplete(player)
    end --Zul'Farrak
    
    if(intid == 382) then
    player:Teleport(0, -11916, -1204, 93)
    unit:GossipComplete(player)
    end --Zul'Gurub
    
    if(intid == 383) then
    player:Teleport(530, -3367, 5216, -101)
    unit:GossipComplete(player)
    end --Auchenai Crypts
    
    if(intid == 384) then
    player:Teleport(530, -3614, 310, 40)
    unit:GossipComplete(player)
    end --Black Temple
    
    if(intid == 385) then
    player:Teleport(530, 792, 6863, -64)
    unit:GossipComplete(player)
    end --Coilfang Reservoir
    
    if(intid == 386) then
    player:Teleport(530, 3529, 5096, 3)
    unit:GossipComplete(player)
    end --Gruul's Lair
    
    if(intid == 387) then
    player:Teleport(530, -343, 3051, -15)
    unit:GossipComplete(player)
    end --Hellfire Citadel
    
    if(intid == 388) then
    player:Teleport(530, -3100, 4950, -100)
    unit:GossipComplete(player)
    end --Mana Tombs
    
    if(intid == 389) then
    player:Teleport(530, 3084, 1385, 185)
    unit:GossipComplete(player)
    end --Pheonix Hall
    
    if(intid == 390) then
    player:Teleport(530, -3364, 4675, -101)
    unit:GossipComplete(player)
    end --Sethekk Halls
    
    if(intid == 391) then
    player:Teleport(530, -3630, 4941, -101)
    unit:GossipComplete(player)
    end --Shadow Labyrinth
    
    if(intid == 392) then
    player:Teleport(530, 3404, 1488, 183)
    unit:GossipComplete(player)
    end --The Botanica
    
    if(intid == 393) then
    player:Teleport(530, 2870, 1557, 252)
    unit:GossipComplete(player)
    end --The Mechanar
    
    if(intid == 394) then
    player:Teleport(571, 3008, 5290, 60)
    unit:GossipComplete(player)
    end --Borean Tundra
    
    if(intid == 395) then
    player:Teleport(571, 3118, 107, 72)
    unit:GossipComplete(player)
    end --Dragonblight
    
    if(intid == 396) then
    player:Teleport(571, 3681, -3472, 243)
    unit:GossipComplete(player)
    end --Grizzly Hills
    
    if(intid == 397) then
    player:Teleport(571, 1267, -4062, 143)
    unit:GossipComplete(player)
    end --Howling Fjord
    
    if(intid == 398) then
    player:Teleport(571, 7514, 2091, 623)
    unit:GossipComplete(player)
    end --Icecrown
    
    if(intid == 399) then
    player:Teleport(571, 5501, 4879, -198)
    unit:GossipComplete(player)
    end --Sholazar Basin
    
    if(intid == 400) then
    player:Teleport(571, 7514, -1037, 467)
    unit:GossipComplete(player)
    end --Storm Peaks
    
    if(intid == 401) then
    player:Teleport(571, 4611, 2848, 3397)
    unit:GossipComplete(player)
    end --Wintergrasp
    
    if(intid == 402) then
    player:Teleport(571, 5441, -2304, 298)
    unit:GossipComplete(player)
    end --Zul'Drak
    
    if(intid == 403) then
    player:Teleport(571, 5797, 629, 648)
    unit:GossipComplete(player)
    end --Dalaran
    
    if(intid == 404) then
    player:Teleport(571, 5402, 72, 151)
    unit:GossipComplete(player)
    end --Crystalsong Forest
    
    if(intid == 405) then
    player:Teleport(609, 2353, -5666, 427)
    unit:GossipComplete(player)
    end --DK Start Zone
    
    if(intid == 406) then
    player:Teleport(571, 3721, 2155, 37)
    unit:GossipComplete(player)
    end --Azjol'Nerub
    
    if(intid == 407) then
    player:Teleport(571, 4897, 2046, 249)
    unit:GossipComplete(player)
    end --Drak'Tharon
    
    if(intid == 408) then
    player:Teleport(571, 6925, 4447, 451)
    unit:GossipComplete(player)
    end --Gun'Drak
    
    if(intid == 409) then
    player:Teleport(571, 6151, 2244, 508)
    unit:GossipComplete(player)
    end --Icecrown Citadel
    
    if(intid == 410) then
    player:Teleport(571, 3668, -1049, 131)
    unit:GossipComplete(player)
    end --Naxxaramas
    
    if(intid == 411) then
    player:Teleport(571, 3561, 275, -115)
    unit:GossipComplete(player)
    end --Obsidian Sanctum
    
    if(intid == 412) then
    player:Teleport(571, 3783, 6942, 105)
    unit:GossipComplete(player)
    end --The Nexus/Occulus/Eye of Eternity
    
    if(intid == 413) then
    player:Teleport(571, 8937, 1266, 1026)
    unit:GossipComplete(player)
    end --Halls of Stone/Halls of Lightning
    
    if(intid == 414) then
    player:Teleport(571, 1228, -4943, 36)
    unit:GossipComplete(player)
    end --Utgarde Keep
    
    if(intid == 415) then
    player:Teleport(571, 1274, -4857, 216)
    unit:GossipComplete(player)
    end --Utgarde Pinnacle
    
    if(intid == 416) then
    player:Teleport(571, 5440, 2840, 421)
    unit:GossipComplete(player)
    end --Vault of Archevon
    
    if(intid == 417) then
    player:Teleport(571, 5708, 521, 650)
    unit:GossipComplete(player)
    end --Violet Hold
    
    if(intid == 418) then
    player:Teleport(0, -4673, -1697, 504)
    unit:GossipComplete(player)
    end --Alliance Mall
    
    if(intid == 419) then
    player:Teleport(1, 7423, 1607, 179)
    unit:GossipComplete(player)
    end --Horde Mall
    
    if(intid == 420) then
    player:Teleport(0, -13282, 117, 25)
    unit:GossipComplete(player)
    end --Gurubashi Arena
    end
    
    RegisterUnitGossipEvent(35000, 1, "On_Gossip")
    RegisterUnitGossipEvent(35000, 2, "Gossip_Submenus")

  11. #11
    hello789's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It say Unsuccessful to me

Similar Threads

  1. [Lua] teleport NPC ,teleport to mall wont work
    By thim99 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 04-19-2010, 10:09 AM
  2. WoW LUA Teleport NPC
    By Warlord651 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-19-2009, 04:58 PM
  3. [Guide] LUA teleporter NPC template and guide!!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 34
    Last Post: 04-07-2009, 03:36 PM
  4. [Template] LUA Teleporter NPC and Mini guide!!
    By Jackie Moon in forum WoW EMU General Releases
    Replies: 13
    Last Post: 03-15-2009, 04:07 PM
  5. {templates and guide} to creating a all in one trainer
    By *TraPStaR* in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 01-15-2008, 08:28 PM
All times are GMT -5. The time now is 08:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search