[Template/Guide] Easy Teleporter NPC for all your servers needs!! menu

User Tag List

Results 1 to 1 of 1
  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)

    [Template/Guide] Easy Teleporter NPC for all your servers needs!!

    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 it into your Scripts folder and not your Scripts 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..

    scroll right to the bottom and for there

    RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
    RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")

    change the red to the ID which in this case is 76666 or whatever you made yours as

    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; 02-11-2010 at 11:57 PM.
    Check out my YouTube: SkeetzGaming

    [Template/Guide] Easy Teleporter NPC for all your servers needs!!

Similar Threads

  1. Replies: 10
    Last Post: 06-21-2023, 02:14 AM
  2. [Selling] ★★★★★ MMO BETA STORE (For all your gaming needs!) ★★★★★
    By MMOGamerStore in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 06-06-2014, 03:15 AM
  3. [Release] WoWTracker - For All Your Tracking Needs
    By jjaa in forum World of Warcraft Bots and Programs
    Replies: 33
    Last Post: 02-01-2009, 07:42 AM
  4. Scamming E-Mail Site (For all your evil needs... lol)
    By Ekryptik in forum WoW Scam Prevention
    Replies: 12
    Last Post: 06-30-2008, 03:16 PM
  5. [Links] Photoshop links for all your Graphic needs!
    By Reflection in forum Art & Graphic Design
    Replies: 12
    Last Post: 03-23-2008, 03:35 AM
All times are GMT -5. The time now is 03:17 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