[LUA Release] Warp Npc (Noob friendly) menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Lytle69's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA Release/Guide] Warp Npc Includes Premade.

    This is very simple, just copy and paste this into your Script. And change The RED To what's specified.


    Code:
    local npcid = NPC Entry ID
    
    function NPC_main_menu(pUnit, player)
       pUnit:GossipCreateMenu(3543, player, 0)
       pUnit:GossipMenuAddItem(1, "Teleport Locations", 6, 0)        
       pUnit:GossipSendMenu(player)
    end
    function NPC_on_gossip_talk(pUnit, event, player)
       NPC_main_menu(pUnit, player)
    end
     function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 6) then
     pUnit:GossipCreateMenu(3543, player, 0)
     pUnit:GossipMenuAddItem(1, "LOCATION NAME", 100, 0)
     pUnit:GossipMenuAddItem(1, "LOCATION NAME", 101, 0)
     pUnit:GossipMenuAddItem(1, "LOCATION NAME", 102, 0)
     pUnit:GossipMenuAddItem(1, "LOCATION NAME", 103, 0)
     pUnit:GossipSendMenu(player)
    end
    if(intid == 100) then
       player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 101) then
       player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 102) then
       player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 103) then
       player:Teleport(MAP,X,Y,Z)
    end
    intid = 0
    end
    RegisterUnitGossipEvent(NPC Entry ID, 1, "NPC_on_gossip_talk") 
    RegisterUnitGossipEvent(NPC Entry ID, 2, "NPC_on_gossip_select")
    You can also add locations but remember to add both
    pUnit:GossipMenuAddItem(1, "LOCATION NAME", 104, 0)
    and
    if(intid == 104) then
    player:Teleport(MAP,X,Y,Z)

    Be sure to put them below their respective lines and keep the Intid matching each other. And different than the other Intid's


    Ok and Here is a Premade One that you can easily change if you want to. Credit's to Babba Who helped me Fix a Crucial error. Now it works perfect

    EDIT: Added a Back Button.

    Code:
    local npcid = 100000
    
    function Teleport_OnGossipTalk(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(9988, player, 0)
    pUnit:GossipMenuAddItem(0, "Main Citys.", 100, 0)
    pUnit:GossipMenuAddItem(0, "Outland Raids", 200, 0)
    pUnit:GossipMenuAddItem(0, "PvP Arenas", 300, 0)
    pUnit:GossipSendMenu(player)
    end
    function Teleport_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 100) then
     pUnit:GossipCreateMenu(9988, player, 0)
     pUnit:GossipMenuAddItem(7, "Stormwind", 101, 0)
     pUnit:GossipMenuAddItem(7, "Ironforge", 102, 0)
     pUnit:GossipMenuAddItem(7, "Darnassus", 103, 0)
     pUnit:GossipMenuAddItem(7, "Exodar", 104, 0)
     pUnit:GossipMenuAddItem(7, "Orgrimmar", 105, 0)
     pUnit:GossipMenuAddItem(7, "Undercity", 106, 0)
     pUnit:GossipMenuAddItem(7, "Thunderbluff", 107, 0)
     pUnit:GossipMenuAddItem(7, "Silvermoon", 108, 0)
     pUnit:GossipMenuAddItem(7, "Shattrath", 109, 0)
     pUnit:GossipMenuAddItem(5, "[BACK]", 1, 0)
     pUnit:GossipSendMenu(player)
    end
    if(intid == 200) then
     pUnit:GossipCreateMenu(9988, player, 0)
     pUnit:GossipMenuAddItem(7, "BlackTemple", 201, 0)
     pUnit:GossipMenuAddItem(7, "Hyjal Summit", 202, 0)
     pUnit:GossipMenuAddItem(7, "SerpentShrine Cavern", 203, 0)
     pUnit:GossipMenuAddItem(7, "Tempest Keep The Eye", 204, 0)
     pUnit:GossipMenuAddItem(7, "Zul Aman", 205, 0)
     pUnit:GossipMenuAddItem(7, "Sunwell Plateau", 206, 0)
     pUnit:GossipMenuAddItem(7, "Hellfire Citadel", 207, 0)
     pUnit:GossipMenuAddItem(7, "Karazhan", 208, 0)
     pUnit:GossipMenuAddItem(5, "[BACK]", 1, 0)
     pUnit:GossipSendMenu(player)
    end
    if(intid == 300) then
     pUnit:GossipCreateMenu(9988, player, 0)
     pUnit:GossipMenuAddItem(7, "Gurabashi Arena", 301, 0)
     pUnit:GossipMenuAddItem(7, "Dire Maul", 302, 0)
     pUnit:GossipMenuAddItem(7, "Circle of Blood", 303, 0)
     pUnit:GossipMenuAddItem(7, "The Ring of Trials", 304, 0)
     pUnit:GossipMenuAddItem(5, "[BACK]", 1, 0)
     pUnit:GossipSendMenu(player)
    end
    if(intid == 1) then
     pUnit:GossipCreateMenu(9988, player, 0)
     pUnit:GossipMenuAddItem(0, "Main Citys.", 100, 0)
     pUnit:GossipMenuAddItem(0, "Outland Raids", 200, 0)
     pUnit:GossipMenuAddItem(0, "PvP Arenas", 300, 0)
     pUnit:GossipSendMenu(player)
    end
    if(intid == 101) then
       player:Teleport(0, -8918, 552, 95)
    end
    if(intid == 102) then
       player:Teleport(0, -4981, -882, 503)
    end
    if(intid == 103) then
       player:Teleport(1, 9951.5, 2280.3, 1343)
    end
    if(intid == 104) then
       player:Teleport(530, -3998, -11861, 1)
    end
    if(intid == 105) then
       player:Teleport(1, 1482, -4417, 26)
    end
    if(intid == 106) then
       player:Teleport(0, 1523, 242, -40)
    end
    if(intid == 107) then
       player:Teleport(1, -1209, -97, 164)
    end
    if(intid == 108) then
       player:Teleport(530, 9408, -7278, 15)
    end
    if(intid == 109) then
       player:Teleport(530, -1692, 5372, 7)
    end
    if(intid == 201) then
       player:Teleport(530, -3651.94, 317.62, 37)
    end
    if(intid == 202) then
       player:Teleport(1, -8177, -4180, -168)
    end
    if(intid == 203) then
       player:Teleport(530, 811, 6866, -66)
    end
    if(intid == 204) then
       player:Teleport(530, 3089, 1389, 187)
    end
    if(intid == 205) then
       player:Teleport(530, 6853, -7954, 172)
    end
    if(intid == 206) then
       player:Teleport(530, 12590, -6775, 16)
    end
    if(intid == 207) then
       player:Teleport(530, -342, 3140, -100)
    end
    if(intid == 208) then
       player:Teleport(0, -11125, -2020, 48)
    end
    if(intid == 301) then
       player:Teleport(0, -13237, 207, 32)
    end
    if(intid == 302) then
       player:Teleport(1, -3841.5, 1093.8, 163.5)
    end
    if(intid == 303) then
       player:Teleport(530, 2906, 5972, 3.4)
    end
    if(intid == 304) then
       player:Teleport(530, -2099, 6741, -1)
    end
    intid = 0
    end
    RegisterUnitGossipEvent(100000, 1, "Teleport_OnGossipTalk")
    RegisterUnitGossipEvent(100000, 2, "Teleport_OnGossipSelect")
    Heres a Premade Npc for it.
    Code:
    INSERT INTO `creature_names` VALUES ('100000', 'Teleporter', '', '', '0', '7', '0', '3', '0', '0', '17840', '0', '0', '0', '1', '1', '0', '0');
    
    INSERT INTO `creature_proto` VALUES ('100000', '73', '73', '35', '100000', '100000', '100000', '1', '3', '600', '0', '1000', '1500', '1800', '500', '650', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '360000', '0', '0', '0', '0', '0', '0', '0', '1', '1', '', '0', '0', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0');
    Last edited by Lytle69; 10-03-2008 at 09:05 AM.

    [LUA Release] Warp Npc (Noob friendly)
  2. #2
    Devilsadvocate's Avatar Member
    Reputation
    70
    Join Date
    May 2008
    Posts
    254
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you like this then +REP ME And I'll make some more guides.
    Don't ask for rep.

    And you'd get out of Leech status alot quicker if you actually make a script rather than using a "blank" script that can be made just as easily from a program.
    I'm not going to be releasing anything for a while. I'm back on retail for new content.

  3. #3
    Lytle69's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm Good point I guess. I'll make something extra

  4. #4
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +rep for ur work althought i know it and it have been posted

  5. #5
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is to many of these now +rep for trying anyway.


  6. #6
    Lytle69's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Performer View Post
    There is to many of these now +rep for trying anyway.
    Well this was actually my Very First Script I made. And I found a bunch of confusing ones, so I tried to make it a little simpler, but I think I could probably make it even simpler. I made this one so ppl can easily add more locations. I didn't find any like that Hence the reason I made one =]

  7. #7
    Oggranarr's Avatar Member
    Reputation
    13
    Join Date
    Sep 2007
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree.
    Really big help for those who have not much experience with this yet.

Similar Threads

  1. [Tutorial] [Lua][Noob Friendly] How to make Teleporter NPC w/ diff menu's
    By Asbonia in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 09-09-2010, 06:11 PM
  2. [Release] Quest Creator (Noob Friendly)
    By Jonthe838 in forum WoW EMU Programs
    Replies: 46
    Last Post: 06-13-2009, 02:42 AM
  3. [Release] Warp NPC Lua !! ( First Lua Release by Me )
    By Hyldran0 in forum WoW EMU General Releases
    Replies: 17
    Last Post: 01-22-2009, 09:32 AM
  4. [Release]Howling's Funserver Pack V3 - Warp Npc, Morph Npc & more added
    By coldmouth in forum World of Warcraft Emulator Servers
    Replies: 77
    Last Post: 06-27-2008, 10:31 AM
All times are GMT -5. The time now is 03:24 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