[Release] Teleport NPC ( if all others fail) menu

User Tag List

Results 1 to 9 of 9
  1. #1
    matydunkk's Avatar Member
    Reputation
    5
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Teleport NPC ( if all others fail)

    Hey this is my first post and i hope to no longer be a leacher

    Credits for this go to Stoneharry ( username on mmowned) for creating the fun teleport NPC that just happened to work when all other wouldn't.
    And me for editing all the teleports and finding there locations.

    I've Tried around 10- 15 Different Teleport scripts all of which have failed time and time again, then this one ( unfortunately just a fun teleporter ) worked. So i decided to mod all the teleport names and locations and add alot of spots to it.

    This should hopefuly work for others ( which i know exist everywhere ) as it did for me.

    Also he can't be used in combat Have fun.

    Copy this code put it in a notepad and save it as telenpc.lua then place it in your Scripts folder.

    Query the SQL code below for the npc ( NPC spawn = 50 )

    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 Kingdom 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},
    }
    },
    }

    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")
    And the sql query is:


    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `mountdisplayid`, `equipmodel1`, `equipinfo1`, `equipslot1`, `equipmodel2`, `equipinfo2`, `equipslot2`, `equipmodel3`, `equipinfo3`, `equipslot3`, `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`) values('50','72','72','35','100','100','0','3','1','1500','0','666','3662','0',' 0','0','0','0','0','0','0','0','0','0','0','0','360000','0','0','0','0','0','0', '0','1','0','0','1','0','0','0','2.5','8','14','0','0','0','0','0','0');
    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('50','Salamanda\'s Hell Boy','','','0','7','0','1','0',NULL,'10992','0','0','0','1','1','0',NULL);
    Again Credits go to Stoneharry for creating the original "fun teleport npc".
    Last edited by matydunkk; 09-07-2008 at 06:29 PM.

    [Release] Teleport NPC ( if all others fail)
  2. #2
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this in Blua or something? doesnt look similar to the Lua formats.. well that and it didnt work for me.

  3. #3
    matydunkk's Avatar Member
    Reputation
    5
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    think its LUA++, you have to enable it on config.

    EDIT: link to original - http://www.mmowned.com/forums/emulat...r-npc-lua.html
    Last edited by matydunkk; 09-07-2008 at 06:59 PM.

  4. #4
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah LUA you need to enable in config.. LUA++ you need to compile.. Thanks anyways Looks nice +rep

  5. #5
    matydunkk's Avatar Member
    Reputation
    5
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks i'm not 100% sure why it works and others don't but it did xD Couldnt figure out how to put remove rez sickness on it though if anyone would like to contribute.

  6. #6
    hingxxwing's Avatar Member
    Reputation
    3
    Join Date
    Jul 2008
    Posts
    97
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i need teleporter.. but just LUA.. im not so good at compiling yet...im still only making LUA not Compiling..

  7. #7
    DarkDevilDK's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do I install this?

  8. #8
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    150/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You copy it to text document, then you press file, save as, change from text document to all files, then type what you want to call it with .lua on the end, e.g

    zzzTeleporternpc.lua

    Then put it in your scripts folder (the lua)

  9. #9
    Rexxar333's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how i download it

Similar Threads

  1. [Template/Guide] Easy Teleporter NPC for all your servers needs!!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 08-06-2009, 08:14 AM
  2. [Release] Teleporter NPC (LUA++)
    By Vaudville in forum WoW EMU General Releases
    Replies: 9
    Last Post: 09-23-2008, 09:55 AM
  3. [Release] Rin'ji Boss Script || V1 - Includes Teleporter NPC -
    By Bapesy in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 06-06-2008, 06:00 PM
  4. [Release]City Teleport NPC for Antrix
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-18-2007, 08:38 AM
  5. [Release] Chirspee's Teleporting NPC, Buff NPC's, Skill NPC and Heal NPC
    By Illidan1 in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 11-22-2007, 04:05 PM
All times are GMT -5. The time now is 06:34 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