Need Help With Warp NPC menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Juve21's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Help With Warp NPC

    HELP!

    Okay,

    I downloaded this pre-made Warp NPC from this site "http://www.mrbx.net/index.php/Forum/29-LUA/DLL/Basic-Warp/Global-NPC.php"

    -I changed some of the settings and Menus to what I want, but when I logged on and tried to use him, then menus didn't open up...

    All I got was the Gossip Text...

    "Hello (me), How may I help you?" - something like that.

    So here is my LUA Script...


    Code:
    local npcid = 8
    
    function Menu_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("Disabled in combat!")
    else
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(0, "Horde Cities", 13, 0)
    pUnit:GossipMenuAddItem(0, "Alliance Cities", 12, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Instances", 14, 0)
    pUnit:GossipMenuAddItem(0, "Outland Instances", 15, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Raids", 16, 0)
    pUnit:GossipMenuAddItem(0, "Outland Raids", 17, 0)
    pUnit:GossipMenuAddItem(1, "Custom Instances", 777, 0)
    pUnit:GossipMenuAddItem(1, "Mall", 888, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath City", 18,  0)
    pUnit:GossipMenuAddItem(1, "Isle of Quel' Danas", 899, 0)
    pUnit:GossipMenuAddItem(1, "Azshara Crater, 778, 0)
    pUnit:GossipMenuAddItem(5, "Buff Me Up!", 900, 0)
    pUnit:GossipMenuAddItem(5, "Remove Ressurection Sickness", 901, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function NPC_OnGossip_select(pUnit, event, player, id, intid, code)
    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(0, "Alliance Cities", 12, 0)
    pUnit:GossipMenuAddItem(0, "Horde Cities", 13, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Instances", 14, 0)
    pUnit:GossipMenuAddItem(0, "Outland Instances", 15, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Raids", 16, 0)
    pUnit:GossipMenuAddItem(0, "Outland Raids", 17, 0)
    pUnit:GossipMenuAddItem(5, "Shattrath City", 18, 0)
     pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 12) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Stormwind", 34, 0)
    pUnit:GossipMenuAddItem(5, "Ironforge", 35, 0)
    pUnit:GossipMenuAddItem(5, "Darnassus", 36, 0)
    pUnit:GossipMenuAddItem(5, "The Exodar", 37, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 13) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Orgrimmar", 38, 0)
    pUnit:GossipMenuAddItem(5, "Undercity", 39, 0)
    pUnit:GossipMenuAddItem(5, "Thunder Bluff", 40, 0)
    pUnit:GossipMenuAddItem(5, "Silvermoon City", 41, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 14) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Scarlet Monastery", 43, 0)
    pUnit:GossipMenuAddItem(5, "Zul'Farrak", 44, 0)
    pUnit:GossipMenuAddItem(5, "Scholomance", 45, 0)
    pUnit:GossipMenuAddItem(5, "The Deadmines", 46, 0)
    pUnit:GossipMenuAddItem(5, "Uldaman", 47, 0)
    pUnit:GossipMenuAddItem(5, "Sunken temple", 48, 0)
    pUnit:GossipMenuAddItem(5, "Lower Blackrock Depths", 49, 0)
    pUnit:GossipMenuAddItem(5, "Dire Maul", 50, 0)
    pUnit:GossipMenuAddItem(5, "Upper Blackrock Depths", 51, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 15) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Hellfire Ramparts", 52, 0)
    pUnit:GossipMenuAddItem(5, "Blood Furnace", 53, 0)
    pUnit:GossipMenuAddItem(5, "Shattered Halls", 54, 0)
    pUnit:GossipMenuAddItem(5, "Underbog", 55, 0)
    pUnit:GossipMenuAddItem(5, "Slave Pens", 56, 0)
    pUnit:GossipMenuAddItem(5, "Mana Tombs", 57, 0)
    pUnit:GossipMenuAddItem(5, "Sethekk Halls", 58, 0)
    pUnit:GossipMenuAddItem(5, "Shadow Lab", 59, 0)
    pUnit:GossipMenuAddItem(5, "Mechanar", 60, 0)
    pUnit:GossipMenuAddItem(5, "Arcatraz", 61, 0)
    pUnit:GossipMenuAddItem(5, "Caverns of Time", 62, 0)
    pUnit:GossipMenuAddItem(5, "Serpentshrine caverns", 63, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 16) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Onyxias Lair", 64, 0)
    pUnit:GossipMenuAddItem(5, "Molten Core", 65, 0)
    pUnit:GossipMenuAddItem(5, "Blackwing Lair", 66, 0)
    pUnit:GossipMenuAddItem(5, "Zul'Gurub", 67, 0)
    pUnit:GossipMenuAddItem(5, "Karazhan", 68, 0)
    pUnit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj 20", 69, 0)
    pUnit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj 40", 70, 0)
    pUnit:GossipMenuAddItem(5, "Naxxramas", 71, 0)
    pUnit:GossipMenuAddItem(5, "Zul'Aman", 72, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 17) then
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(5, "Tempest Keep", 74, 0)
    pUnit:GossipMenuAddItem(5, "Maghteridons Lair", 75, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 777) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(5, "Shadowfang Keep - Novice (5)", 42, 0)
    pUnit:GossipMenuAddItem(5, "Crimson Monastery - Average (10)", 76, 0)
    pUnit:GossipMenuAddItem(5, "Black Temple - Hard (15)", 73, 0)
    pUnit:GossipMenuAddItem(5, "Forsaken Sunwell - Expert (20), 77, 0)
    pUnit:GOssipMenuAddItem(5, "Go Back", 100, 0)
    end
    if(intid == 778) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(5, "!!Broken!!", 0, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    end
    
    if(intid == 100) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(0, "Horde Cities", 13, 0)
    pUnit:GossipMenuAddItem(0, "Alliance Cities", 12, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Instances", 14, 0)
    pUnit:GossipMenuAddItem(0, "Outland Instances", 15, 0)
    pUnit:GossipMenuAddItem(0, "Azeroth Raids", 16, 0)
    pUnit:GossipMenuAddItem(0, "Outland Raids", 17, 0)
    pUnit:GossipMenuAddItem(1, "Custom Instances", 777, 0)
    pUnit:GossipMenuAddItem(1, "Mall", 888, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath City", 18,  0)
    pUnit:GossipMenuAddItem(1, "Isle of Quel' Danas", 899, 0)
    pUnit:GossipMenuAddItem(1, "Azshara Crater, 778, 0)
    pUnit:GossipMenuAddItem(5, "Buff Me Up!", 900, 0)
    pUnit:GossipMenuAddItem(5, "Remove Ressurection Sickness", 901, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 18) then 
    	player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 27) then
    	player:Teleport(1, 4657.35, -3739.4, 1415.79)
    
    end
    if(intid == 29) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(31984)
    	
    end
    if(intid == 30) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(35354)
    	
    end
    if(intid == 31) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(32686)
    	
    end
    if(intid == 32) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(41937)
    	
    end
    if(intid == 33) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(38917)
    	
    end
    if(intid == 34) then
    	player:Teleport(0, -9005, 869, 29.621)
    end
    if(intid == 35) then
    	player:Teleport(0, -4977.095215, -888.452942, 501.621216)
    end
    if(intid == 36) then
    	player:Teleport(1, 9943.809570, 2275.350098, 1341.390015)
    end
    if(intid == 37) then
    	player:Teleport(530, -3792.557861, -11691.3, -105.241)
    end
    if(intid == 38) then
    	player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 39) then
    	player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end
    if(intid == 40) then
    	player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 41) then
    	player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 42) then
    	player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 43) then
    	player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 44) then
    	player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 45) then
    	player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 46) then
    	player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    if(intid == 47) then
    	player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 48) then
    	player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 49) then
    	player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 50) then
    	player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 51) then
    	player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 52) then
    	player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 53) then
    	player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    if(intid == 54) then
    	player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    if(intid == 55) then
    	player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 56) then
    	player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 57) then
    	player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 58) then
    	player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    if(intid == 59) then
    	player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    if(intid == 60) then
    	player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 61) then
    	player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 62) then
    	player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 63) then
    	player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 64) then
    	player:Teleport(1, -4746, -3749, -4)
    end
    if(intid == 65) then
    	player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 66) then
    	player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 67) then
    	player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 68) then
    	player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 69) then
    	player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 70) then
    	player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 71) then
    	player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 72) then
    	player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 73) then
    	player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 74) then
    	player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 75) then
    	player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 76) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(5, "!!Broken!!", 0, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    end
    if(intid == 77) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(5, "!!Broken!!", 0, 0)
    pUnit:GossipMenuAddItem(5, "Go Back", 100, 0)
    end
    if(intid == 79) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(9078)
    end
    if(intid == 80) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(9077)
    	
    end
    if(intid == 81) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(8737)
    	
    end
    if(intid == 82) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(750)
    	
    end
    if(intid == 83) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(9116)
    	
    end
    if(intid == 84) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(264)
    	
    end
    if(intid == 85) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(5011)
    	
    end
    if(intid == 86) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(266)
    	
    end
    if(intid == 87) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(2567)
    	
    end
    if(intid == 88) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(5009)
    	
    end
    if(intid == 89) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(196)
    	
    end
    if(intid == 90) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(198)
    	
    end
    if(intid == 91) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(201)
    	
    end
    if(intid == 92) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(1180)
    	
    end
    if(intid == 93) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(15590)
    	
    end
    if(intid == 94) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(197)
    	
    end
    if(intid == 95) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(199)
    	
    end
    if(intid == 96) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(202)
    	
    end
    if(intid == 97) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(227)
    	
    end
    if(intid == 98) then
    	local plr = pUnit:GetClosestPlayer()
    	plr:LearnSpell(200)
    
    end
    
    if(intid == 899) then 
     player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
     pUnit:GossipComplete(player)
     end
    
    if(intid == 900) then 
     player:LearnSpell(33081)
     player:LearnSpell(33082)
     pUnit:GossipComplete(player)
     end
    
    if(intid == 901) then
     player:LearnSpell(15007)
     player:UnlearnSpell(15007)
     end
    
     if(intid == 888) then
     player:Teleport(1,-11830.678711,-4753.388672,6.243729)
     pUnit:GossipComplete(player)
     end
    
    end
     
    RegisterUnitGossipEvent(8,1,"Menu_OnGossipTalk")
    RegisterUnitGossipEvent(8,2,"NPC_OnGossip_select")

    ~~~~ And yes, It's in my Script folder...



    Please help! +repfor whoever can!

    Need Help With Warp NPC
  2. #2
    project anthrax's Avatar Contributor
    Reputation
    180
    Join Date
    Nov 2007
    Posts
    993
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did you name it warp with out the .lua
    removed by Unholy

  3. #3
    Juve21's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, Warp.lua

    Well I fixed it, it was stupid mistakes...

    Capital O in "Gossip"
    pUnit:GOssipMenuAddItem(5, "Go Back", 100, 0)
    Didn't finish the Quotes ""
    pUnit:GossipMenuAddItem(5, "Forsaken Sunwell - Expert (20)", 77, 0)
    thx anyways, i'll +rep for the reply!

  4. #4
    project anthrax's Avatar Contributor
    Reputation
    180
    Join Date
    Nov 2007
    Posts
    993
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    o there you go >.< thanks
    removed by Unholy

Similar Threads

  1. Need help with gltiching NPCs
    By chaosrde in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 10-19-2009, 03:55 PM
  2. [Request] Need help with Quest Adding to NPCs
    By Cowbelltheoneandonly in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 07-03-2009, 03:53 AM
  3. need help with npc script
    By bitty in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-16-2008, 06:21 AM
  4. Needs Help with Warp Npc Lua
    By Lytle69 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-03-2008, 02:39 AM
  5. [NEED HELP] with BG npc's
    By vivalacamo in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 06-29-2008, 12:50 PM
All times are GMT -5. The time now is 03:19 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search