...::::WoW teleporter NPC + Script::::... menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Freakstorm's Avatar Member
    Reputation
    60
    Join Date
    Aug 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ...::::WoW teleporter NPC + Script::::...

    Hello i have been trying to find a script so i decided to make one myself well it worked out so i thought some people might want it to so here is my script

    1 it has script in the file
    2 it has the sql files (creature_proto will not upload on navi or heidi so you will have to add info yourself)

    ok first put the .lua file (the script) into your script folder (mines in C:/Panex Premium/Server/Scripts) just add it

    now go to heidi or navicat or what ever you use and add the sql file to your world database

    now go to creature_proto and then add the info from creature_proto and then your done

    (those of you who have the npc made heres a script


    Code:
     local menunum = 33310
    local menuicon = 4
    local teleicon = 2
    local menu =
    {
    {"Cities",
    {
    {"Stormwind", 0, -8913, 554, 94},
    {"Orgrimmar", 1, 1502, -4414, 22},
    {"Ironforge", 0, -4981, -881,502},
    {"Silvermoon", 530, 9411, -7278, 15},
    {"Darnassus", 1, 8776, 950, 33},
    {"Undercity ", 0, 1831, 238, 61},
    {"The Exodar ", 530, -4014, -11896, -1},
    {"Thunderbluff", 1, -1285, 176, 131},
    }
    },
    {"Raids",
    {
    {"Mount Hyjal", 1, -8187, -4224, -175},
    {"Black Temple", 530, -3631, 314, 39},
    {"Sunwell", 530, 12583, -6775, 16},
    {"The Eye", 530, 3098, 1519, 190},
    {"Serpent Shrine Cavern", 530, 792, 6865, -63},
    {"Karazhan", 0, -11121, -2012, 48},
    {"Zul'aman", 530, 6850, 7950, 170},
    {"Zul'Gurub", 0, 11915, 1132, 78},
    {"Gates of Ahn'Qiraj", 1, -8175, 1534, 5},
    {"Caverns of Time", 1, -8469, -4311,-207},
    {"Magtheridon's Lair", 530, -339, 3141, -97},
    {"Gruul's Lair", 530, 3675, 5279, 18},
    {"Naxxramas", 533, 3005, -3435, 295},
    }
    },
    {"Eastern Kingdoms Instances",
    {
    {"The Temple of Atal'hakkar", 0, -10446, 3823, 19},
    {"The deadmines", 0, -11156, 1528, 20},
    {"The Stockades", 0, -8773, 839, 91},
    {"Uldamon", 0, -6108, -3295, 257},
    {"Gnomeregan", 0, -5183, 601, 409},
    {"Shadowfang Keep", 0, -243, 1537, 78},
    {"Stratholme", 0, 3176, -4039, 106},
    {"Scholomance", 0, 1268, -2564, 95},
    {"Scarlot Monastery", 0, 2843, -692, 146},
    }
    },
    {"Kalimdor Instances",
    {
    {"Zul'Ferrak", 1, -6816, -2883, 10},
    {"Dire Maul", 1, -3520, 1088, 161},
    {"Razorfen", 1, -4411, -1880, 88},
    {"Wailing Caverns", 1, -739, -2217, 17},
    {"Maraudon", 349, 419, 11, -131},
    {"Ragefire Chasm", 1, 1810, -4406, -17},
    {"Blackfathom Dephs", 1, 4246, 736, -22},
    }
    },
    {"Outland Instances",
    {
    {"Auchindoun", 530, -3363, 4893, -98},
    {"Hellfire Citadel", 530, -272, 3101, 33},
    }
    },
    {"Outland Locations",
    {
    {"Shadowmoon Valley", 530, -2848, 3190, 8},
    {"Hellfire Peninsula", 530, -272, 3101, 33},
    {"Zangarmarsh", 530, 48, 6878, 23},
    {"Nagrand", 530, -2152, 7831, -12},
    {"Terrokkar Forest", 530, -1947, 4741, -1},
    {"Blade's Edge Mountins", 530, 3047, 5983, -9},
    {"Netherstorm", 530, 2313, 2522, 117},
    }
    },
    {"Free For All PvP Locations",
    {
    {"Gurubashi Arena", 0, -13268, 157, 43},
    {"The Maul", 1, -3753, 1095, 132},
    {"Nagrand Arena", 530, -2051, 6657, 13},
    {"Halaa", 530, -1573, 7958, -17},
    }
    },
    {"Mall",
    {
    {"Custom Mall", 1, 16227.700195, 16403.400391, -64.378601},
    }
    },
    }
    
    function TeleNPC_MainMenu(Unit, Player)
    local i = 0
    Unit:GossipCreateMenu(menunum, Player, 0)
    for k,v in pairs(menu) do
    i = i + 1
    if type(v[2]) == "table" then
    Unit:GossipMenuAddItem(menuicon, v[1], i, 0)
    i = i + #(v[2])
    else
    Unit:GossipMenuAddItem(teleicon, v[1], i, 0)
    end
    end
    Unit:GossipSendMenu(Player)
    end
    function TeleNPC_SubMenu(Unit, Player, i, Submenu)
    Unit:GossipCreateMenu(menunum-i, Player, 0)
    Unit:GossipMenuAddItem(7, "<--Back", 0, 0)
    for k,v in pairs(Submenu) do
    i = i + 1
    Unit:GossipMenuAddItem(teleicon, v[1], i, 0)
    end
    Unit:GossipSendMenu(Player)
    end
    function TeleNPC_OnGossipTalk(Unit, Event, Player)
    TeleNPC_MainMenu(Unit, Player)
    end
    function TeleNPC_OnGossipSelect(Unit, Event, Player, MenuId, Id, Code)
    local i = 0
    if(Id == 0) then
    TeleNPC_MainMenu(Unit,Player)
    else
    for k,v in pairs(menu) do
    i = i + 1
    if (Id == i) then
    if type(v[2]) == "table" then
    TeleNPC_SubMenu(Unit, Player, i, v[2])
    else
    if Player:IsInCombat() then
    Unit:SendChatMessage(12, 0, "You can't teleport while in combat!")
    else
    Player:Teleport(v[2], v[3], v[4], v[5])
    end
    Unit:GossipComplete(Player)
    end
    return
    elseif (type(v[2]) == "table") then
    for j,w in pairs(v[2]) do
    i = i + 1
    if (Id == i) then
    if Player:IsInCombat() then
    Unit:SendChatMessage(12, 0, "You can't teleport while in combat!")
    else
    Player:Teleport(w[2], w[3], w[4], w[5])
    end
    Unit:GossipComplete(Player)
    return
    end
    end
    end
    end
    end
    end
    RegisterUnitGossipEvent(50, 1, "TeleNPC_OnGossipTalk")
    RegisterUnitGossipEvent(50, 2, "TeleNPC_OnGossipSelect")
    you can change the red to wherever your mall location is you can find the location by going to your mall and typing .gps and adding it like this: "NAME", INFO THAT .GPS GAVE},

    Here is the files: Download Here

    thanks for looking :wave:

    ...::::WoW teleporter NPC + Script::::...
  2. #2
    bibbygg's Avatar Member
    Reputation
    2
    Join Date
    Jan 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool thanks for that

  3. #3
    Helstedxd's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2008
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice rls +Rep
    PHP: | | | | | | | | | |HTML: | | | | | | | | | |

  4. #4
    keazain's Avatar Banned
    Reputation
    234
    Join Date
    Jun 2008
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    realy nice +Rep from me, keep up the good work m8

    it could be nice with a teleporter only with northrend also you got 2xrep from me
    Last edited by 2dgreengiant; 01-22-2009 at 10:35 AM.

  5. #5
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice release grats on longer being a leecher. +RepX2

  6. #6
    Freakstorm's Avatar Member
    Reputation
    60
    Join Date
    Aug 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no promblem everyone enjoy the guide if you need help feerl free to post

Similar Threads

  1. [Lua Script] Teleporter Npc Script
    By Deathsimon in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-27-2010, 03:39 AM
  2. Will this teleporter npc lua script work?
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-22-2008, 11:50 AM
  3. Teleport npc script?
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-15-2008, 07:06 AM
All times are GMT -5. The time now is 09:12 AM. 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